gogol-cloudkms 0.5.0 → 1.0.0
raw patch · 100 files changed
+14637/−8894 lines, 100 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/CloudKMS.hs +763/−0
- gen/Gogol/CloudKMS/Folders/GetAutokeyConfig.hs +109/−0
- gen/Gogol/CloudKMS/Folders/UpdateAutokeyConfig.hs +123/−0
- gen/Gogol/CloudKMS/Internal/Product.hs +3463/−0
- gen/Gogol/CloudKMS/Internal/Sum.hs +2408/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/GetIamPolicy.hs +120/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/SetIamPolicy.hs +122/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/TestIamPermissions.hs +128/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Create.hs +130/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Get.hs +114/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/GetIamPolicy.hs +125/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/List.hs +137/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Patch.hs +129/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/SetIamPolicy.hs +128/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/TestIamPermissions.hs +129/−0
- gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/VerifyConnectivity.hs +120/−0
- gen/Gogol/CloudKMS/Projects/Locations/GenerateRandomBytes.hs +124/−0
- gen/Gogol/CloudKMS/Projects/Locations/Get.hs +109/−0
- gen/Gogol/CloudKMS/Projects/Locations/GetEkmConfig.hs +111/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/Create.hs +127/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/Get.hs +111/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/List.hs +129/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/Create.hs +124/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Create.hs +136/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricDecrypt.hs +134/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricSign.hs +134/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Create.hs +132/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Destroy.hs +131/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Get.hs +122/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/GetPublicKey.hs +138/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Import.hs +132/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/List.hs +153/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/MacSign.hs +131/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/MacVerify.hs +132/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Patch.hs +135/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/RawDecrypt.hs +133/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/RawEncrypt.hs +133/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Restore.hs +131/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Decrypt.hs +126/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Encrypt.hs +126/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Get.hs +115/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/GetIamPolicy.hs +125/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/List.hs +145/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Patch.hs +130/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/SetIamPolicy.hs +128/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/TestIamPermissions.hs +130/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/UpdatePrimaryVersion.hs +130/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/Get.hs +111/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/GetIamPolicy.hs +120/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/Create.hs +131/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/Get.hs +115/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/GetIamPolicy.hs +125/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/List.hs +138/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/SetIamPolicy.hs +128/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/TestIamPermissions.hs +130/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/List.hs +134/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/SetIamPolicy.hs +122/−0
- gen/Gogol/CloudKMS/Projects/Locations/KeyRings/TestIamPermissions.hs +128/−0
- gen/Gogol/CloudKMS/Projects/Locations/List.hs +125/−0
- gen/Gogol/CloudKMS/Projects/Locations/Operations/Get.hs +111/−0
- gen/Gogol/CloudKMS/Projects/Locations/UpdateEkmConfig.hs +126/−0
- gen/Gogol/CloudKMS/Projects/ShowEffectiveAutokeyConfig.hs +116/−0
- gen/Gogol/CloudKMS/Types.hs +420/−0
- gen/Network/Google/CloudKMS.hs +0/−463
- gen/Network/Google/CloudKMS/Types.hs +0/−293
- gen/Network/Google/CloudKMS/Types/Product.hs +0/−2039
- gen/Network/Google/CloudKMS/Types/Sum.hs +0/−589
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/Get.hs +0/−149
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/Create.hs +0/−184
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Create.hs +0/−193
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricDecrypt.hs +0/−185
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricSign.hs +0/−184
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Create.hs +0/−184
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Destroy.hs +0/−190
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Get.hs +0/−166
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/GetPublicKey.hs +0/−168
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/List.hs +0/−213
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Patch.hs +0/−198
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Restore.hs +0/−184
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Decrypt.hs +0/−180
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Encrypt.hs +0/−181
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Get.hs +0/−160
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/GetIAMPolicy.hs +0/−168
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/List.hs +0/−207
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Patch.hs +0/−189
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/SetIAMPolicy.hs +0/−183
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/TestIAMPermissions.hs +0/−192
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/UpdatePrimaryVersion.hs +0/−182
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/Get.hs +0/−153
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/GetIAMPolicy.hs +0/−162
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/GetIAMPolicy.hs +0/−168
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/SetIAMPolicy.hs +0/−183
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/TestIAMPermissions.hs +0/−192
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/List.hs +0/−189
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/SetIAMPolicy.hs +0/−177
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/TestIAMPermissions.hs +0/−190
- gen/Network/Google/Resource/CloudKMS/Projects/Locations/List.hs +0/−188
- gogol-cloudkms.cabal +109/−66
README.md view
@@ -8,7 +8,7 @@ ## Version -`0.5.0`+`1.0.0` ## Description
Setup.hs view
@@ -1,2 +1,3 @@-import Distribution.Simple+import Distribution.Simple+ main = defaultMain
+ gen/Gogol/CloudKMS.hs view
@@ -0,0 +1,763 @@+{-# 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 : Gogol.CloudKMS+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference>+module Gogol.CloudKMS+ ( -- * Configuration+ cloudKMSService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Cloudkms'FullControl,++ -- * Resources++ -- ** cloudkms.folders.getAutokeyConfig+ CloudKMSFoldersGetAutokeyConfigResource,+ CloudKMSFoldersGetAutokeyConfig (..),+ newCloudKMSFoldersGetAutokeyConfig,++ -- ** cloudkms.folders.updateAutokeyConfig+ CloudKMSFoldersUpdateAutokeyConfigResource,+ CloudKMSFoldersUpdateAutokeyConfig (..),+ newCloudKMSFoldersUpdateAutokeyConfig,++ -- ** cloudkms.projects.locations.ekmConfig.getIamPolicy+ CloudKMSProjectsLocationsEkmConfigGetIamPolicyResource,+ CloudKMSProjectsLocationsEkmConfigGetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConfigGetIamPolicy,++ -- ** cloudkms.projects.locations.ekmConfig.setIamPolicy+ CloudKMSProjectsLocationsEkmConfigSetIamPolicyResource,+ CloudKMSProjectsLocationsEkmConfigSetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConfigSetIamPolicy,++ -- ** cloudkms.projects.locations.ekmConfig.testIamPermissions+ CloudKMSProjectsLocationsEkmConfigTestIamPermissionsResource,+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions (..),+ newCloudKMSProjectsLocationsEkmConfigTestIamPermissions,++ -- ** cloudkms.projects.locations.ekmConnections.create+ CloudKMSProjectsLocationsEkmConnectionsCreateResource,+ CloudKMSProjectsLocationsEkmConnectionsCreate (..),+ newCloudKMSProjectsLocationsEkmConnectionsCreate,++ -- ** cloudkms.projects.locations.ekmConnections.get+ CloudKMSProjectsLocationsEkmConnectionsGetResource,+ CloudKMSProjectsLocationsEkmConnectionsGet (..),+ newCloudKMSProjectsLocationsEkmConnectionsGet,++ -- ** cloudkms.projects.locations.ekmConnections.getIamPolicy+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicyResource,+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConnectionsGetIamPolicy,++ -- ** cloudkms.projects.locations.ekmConnections.list+ CloudKMSProjectsLocationsEkmConnectionsListResource,+ CloudKMSProjectsLocationsEkmConnectionsList (..),+ newCloudKMSProjectsLocationsEkmConnectionsList,++ -- ** cloudkms.projects.locations.ekmConnections.patch+ CloudKMSProjectsLocationsEkmConnectionsPatchResource,+ CloudKMSProjectsLocationsEkmConnectionsPatch (..),+ newCloudKMSProjectsLocationsEkmConnectionsPatch,++ -- ** cloudkms.projects.locations.ekmConnections.setIamPolicy+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicyResource,+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConnectionsSetIamPolicy,++ -- ** cloudkms.projects.locations.ekmConnections.testIamPermissions+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissionsResource,+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions (..),+ newCloudKMSProjectsLocationsEkmConnectionsTestIamPermissions,++ -- ** cloudkms.projects.locations.ekmConnections.verifyConnectivity+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivityResource,+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity (..),+ newCloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity,++ -- ** cloudkms.projects.locations.generateRandomBytes+ CloudKMSProjectsLocationsGenerateRandomBytesResource,+ CloudKMSProjectsLocationsGenerateRandomBytes (..),+ newCloudKMSProjectsLocationsGenerateRandomBytes,++ -- ** cloudkms.projects.locations.get+ CloudKMSProjectsLocationsGetResource,+ CloudKMSProjectsLocationsGet (..),+ newCloudKMSProjectsLocationsGet,++ -- ** cloudkms.projects.locations.getEkmConfig+ CloudKMSProjectsLocationsGetEkmConfigResource,+ CloudKMSProjectsLocationsGetEkmConfig (..),+ newCloudKMSProjectsLocationsGetEkmConfig,++ -- ** cloudkms.projects.locations.keyHandles.create+ CloudKMSProjectsLocationsKeyHandlesCreateResource,+ CloudKMSProjectsLocationsKeyHandlesCreate (..),+ newCloudKMSProjectsLocationsKeyHandlesCreate,++ -- ** cloudkms.projects.locations.keyHandles.get+ CloudKMSProjectsLocationsKeyHandlesGetResource,+ CloudKMSProjectsLocationsKeyHandlesGet (..),+ newCloudKMSProjectsLocationsKeyHandlesGet,++ -- ** cloudkms.projects.locations.keyHandles.list+ CloudKMSProjectsLocationsKeyHandlesListResource,+ CloudKMSProjectsLocationsKeyHandlesList (..),+ newCloudKMSProjectsLocationsKeyHandlesList,++ -- ** cloudkms.projects.locations.keyRings.create+ CloudKMSProjectsLocationsKeyRingsCreateResource,+ CloudKMSProjectsLocationsKeyRingsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCreate,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.create+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreateResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCreate,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.import+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macSign+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSignResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macVerify+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerifyResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawDecrypt+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecryptResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawEncrypt+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncryptResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.decrypt+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecryptResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.encrypt+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncryptResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.get+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGet (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysGet,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.list+ CloudKMSProjectsLocationsKeyRingsCryptoKeysListResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysList (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysList,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.patch+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatchResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysPatch,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions,++ -- ** cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource,+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion,++ -- ** cloudkms.projects.locations.keyRings.get+ CloudKMSProjectsLocationsKeyRingsGetResource,+ CloudKMSProjectsLocationsKeyRingsGet (..),+ newCloudKMSProjectsLocationsKeyRingsGet,++ -- ** cloudkms.projects.locations.keyRings.getIamPolicy+ CloudKMSProjectsLocationsKeyRingsGetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsGetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.importJobs.create+ CloudKMSProjectsLocationsKeyRingsImportJobsCreateResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsCreate,++ -- ** cloudkms.projects.locations.keyRings.importJobs.get+ CloudKMSProjectsLocationsKeyRingsImportJobsGetResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsGet (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsGet,++ -- ** cloudkms.projects.locations.keyRings.importJobs.getIamPolicy+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.importJobs.list+ CloudKMSProjectsLocationsKeyRingsImportJobsListResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsList (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsList,++ -- ** cloudkms.projects.locations.keyRings.importJobs.setIamPolicy+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.importJobs.testIamPermissions+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissionsResource,+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions,++ -- ** cloudkms.projects.locations.keyRings.list+ CloudKMSProjectsLocationsKeyRingsListResource,+ CloudKMSProjectsLocationsKeyRingsList (..),+ newCloudKMSProjectsLocationsKeyRingsList,++ -- ** cloudkms.projects.locations.keyRings.setIamPolicy+ CloudKMSProjectsLocationsKeyRingsSetIamPolicyResource,+ CloudKMSProjectsLocationsKeyRingsSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsSetIamPolicy,++ -- ** cloudkms.projects.locations.keyRings.testIamPermissions+ CloudKMSProjectsLocationsKeyRingsTestIamPermissionsResource,+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsTestIamPermissions,++ -- ** cloudkms.projects.locations.list+ CloudKMSProjectsLocationsListResource,+ CloudKMSProjectsLocationsList (..),+ newCloudKMSProjectsLocationsList,++ -- ** cloudkms.projects.locations.operations.get+ CloudKMSProjectsLocationsOperationsGetResource,+ CloudKMSProjectsLocationsOperationsGet (..),+ newCloudKMSProjectsLocationsOperationsGet,++ -- ** cloudkms.projects.locations.updateEkmConfig+ CloudKMSProjectsLocationsUpdateEkmConfigResource,+ CloudKMSProjectsLocationsUpdateEkmConfig (..),+ newCloudKMSProjectsLocationsUpdateEkmConfig,++ -- ** cloudkms.projects.showEffectiveAutokeyConfig+ CloudKMSProjectsShowEffectiveAutokeyConfigResource,+ CloudKMSProjectsShowEffectiveAutokeyConfig (..),+ newCloudKMSProjectsShowEffectiveAutokeyConfig,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AsymmetricDecryptRequest+ AsymmetricDecryptRequest (..),+ newAsymmetricDecryptRequest,++ -- ** AsymmetricDecryptResponse+ AsymmetricDecryptResponse (..),+ newAsymmetricDecryptResponse,++ -- ** AsymmetricDecryptResponse_ProtectionLevel+ AsymmetricDecryptResponse_ProtectionLevel (..),++ -- ** AsymmetricSignRequest+ AsymmetricSignRequest (..),+ newAsymmetricSignRequest,++ -- ** AsymmetricSignResponse+ AsymmetricSignResponse (..),+ newAsymmetricSignResponse,++ -- ** AsymmetricSignResponse_ProtectionLevel+ AsymmetricSignResponse_ProtectionLevel (..),++ -- ** AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- ** AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- ** AuditLogConfig_LogType+ AuditLogConfig_LogType (..),++ -- ** AutokeyConfig+ AutokeyConfig (..),+ newAutokeyConfig,++ -- ** AutokeyConfig_State+ AutokeyConfig_State (..),++ -- ** Binding+ Binding (..),+ newBinding,++ -- ** Certificate+ Certificate (..),+ newCertificate,++ -- ** CertificateChains+ CertificateChains (..),+ newCertificateChains,++ -- ** ChecksummedData+ ChecksummedData (..),+ newChecksummedData,++ -- ** CryptoKey+ CryptoKey (..),+ newCryptoKey,++ -- ** CryptoKey_Labels+ CryptoKey_Labels (..),+ newCryptoKey_Labels,++ -- ** CryptoKey_Purpose+ CryptoKey_Purpose (..),++ -- ** CryptoKeyVersion+ CryptoKeyVersion (..),+ newCryptoKeyVersion,++ -- ** CryptoKeyVersion_Algorithm+ CryptoKeyVersion_Algorithm (..),++ -- ** CryptoKeyVersion_ProtectionLevel+ CryptoKeyVersion_ProtectionLevel (..),++ -- ** CryptoKeyVersion_State+ CryptoKeyVersion_State (..),++ -- ** CryptoKeyVersionTemplate+ CryptoKeyVersionTemplate (..),+ newCryptoKeyVersionTemplate,++ -- ** CryptoKeyVersionTemplate_Algorithm+ CryptoKeyVersionTemplate_Algorithm (..),++ -- ** CryptoKeyVersionTemplate_ProtectionLevel+ CryptoKeyVersionTemplate_ProtectionLevel (..),++ -- ** DecryptRequest+ DecryptRequest (..),+ newDecryptRequest,++ -- ** DecryptResponse+ DecryptResponse (..),+ newDecryptResponse,++ -- ** DecryptResponse_ProtectionLevel+ DecryptResponse_ProtectionLevel (..),++ -- ** DestroyCryptoKeyVersionRequest+ DestroyCryptoKeyVersionRequest (..),+ newDestroyCryptoKeyVersionRequest,++ -- ** Digest+ Digest (..),+ newDigest,++ -- ** EkmConfig+ EkmConfig (..),+ newEkmConfig,++ -- ** EkmConnection+ EkmConnection (..),+ newEkmConnection,++ -- ** EkmConnection_KeyManagementMode+ EkmConnection_KeyManagementMode (..),++ -- ** EncryptRequest+ EncryptRequest (..),+ newEncryptRequest,++ -- ** EncryptResponse+ EncryptResponse (..),+ newEncryptResponse,++ -- ** EncryptResponse_ProtectionLevel+ EncryptResponse_ProtectionLevel (..),++ -- ** Expr+ Expr (..),+ newExpr,++ -- ** ExternalProtectionLevelOptions+ ExternalProtectionLevelOptions (..),+ newExternalProtectionLevelOptions,++ -- ** GenerateRandomBytesRequest+ GenerateRandomBytesRequest (..),+ newGenerateRandomBytesRequest,++ -- ** GenerateRandomBytesRequest_ProtectionLevel+ GenerateRandomBytesRequest_ProtectionLevel (..),++ -- ** GenerateRandomBytesResponse+ GenerateRandomBytesResponse (..),+ newGenerateRandomBytesResponse,++ -- ** ImportCryptoKeyVersionRequest+ ImportCryptoKeyVersionRequest (..),+ newImportCryptoKeyVersionRequest,++ -- ** ImportCryptoKeyVersionRequest_Algorithm+ ImportCryptoKeyVersionRequest_Algorithm (..),++ -- ** ImportJob+ ImportJob (..),+ newImportJob,++ -- ** ImportJob_ImportMethod+ ImportJob_ImportMethod (..),++ -- ** ImportJob_ProtectionLevel+ ImportJob_ProtectionLevel (..),++ -- ** ImportJob_State+ ImportJob_State (..),++ -- ** KeyAccessJustificationsPolicy+ KeyAccessJustificationsPolicy (..),+ newKeyAccessJustificationsPolicy,++ -- ** KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem (..),++ -- ** KeyHandle+ KeyHandle (..),+ newKeyHandle,++ -- ** KeyOperationAttestation+ KeyOperationAttestation (..),+ newKeyOperationAttestation,++ -- ** KeyOperationAttestation_Format+ KeyOperationAttestation_Format (..),++ -- ** KeyRing+ KeyRing (..),+ newKeyRing,++ -- ** ListCryptoKeyVersionsResponse+ ListCryptoKeyVersionsResponse (..),+ newListCryptoKeyVersionsResponse,++ -- ** ListCryptoKeysResponse+ ListCryptoKeysResponse (..),+ newListCryptoKeysResponse,++ -- ** ListEkmConnectionsResponse+ ListEkmConnectionsResponse (..),+ newListEkmConnectionsResponse,++ -- ** ListImportJobsResponse+ ListImportJobsResponse (..),+ newListImportJobsResponse,++ -- ** ListKeyHandlesResponse+ ListKeyHandlesResponse (..),+ newListKeyHandlesResponse,++ -- ** ListKeyRingsResponse+ ListKeyRingsResponse (..),+ newListKeyRingsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** LocationMetadata+ LocationMetadata (..),+ newLocationMetadata,++ -- ** MacSignRequest+ MacSignRequest (..),+ newMacSignRequest,++ -- ** MacSignResponse+ MacSignResponse (..),+ newMacSignResponse,++ -- ** MacSignResponse_ProtectionLevel+ MacSignResponse_ProtectionLevel (..),++ -- ** MacVerifyRequest+ MacVerifyRequest (..),+ newMacVerifyRequest,++ -- ** MacVerifyResponse+ MacVerifyResponse (..),+ newMacVerifyResponse,++ -- ** MacVerifyResponse_ProtectionLevel+ MacVerifyResponse_ProtectionLevel (..),++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** PublicKey+ PublicKey (..),+ newPublicKey,++ -- ** PublicKey_Algorithm+ PublicKey_Algorithm (..),++ -- ** PublicKey_ProtectionLevel+ PublicKey_ProtectionLevel (..),++ -- ** PublicKey_PublicKeyFormat+ PublicKey_PublicKeyFormat (..),++ -- ** RawDecryptRequest+ RawDecryptRequest (..),+ newRawDecryptRequest,++ -- ** RawDecryptResponse+ RawDecryptResponse (..),+ newRawDecryptResponse,++ -- ** RawDecryptResponse_ProtectionLevel+ RawDecryptResponse_ProtectionLevel (..),++ -- ** RawEncryptRequest+ RawEncryptRequest (..),+ newRawEncryptRequest,++ -- ** RawEncryptResponse+ RawEncryptResponse (..),+ newRawEncryptResponse,++ -- ** RawEncryptResponse_ProtectionLevel+ RawEncryptResponse_ProtectionLevel (..),++ -- ** RestoreCryptoKeyVersionRequest+ RestoreCryptoKeyVersionRequest (..),+ newRestoreCryptoKeyVersionRequest,++ -- ** ServiceResolver+ ServiceResolver (..),+ newServiceResolver,++ -- ** SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- ** ShowEffectiveAutokeyConfigResponse+ ShowEffectiveAutokeyConfigResponse (..),+ newShowEffectiveAutokeyConfigResponse,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- ** TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- ** UpdateCryptoKeyPrimaryVersionRequest+ UpdateCryptoKeyPrimaryVersionRequest (..),+ newUpdateCryptoKeyPrimaryVersionRequest,++ -- ** VerifyConnectivityResponse+ VerifyConnectivityResponse (..),+ newVerifyConnectivityResponse,++ -- ** WrappingPublicKey+ WrappingPublicKey (..),+ newWrappingPublicKey,++ -- ** ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat (..),++ -- ** ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView (..),++ -- ** ProjectsLocationsKeyRingsCryptoKeysListVersionView+ ProjectsLocationsKeyRingsCryptoKeysListVersionView (..),+ )+where++import Gogol.CloudKMS.Folders.GetAutokeyConfig+import Gogol.CloudKMS.Folders.UpdateAutokeyConfig+import Gogol.CloudKMS.Projects.Locations.EkmConfig.GetIamPolicy+import Gogol.CloudKMS.Projects.Locations.EkmConfig.SetIamPolicy+import Gogol.CloudKMS.Projects.Locations.EkmConfig.TestIamPermissions+import Gogol.CloudKMS.Projects.Locations.EkmConnections.Create+import Gogol.CloudKMS.Projects.Locations.EkmConnections.Get+import Gogol.CloudKMS.Projects.Locations.EkmConnections.GetIamPolicy+import Gogol.CloudKMS.Projects.Locations.EkmConnections.List+import Gogol.CloudKMS.Projects.Locations.EkmConnections.Patch+import Gogol.CloudKMS.Projects.Locations.EkmConnections.SetIamPolicy+import Gogol.CloudKMS.Projects.Locations.EkmConnections.TestIamPermissions+import Gogol.CloudKMS.Projects.Locations.EkmConnections.VerifyConnectivity+import Gogol.CloudKMS.Projects.Locations.GenerateRandomBytes+import Gogol.CloudKMS.Projects.Locations.Get+import Gogol.CloudKMS.Projects.Locations.GetEkmConfig+import Gogol.CloudKMS.Projects.Locations.KeyHandles.Create+import Gogol.CloudKMS.Projects.Locations.KeyHandles.Get+import Gogol.CloudKMS.Projects.Locations.KeyHandles.List+import Gogol.CloudKMS.Projects.Locations.KeyRings.Create+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Import+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacSign+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacVerify+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawDecrypt+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawEncrypt+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions+import Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion+import Gogol.CloudKMS.Projects.Locations.KeyRings.Get+import Gogol.CloudKMS.Projects.Locations.KeyRings.GetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Create+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Get+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.List+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIamPermissions+import Gogol.CloudKMS.Projects.Locations.KeyRings.List+import Gogol.CloudKMS.Projects.Locations.KeyRings.SetIamPolicy+import Gogol.CloudKMS.Projects.Locations.KeyRings.TestIamPermissions+import Gogol.CloudKMS.Projects.Locations.List+import Gogol.CloudKMS.Projects.Locations.Operations.Get+import Gogol.CloudKMS.Projects.Locations.UpdateEkmConfig+import Gogol.CloudKMS.Projects.ShowEffectiveAutokeyConfig+import Gogol.CloudKMS.Types
+ gen/Gogol/CloudKMS/Folders/GetAutokeyConfig.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 : Gogol.CloudKMS.Folders.GetAutokeyConfig+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the AutokeyConfig for a folder.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.folders.getAutokeyConfig@.+module Gogol.CloudKMS.Folders.GetAutokeyConfig+ ( -- * Resource+ CloudKMSFoldersGetAutokeyConfigResource,++ -- ** Constructing a Request+ CloudKMSFoldersGetAutokeyConfig (..),+ newCloudKMSFoldersGetAutokeyConfig,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.folders.getAutokeyConfig@ method which the+-- 'CloudKMSFoldersGetAutokeyConfig' request conforms to.+type CloudKMSFoldersGetAutokeyConfigResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] AutokeyConfig++-- | Returns the AutokeyConfig for a folder.+--+-- /See:/ 'newCloudKMSFoldersGetAutokeyConfig' smart constructor.+data CloudKMSFoldersGetAutokeyConfig = CloudKMSFoldersGetAutokeyConfig+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Name of the AutokeyConfig resource, e.g. @folders\/{FOLDER_NUMBER}\/autokeyConfig@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSFoldersGetAutokeyConfig' with the minimum fields required to make a request.+newCloudKMSFoldersGetAutokeyConfig ::+ -- | Required. Name of the AutokeyConfig resource, e.g. @folders\/{FOLDER_NUMBER}\/autokeyConfig@. See 'name'.+ Core.Text ->+ CloudKMSFoldersGetAutokeyConfig+newCloudKMSFoldersGetAutokeyConfig name =+ CloudKMSFoldersGetAutokeyConfig+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSFoldersGetAutokeyConfig where+ type Rs CloudKMSFoldersGetAutokeyConfig = AutokeyConfig+ type+ Scopes CloudKMSFoldersGetAutokeyConfig =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSFoldersGetAutokeyConfig {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudKMSFoldersGetAutokeyConfigResource)+ Core.mempty
+ gen/Gogol/CloudKMS/Folders/UpdateAutokeyConfig.hs view
@@ -0,0 +1,123 @@+{-# 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 : Gogol.CloudKMS.Folders.UpdateAutokeyConfig+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the AutokeyConfig for a folder. The caller must have both @cloudkms.autokeyConfigs.update@ permission on the parent folder and @cloudkms.cryptoKeys.setIamPolicy@ permission on the provided key project. A KeyHandle creation in the folder\'s descendant projects will use this configuration to determine where to create the resulting CryptoKey.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.folders.updateAutokeyConfig@.+module Gogol.CloudKMS.Folders.UpdateAutokeyConfig+ ( -- * Resource+ CloudKMSFoldersUpdateAutokeyConfigResource,++ -- ** Constructing a Request+ CloudKMSFoldersUpdateAutokeyConfig (..),+ newCloudKMSFoldersUpdateAutokeyConfig,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.folders.updateAutokeyConfig@ method which the+-- 'CloudKMSFoldersUpdateAutokeyConfig' request conforms to.+type CloudKMSFoldersUpdateAutokeyConfigResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] AutokeyConfig+ Core.:> Core.Patch '[Core.JSON] AutokeyConfig++-- | Updates the AutokeyConfig for a folder. The caller must have both @cloudkms.autokeyConfigs.update@ permission on the parent folder and @cloudkms.cryptoKeys.setIamPolicy@ permission on the provided key project. A KeyHandle creation in the folder\'s descendant projects will use this configuration to determine where to create the resulting CryptoKey.+--+-- /See:/ 'newCloudKMSFoldersUpdateAutokeyConfig' smart constructor.+data CloudKMSFoldersUpdateAutokeyConfig = CloudKMSFoldersUpdateAutokeyConfig+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Identifier. Name of the AutokeyConfig resource, e.g. @folders\/{FOLDER_NUMBER}\/autokeyConfig@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: AutokeyConfig,+ -- | Required. Masks which fields of the AutokeyConfig to update, e.g. @keyProject@.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSFoldersUpdateAutokeyConfig' with the minimum fields required to make a request.+newCloudKMSFoldersUpdateAutokeyConfig ::+ -- | Identifier. Name of the AutokeyConfig resource, e.g. @folders\/{FOLDER_NUMBER}\/autokeyConfig@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ AutokeyConfig ->+ CloudKMSFoldersUpdateAutokeyConfig+newCloudKMSFoldersUpdateAutokeyConfig name payload =+ CloudKMSFoldersUpdateAutokeyConfig+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSFoldersUpdateAutokeyConfig where+ type Rs CloudKMSFoldersUpdateAutokeyConfig = AutokeyConfig+ type+ Scopes CloudKMSFoldersUpdateAutokeyConfig =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSFoldersUpdateAutokeyConfig {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSFoldersUpdateAutokeyConfigResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Internal/Product.hs view
@@ -0,0 +1,3463 @@+{-# 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 : Gogol.CloudKMS.Internal.Product+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.CloudKMS.Internal.Product+ ( -- * AsymmetricDecryptRequest+ AsymmetricDecryptRequest (..),+ newAsymmetricDecryptRequest,++ -- * AsymmetricDecryptResponse+ AsymmetricDecryptResponse (..),+ newAsymmetricDecryptResponse,++ -- * AsymmetricSignRequest+ AsymmetricSignRequest (..),+ newAsymmetricSignRequest,++ -- * AsymmetricSignResponse+ AsymmetricSignResponse (..),+ newAsymmetricSignResponse,++ -- * AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- * AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- * AutokeyConfig+ AutokeyConfig (..),+ newAutokeyConfig,++ -- * Binding+ Binding (..),+ newBinding,++ -- * Certificate+ Certificate (..),+ newCertificate,++ -- * CertificateChains+ CertificateChains (..),+ newCertificateChains,++ -- * ChecksummedData+ ChecksummedData (..),+ newChecksummedData,++ -- * CryptoKey+ CryptoKey (..),+ newCryptoKey,++ -- * CryptoKey_Labels+ CryptoKey_Labels (..),+ newCryptoKey_Labels,++ -- * CryptoKeyVersion+ CryptoKeyVersion (..),+ newCryptoKeyVersion,++ -- * CryptoKeyVersionTemplate+ CryptoKeyVersionTemplate (..),+ newCryptoKeyVersionTemplate,++ -- * DecryptRequest+ DecryptRequest (..),+ newDecryptRequest,++ -- * DecryptResponse+ DecryptResponse (..),+ newDecryptResponse,++ -- * DestroyCryptoKeyVersionRequest+ DestroyCryptoKeyVersionRequest (..),+ newDestroyCryptoKeyVersionRequest,++ -- * Digest+ Digest (..),+ newDigest,++ -- * EkmConfig+ EkmConfig (..),+ newEkmConfig,++ -- * EkmConnection+ EkmConnection (..),+ newEkmConnection,++ -- * EncryptRequest+ EncryptRequest (..),+ newEncryptRequest,++ -- * EncryptResponse+ EncryptResponse (..),+ newEncryptResponse,++ -- * Expr+ Expr (..),+ newExpr,++ -- * ExternalProtectionLevelOptions+ ExternalProtectionLevelOptions (..),+ newExternalProtectionLevelOptions,++ -- * GenerateRandomBytesRequest+ GenerateRandomBytesRequest (..),+ newGenerateRandomBytesRequest,++ -- * GenerateRandomBytesResponse+ GenerateRandomBytesResponse (..),+ newGenerateRandomBytesResponse,++ -- * ImportCryptoKeyVersionRequest+ ImportCryptoKeyVersionRequest (..),+ newImportCryptoKeyVersionRequest,++ -- * ImportJob+ ImportJob (..),+ newImportJob,++ -- * KeyAccessJustificationsPolicy+ KeyAccessJustificationsPolicy (..),+ newKeyAccessJustificationsPolicy,++ -- * KeyHandle+ KeyHandle (..),+ newKeyHandle,++ -- * KeyOperationAttestation+ KeyOperationAttestation (..),+ newKeyOperationAttestation,++ -- * KeyRing+ KeyRing (..),+ newKeyRing,++ -- * ListCryptoKeyVersionsResponse+ ListCryptoKeyVersionsResponse (..),+ newListCryptoKeyVersionsResponse,++ -- * ListCryptoKeysResponse+ ListCryptoKeysResponse (..),+ newListCryptoKeysResponse,++ -- * ListEkmConnectionsResponse+ ListEkmConnectionsResponse (..),+ newListEkmConnectionsResponse,++ -- * ListImportJobsResponse+ ListImportJobsResponse (..),+ newListImportJobsResponse,++ -- * ListKeyHandlesResponse+ ListKeyHandlesResponse (..),+ newListKeyHandlesResponse,++ -- * ListKeyRingsResponse+ ListKeyRingsResponse (..),+ newListKeyRingsResponse,++ -- * ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- * Location+ Location (..),+ newLocation,++ -- * Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- * Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- * LocationMetadata+ LocationMetadata (..),+ newLocationMetadata,++ -- * MacSignRequest+ MacSignRequest (..),+ newMacSignRequest,++ -- * MacSignResponse+ MacSignResponse (..),+ newMacSignResponse,++ -- * MacVerifyRequest+ MacVerifyRequest (..),+ newMacVerifyRequest,++ -- * MacVerifyResponse+ MacVerifyResponse (..),+ newMacVerifyResponse,++ -- * Operation+ Operation (..),+ newOperation,++ -- * Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- * Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- * Policy+ Policy (..),+ newPolicy,++ -- * PublicKey+ PublicKey (..),+ newPublicKey,++ -- * RawDecryptRequest+ RawDecryptRequest (..),+ newRawDecryptRequest,++ -- * RawDecryptResponse+ RawDecryptResponse (..),+ newRawDecryptResponse,++ -- * RawEncryptRequest+ RawEncryptRequest (..),+ newRawEncryptRequest,++ -- * RawEncryptResponse+ RawEncryptResponse (..),+ newRawEncryptResponse,++ -- * RestoreCryptoKeyVersionRequest+ RestoreCryptoKeyVersionRequest (..),+ newRestoreCryptoKeyVersionRequest,++ -- * ServiceResolver+ ServiceResolver (..),+ newServiceResolver,++ -- * SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- * ShowEffectiveAutokeyConfigResponse+ ShowEffectiveAutokeyConfigResponse (..),+ newShowEffectiveAutokeyConfigResponse,++ -- * Status+ Status (..),+ newStatus,++ -- * Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- * TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- * TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- * UpdateCryptoKeyPrimaryVersionRequest+ UpdateCryptoKeyPrimaryVersionRequest (..),+ newUpdateCryptoKeyPrimaryVersionRequest,++ -- * VerifyConnectivityResponse+ VerifyConnectivityResponse (..),+ newVerifyConnectivityResponse,++ -- * WrappingPublicKey+ WrappingPublicKey (..),+ newWrappingPublicKey,+ )+where++import Gogol.CloudKMS.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Request message for KeyManagementService.AsymmetricDecrypt.+--+-- /See:/ 'newAsymmetricDecryptRequest' smart constructor.+data AsymmetricDecryptRequest = AsymmetricDecryptRequest+ { -- | Required. The data encrypted with the named CryptoKeyVersion\'s public key using OAEP.+ ciphertext :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the AsymmetricDecryptRequest.ciphertext. If specified, KeyManagementService will verify the integrity of the received AsymmetricDecryptRequest.ciphertext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(AsymmetricDecryptRequest.ciphertext) is equal to AsymmetricDecryptRequest.ciphertext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ ciphertextCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AsymmetricDecryptRequest' with the minimum fields required to make a request.+newAsymmetricDecryptRequest ::+ AsymmetricDecryptRequest+newAsymmetricDecryptRequest =+ AsymmetricDecryptRequest+ { ciphertext = Core.Nothing,+ ciphertextCrc32c = Core.Nothing+ }++instance Core.FromJSON AsymmetricDecryptRequest where+ parseJSON =+ Core.withObject+ "AsymmetricDecryptRequest"+ ( \o ->+ AsymmetricDecryptRequest+ Core.<$> (o Core..:? "ciphertext")+ Core.<*> (o Core..:? "ciphertextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON AsymmetricDecryptRequest where+ toJSON AsymmetricDecryptRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("ciphertext" Core..=) Core.<$> ciphertext,+ ("ciphertextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> ciphertextCrc32c+ ]+ )++-- | Response message for KeyManagementService.AsymmetricDecrypt.+--+-- /See:/ 'newAsymmetricDecryptResponse' smart constructor.+data AsymmetricDecryptResponse = AsymmetricDecryptResponse+ { -- | The decrypted data originally encrypted with the matching public key.+ plaintext :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned AsymmetricDecryptResponse.plaintext. An integrity check of AsymmetricDecryptResponse.plaintext can be performed by computing the CRC32C checksum of AsymmetricDecryptResponse.plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ plaintextCrc32c :: (Core.Maybe Core.Int64),+ -- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+ protectionLevel :: (Core.Maybe AsymmetricDecryptResponse_ProtectionLevel),+ -- | Integrity verification field. A flag indicating whether AsymmetricDecryptRequest.ciphertext/crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that AsymmetricDecryptRequest.ciphertext/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set AsymmetricDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedCiphertextCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AsymmetricDecryptResponse' with the minimum fields required to make a request.+newAsymmetricDecryptResponse ::+ AsymmetricDecryptResponse+newAsymmetricDecryptResponse =+ AsymmetricDecryptResponse+ { plaintext = Core.Nothing,+ plaintextCrc32c = Core.Nothing,+ protectionLevel = Core.Nothing,+ verifiedCiphertextCrc32c = Core.Nothing+ }++instance Core.FromJSON AsymmetricDecryptResponse where+ parseJSON =+ Core.withObject+ "AsymmetricDecryptResponse"+ ( \o ->+ AsymmetricDecryptResponse+ Core.<$> (o Core..:? "plaintext")+ Core.<*> (o Core..:? "plaintextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "verifiedCiphertextCrc32c")+ )++instance Core.ToJSON AsymmetricDecryptResponse where+ toJSON AsymmetricDecryptResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("plaintext" Core..=) Core.<$> plaintext,+ ("plaintextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> plaintextCrc32c,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("verifiedCiphertextCrc32c" Core..=)+ Core.<$> verifiedCiphertextCrc32c+ ]+ )++-- | Request message for KeyManagementService.AsymmetricSign.+--+-- /See:/ 'newAsymmetricSignRequest' smart constructor.+data AsymmetricSignRequest = AsymmetricSignRequest+ { -- | Optional. The data to sign. It can\'t be supplied if AsymmetricSignRequest.digest is supplied.+ data' :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the AsymmetricSignRequest.data. If specified, KeyManagementService will verify the integrity of the received AsymmetricSignRequest.data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(AsymmetricSignRequest.data) is equal to AsymmetricSignRequest.data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ dataCrc32c :: (Core.Maybe Core.Int64),+ -- | Optional. The digest of the data to sign. The digest must be produced with the same digest algorithm as specified by the key version\'s algorithm. This field may not be supplied if AsymmetricSignRequest.data is supplied.+ digest :: (Core.Maybe Digest),+ -- | Optional. An optional CRC32C checksum of the AsymmetricSignRequest.digest. If specified, KeyManagementService will verify the integrity of the received AsymmetricSignRequest.digest using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(AsymmetricSignRequest.digest) is equal to AsymmetricSignRequest.digest_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ digestCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AsymmetricSignRequest' with the minimum fields required to make a request.+newAsymmetricSignRequest ::+ AsymmetricSignRequest+newAsymmetricSignRequest =+ AsymmetricSignRequest+ { data' = Core.Nothing,+ dataCrc32c = Core.Nothing,+ digest = Core.Nothing,+ digestCrc32c = Core.Nothing+ }++instance Core.FromJSON AsymmetricSignRequest where+ parseJSON =+ Core.withObject+ "AsymmetricSignRequest"+ ( \o ->+ AsymmetricSignRequest+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "dataCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "digest")+ Core.<*> (o Core..:? "digestCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON AsymmetricSignRequest where+ toJSON AsymmetricSignRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("dataCrc32c" Core..=) Core.. Core.AsText Core.<$> dataCrc32c,+ ("digest" Core..=) Core.<$> digest,+ ("digestCrc32c" Core..=) Core.. Core.AsText Core.<$> digestCrc32c+ ]+ )++-- | Response message for KeyManagementService.AsymmetricSign.+--+-- /See:/ 'newAsymmetricSignResponse' smart constructor.+data AsymmetricSignResponse = AsymmetricSignResponse+ { -- | The resource name of the CryptoKeyVersion used for signing. Check this field to verify that the intended resource was used for signing.+ name :: (Core.Maybe Core.Text),+ -- | The ProtectionLevel of the CryptoKeyVersion used for signing.+ protectionLevel :: (Core.Maybe AsymmetricSignResponse_ProtectionLevel),+ -- | The created signature.+ signature :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned AsymmetricSignResponse.signature. An integrity check of AsymmetricSignResponse.signature can be performed by computing the CRC32C checksum of AsymmetricSignResponse.signature and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ signatureCrc32c :: (Core.Maybe Core.Int64),+ -- | Integrity verification field. A flag indicating whether AsymmetricSignRequest.data/crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that AsymmetricSignRequest.data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set AsymmetricSignRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedDataCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether AsymmetricSignRequest.digest/crc32c was received by KeyManagementService and used for the integrity verification of the digest. A false value of this field indicates either that AsymmetricSignRequest.digest/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set AsymmetricSignRequest.digest_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedDigestCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AsymmetricSignResponse' with the minimum fields required to make a request.+newAsymmetricSignResponse ::+ AsymmetricSignResponse+newAsymmetricSignResponse =+ AsymmetricSignResponse+ { name = Core.Nothing,+ protectionLevel = Core.Nothing,+ signature = Core.Nothing,+ signatureCrc32c = Core.Nothing,+ verifiedDataCrc32c = Core.Nothing,+ verifiedDigestCrc32c = Core.Nothing+ }++instance Core.FromJSON AsymmetricSignResponse where+ parseJSON =+ Core.withObject+ "AsymmetricSignResponse"+ ( \o ->+ AsymmetricSignResponse+ Core.<$> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "signature")+ Core.<*> (o Core..:? "signatureCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "verifiedDataCrc32c")+ Core.<*> (o Core..:? "verifiedDigestCrc32c")+ )++instance Core.ToJSON AsymmetricSignResponse where+ toJSON AsymmetricSignResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("signature" Core..=) Core.<$> signature,+ ("signatureCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> signatureCrc32c,+ ("verifiedDataCrc32c" Core..=) Core.<$> verifiedDataCrc32c,+ ("verifiedDigestCrc32c" Core..=) Core.<$> verifiedDigestCrc32c+ ]+ )++-- | Specifies the audit configuration for a service. The configuration determines which permission types are logged, and what identities, if any, are exempted from logging. An AuditConfig must have one or more AuditLogConfigs. If there are AuditConfigs for both @allServices@ and a specific service, the union of the two AuditConfigs is used for that service: the log/types specified in each AuditConfig are enabled, and the exempted/members in each AuditLogConfig are exempted. Example Policy with multiple AuditConfigs: { \"audit/configs\": [ { \"service\": \"allServices\", \"audit/log/configs\": [ { \"log/type\": \"DATA/READ\", \"exempted/members\": [ \"user:jose\@example.com\" ] }, { \"log/type\": \"DATA/WRITE\" }, { \"log/type\": \"ADMIN/READ\" } ] }, { \"service\": \"sampleservice.googleapis.com\", \"audit/log/configs\": [ { \"log/type\": \"DATA/READ\" }, { \"log/type\": \"DATA/WRITE\", \"exempted/members\": [ \"user:aliya\@example.com\" ] } ] } ] } For sampleservice, this policy enables DATA/READ, DATA/WRITE and+-- ADMIN/READ logging. It also exempts @jose\@example.com@ from DATA/READ logging, and @aliya\@example.com@ from DATA/WRITE logging.+--+-- /See:/ 'newAuditConfig' smart constructor.+data AuditConfig = AuditConfig+ { -- | The configuration for logging of each type of permission.+ auditLogConfigs :: (Core.Maybe [AuditLogConfig]),+ -- | Specifies a service that will be enabled for audit logging. For example, @storage.googleapis.com@, @cloudsql.googleapis.com@. @allServices@ is a special value that covers all services.+ service :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AuditConfig' with the minimum fields required to make a request.+newAuditConfig ::+ AuditConfig+newAuditConfig =+ AuditConfig+ { auditLogConfigs = Core.Nothing,+ service = Core.Nothing+ }++instance Core.FromJSON AuditConfig where+ parseJSON =+ Core.withObject+ "AuditConfig"+ ( \o ->+ AuditConfig+ Core.<$> (o Core..:? "auditLogConfigs")+ Core.<*> (o Core..:? "service")+ )++instance Core.ToJSON AuditConfig where+ toJSON AuditConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("auditLogConfigs" Core..=) Core.<$> auditLogConfigs,+ ("service" Core..=) Core.<$> service+ ]+ )++-- | Provides the configuration for logging a type of permissions. Example: { \"audit/log/configs\": [ { \"log/type\": \"DATA/READ\", \"exempted/members\": [ \"user:jose\@example.com\" ] }, { \"log/type\": \"DATA/WRITE\" } ] } This enables \'DATA/READ\' and \'DATA/WRITE\' logging, while exempting jose\@example.com from DATA/READ logging.+--+-- /See:/ 'newAuditLogConfig' smart constructor.+data AuditLogConfig = AuditLogConfig+ { -- | Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.+ exemptedMembers :: (Core.Maybe [Core.Text]),+ -- | The log type that this config enables.+ logType :: (Core.Maybe AuditLogConfig_LogType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AuditLogConfig' with the minimum fields required to make a request.+newAuditLogConfig ::+ AuditLogConfig+newAuditLogConfig =+ AuditLogConfig+ { exemptedMembers = Core.Nothing,+ logType = Core.Nothing+ }++instance Core.FromJSON AuditLogConfig where+ parseJSON =+ Core.withObject+ "AuditLogConfig"+ ( \o ->+ AuditLogConfig+ Core.<$> (o Core..:? "exemptedMembers")+ Core.<*> (o Core..:? "logType")+ )++instance Core.ToJSON AuditLogConfig where+ toJSON AuditLogConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("exemptedMembers" Core..=) Core.<$> exemptedMembers,+ ("logType" Core..=) Core.<$> logType+ ]+ )++-- | Cloud KMS Autokey configuration for a folder.+--+-- /See:/ 'newAutokeyConfig' smart constructor.+data AutokeyConfig = AutokeyConfig+ { -- | Optional. Name of the key project, e.g. @projects\/{PROJECT_ID}@ or @projects\/{PROJECT_NUMBER}@, where Cloud KMS Autokey will provision a new CryptoKey when a KeyHandle is created. On UpdateAutokeyConfig, the caller will require @cloudkms.cryptoKeys.setIamPolicy@ permission on this key project. Once configured, for Cloud KMS Autokey to function properly, this key project must have the Cloud KMS API activated and the Cloud KMS Service Agent for this key project must be granted the @cloudkms.admin@ role (or pertinent permissions). A request with an empty key project field will clear the configuration.+ keyProject :: (Core.Maybe Core.Text),+ -- | Identifier. Name of the AutokeyConfig resource, e.g. @folders\/{FOLDER_NUMBER}\/autokeyConfig@.+ name :: (Core.Maybe Core.Text),+ -- | Output only. The state for the AutokeyConfig.+ state :: (Core.Maybe AutokeyConfig_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AutokeyConfig' with the minimum fields required to make a request.+newAutokeyConfig ::+ AutokeyConfig+newAutokeyConfig =+ AutokeyConfig+ { keyProject = Core.Nothing,+ name = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON AutokeyConfig where+ parseJSON =+ Core.withObject+ "AutokeyConfig"+ ( \o ->+ AutokeyConfig+ Core.<$> (o Core..:? "keyProject")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON AutokeyConfig where+ toJSON AutokeyConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("keyProject" Core..=) Core.<$> keyProject,+ ("name" Core..=) Core.<$> name,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | Associates @members@, or principals, with a @role@.+--+-- /See:/ 'newBinding' smart constructor.+data Binding = Binding+ { -- | The condition that is associated with this binding. If the condition evaluates to @true@, then this binding applies to the current request. If the condition evaluates to @false@, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ condition :: (Core.Maybe Expr),+ -- | Specifies the principals requesting access for a Google Cloud resource. @members@ can have the following values: * @allUsers@: A special identifier that represents anyone who is 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. Does not include identities that come from external identity providers (IdPs) through identity federation. * @user:{emailid}@: An email address that represents a specific Google account. For example, @alice\@example.com@ . * @serviceAccount:{emailid}@: An email address that represents a Google service account. For example, @my-other-app\@appspot.gserviceaccount.com@. * @serviceAccount:{projectid}.svc.id.goog[{namespace}\/{kubernetes-sa}]@: An identifier for a <https://cloud.google.com/kubernetes-engine/docs/how-to/kubernetes-service-accounts Kubernetes service account>. For example, @my-project.svc.id.goog[my-namespace\/my-kubernetes-sa]@. *+ -- @group:{emailid}@: An email address that represents a Google group. For example, @admins\@example.com@. * @domain:{domain}@: The G Suite domain (primary) that represents all the users of that domain. For example, @google.com@ or @example.com@. * @principal:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/{pool_id}\/subject\/{subject_attribute_value}@: A single identity in a workforce identity pool. * @principalSet:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/{pool_id}\/group\/{group_id}@: All workforce identities in a group. * @principalSet:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/{pool_id}\/attribute.{attribute_name}\/{attribute_value}@: All workforce identities with a specific attribute value. * @principalSet:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/{pool_id}\/*@: All identities in a workforce identity pool. *+ -- @principal:\/\/iam.googleapis.com\/projects\/{project_number}\/locations\/global\/workloadIdentityPools\/{pool_id}\/subject\/{subject_attribute_value}@: A single identity in a workload identity pool. * @principalSet:\/\/iam.googleapis.com\/projects\/{project_number}\/locations\/global\/workloadIdentityPools\/{pool_id}\/group\/{group_id}@: A workload identity pool group. * @principalSet:\/\/iam.googleapis.com\/projects\/{project_number}\/locations\/global\/workloadIdentityPools\/{pool_id}\/attribute.{attribute_name}\/{attribute_value}@: All identities in a workload identity pool with a certain attribute. * @principalSet:\/\/iam.googleapis.com\/projects\/{project_number}\/locations\/global\/workloadIdentityPools\/{pool_id}\/*@: All identities in a workload identity pool. * @deleted:user:{emailid}?uid={uniqueid}@: An email address (plus unique identifier) representing a user that has been recently deleted. For example, @alice\@example.com?uid=123456789012345678901@. If the user is recovered, this value reverts+ -- to @user:{emailid}@ and the recovered user retains the role in the binding. * @deleted:serviceAccount:{emailid}?uid={uniqueid}@: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, @my-other-app\@appspot.gserviceaccount.com?uid=123456789012345678901@. If the service account is undeleted, this value reverts to @serviceAccount:{emailid}@ and the undeleted service account retains the role in the binding. * @deleted:group:{emailid}?uid={uniqueid}@: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, @admins\@example.com?uid=123456789012345678901@. If the group is recovered, this value reverts to @group:{emailid}@ and the recovered group retains the role in the binding. * @deleted:principal:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/{pool_id}\/subject\/{subject_attribute_value}@: Deleted single identity in a workforce identity pool. For example,+ -- @deleted:principal:\/\/iam.googleapis.com\/locations\/global\/workforcePools\/my-pool-id\/subject\/my-subject-attribute-value@.+ members :: (Core.Maybe [Core.Text]),+ -- | Role that is assigned to the list of @members@, or principals. For example, @roles\/viewer@, @roles\/editor@, or @roles\/owner@. For an overview of the IAM roles and permissions, see the <https://cloud.google.com/iam/docs/roles-overview IAM documentation>. For a list of the available pre-defined roles, see <https://cloud.google.com/iam/docs/understanding-roles here>.+ role' :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Binding' with the minimum fields required to make a request.+newBinding ::+ Binding+newBinding =+ Binding+ { condition = Core.Nothing,+ members = Core.Nothing,+ role' = Core.Nothing+ }++instance Core.FromJSON Binding where+ parseJSON =+ Core.withObject+ "Binding"+ ( \o ->+ Binding+ Core.<$> (o Core..:? "condition")+ Core.<*> (o Core..:? "members")+ Core.<*> (o Core..:? "role")+ )++instance Core.ToJSON Binding where+ toJSON Binding {..} =+ Core.object+ ( Core.catMaybes+ [ ("condition" Core..=) Core.<$> condition,+ ("members" Core..=) Core.<$> members,+ ("role" Core..=) Core.<$> role'+ ]+ )++-- | A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.+--+-- /See:/ 'newCertificate' smart constructor.+data Certificate = Certificate+ { -- | Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.+ issuer :: (Core.Maybe Core.Text),+ -- | Output only. The certificate is not valid after this time. Only present if parsed is true.+ notAfterTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The certificate is not valid before this time. Only present if parsed is true.+ notBeforeTime :: (Core.Maybe Core.DateTime),+ -- | Output only. True if the certificate was parsed successfully.+ parsed :: (Core.Maybe Core.Bool),+ -- | Required. The raw certificate bytes in DER format.+ rawDer :: (Core.Maybe Core.Base64),+ -- | Output only. The certificate serial number as a hex string. Only present if parsed is true.+ serialNumber :: (Core.Maybe Core.Text),+ -- | Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.+ sha256Fingerprint :: (Core.Maybe Core.Text),+ -- | Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.+ subject :: (Core.Maybe Core.Text),+ -- | Output only. The subject Alternative DNS names. Only present if parsed is true.+ subjectAlternativeDnsNames :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Certificate' with the minimum fields required to make a request.+newCertificate ::+ Certificate+newCertificate =+ Certificate+ { issuer = Core.Nothing,+ notAfterTime = Core.Nothing,+ notBeforeTime = Core.Nothing,+ parsed = Core.Nothing,+ rawDer = Core.Nothing,+ serialNumber = Core.Nothing,+ sha256Fingerprint = Core.Nothing,+ subject = Core.Nothing,+ subjectAlternativeDnsNames = Core.Nothing+ }++instance Core.FromJSON Certificate where+ parseJSON =+ Core.withObject+ "Certificate"+ ( \o ->+ Certificate+ Core.<$> (o Core..:? "issuer")+ Core.<*> (o Core..:? "notAfterTime")+ Core.<*> (o Core..:? "notBeforeTime")+ Core.<*> (o Core..:? "parsed")+ Core.<*> (o Core..:? "rawDer")+ Core.<*> (o Core..:? "serialNumber")+ Core.<*> (o Core..:? "sha256Fingerprint")+ Core.<*> (o Core..:? "subject")+ Core.<*> (o Core..:? "subjectAlternativeDnsNames")+ )++instance Core.ToJSON Certificate where+ toJSON Certificate {..} =+ Core.object+ ( Core.catMaybes+ [ ("issuer" Core..=) Core.<$> issuer,+ ("notAfterTime" Core..=) Core.<$> notAfterTime,+ ("notBeforeTime" Core..=) Core.<$> notBeforeTime,+ ("parsed" Core..=) Core.<$> parsed,+ ("rawDer" Core..=) Core.<$> rawDer,+ ("serialNumber" Core..=) Core.<$> serialNumber,+ ("sha256Fingerprint" Core..=) Core.<$> sha256Fingerprint,+ ("subject" Core..=) Core.<$> subject,+ ("subjectAlternativeDnsNames" Core..=)+ Core.<$> subjectAlternativeDnsNames+ ]+ )++-- | Certificate chains needed to verify the attestation. Certificates in chains are PEM-encoded and are ordered based on https:\/\/tools.ietf.org\/html\/rfc5246#section-7.4.2.+--+-- /See:/ 'newCertificateChains' smart constructor.+data CertificateChains = CertificateChains+ { -- | Cavium certificate chain corresponding to the attestation.+ caviumCerts :: (Core.Maybe [Core.Text]),+ -- | Google card certificate chain corresponding to the attestation.+ googleCardCerts :: (Core.Maybe [Core.Text]),+ -- | Google partition certificate chain corresponding to the attestation.+ googlePartitionCerts :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CertificateChains' with the minimum fields required to make a request.+newCertificateChains ::+ CertificateChains+newCertificateChains =+ CertificateChains+ { caviumCerts = Core.Nothing,+ googleCardCerts = Core.Nothing,+ googlePartitionCerts = Core.Nothing+ }++instance Core.FromJSON CertificateChains where+ parseJSON =+ Core.withObject+ "CertificateChains"+ ( \o ->+ CertificateChains+ Core.<$> (o Core..:? "caviumCerts")+ Core.<*> (o Core..:? "googleCardCerts")+ Core.<*> (o Core..:? "googlePartitionCerts")+ )++instance Core.ToJSON CertificateChains where+ toJSON CertificateChains {..} =+ Core.object+ ( Core.catMaybes+ [ ("caviumCerts" Core..=) Core.<$> caviumCerts,+ ("googleCardCerts" Core..=) Core.<$> googleCardCerts,+ ("googlePartitionCerts" Core..=) Core.<$> googlePartitionCerts+ ]+ )++-- | Data with integrity verification field.+--+-- /See:/ 'newChecksummedData' smart constructor.+data ChecksummedData = ChecksummedData+ { -- | Integrity verification field. A CRC32C checksum of the returned ChecksummedData.data. An integrity check of ChecksummedData.data can be performed by computing the CRC32C checksum of ChecksummedData.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed @2^32-1@, and can be safely downconverted to uint32 in languages that support this type.+ crc32cChecksum :: (Core.Maybe Core.Int64),+ -- | Raw Data.+ data' :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ChecksummedData' with the minimum fields required to make a request.+newChecksummedData ::+ ChecksummedData+newChecksummedData =+ ChecksummedData+ { crc32cChecksum = Core.Nothing,+ data' = Core.Nothing+ }++instance Core.FromJSON ChecksummedData where+ parseJSON =+ Core.withObject+ "ChecksummedData"+ ( \o ->+ ChecksummedData+ Core.<$> (o Core..:? "crc32cChecksum" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "data")+ )++instance Core.ToJSON ChecksummedData where+ toJSON ChecksummedData {..} =+ Core.object+ ( Core.catMaybes+ [ ("crc32cChecksum" Core..=)+ Core.. Core.AsText+ Core.<$> crc32cChecksum,+ ("data" Core..=) Core.<$> data'+ ]+ )++-- | A CryptoKey represents a logical key that can be used for cryptographic operations. A CryptoKey is made up of zero or more versions, which represent the actual key material used in cryptographic operations.+--+-- /See:/ 'newCryptoKey' smart constructor.+data CryptoKey = CryptoKey+ { -- | Output only. The time at which this CryptoKey was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Immutable. The resource name of the backend environment where the key material for all CryptoKeyVersions associated with this CryptoKey reside and where all related cryptographic operations are performed. Only applicable if CryptoKeyVersions have a ProtectionLevel of EXTERNAL_VPC, with the resource name in the format @projects\/*\/locations\/*\/ekmConnections\/*@. Note, this list is non-exhaustive and may apply to additional ProtectionLevels in the future.+ cryptoKeyBackend :: (Core.Maybe Core.Text),+ -- | Immutable. The period of time that versions of this key spend in the DESTROY_SCHEDULED state before transitioning to DESTROYED. If not specified at creation time, the default duration is 30 days.+ destroyScheduledDuration :: (Core.Maybe Core.Duration),+ -- | Immutable. Whether this key may contain imported versions only.+ importOnly :: (Core.Maybe Core.Bool),+ -- | Optional. The policy used for Key Access Justifications Policy Enforcement. If this field is present and this key is enrolled in Key Access Justifications Policy Enforcement, the policy will be evaluated in encrypt, decrypt, and sign operations, and the operation will fail if rejected by the policy. The policy is defined by specifying zero or more allowed justification codes. https:\/\/cloud.google.com\/assured-workloads\/key-access-justifications\/docs\/justification-codes By default, this field is absent, and all justification codes are allowed.+ keyAccessJustificationsPolicy :: (Core.Maybe KeyAccessJustificationsPolicy),+ -- | Labels with user-defined metadata. For more information, see <https://cloud.google.com/kms/docs/labeling-keys Labeling Keys>.+ labels :: (Core.Maybe CryptoKey_Labels),+ -- | Output only. The resource name for this CryptoKey in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*@.+ name :: (Core.Maybe Core.Text),+ -- | At next/rotation/time, the Key Management Service will automatically: 1. Create a new version of this CryptoKey. 2. Mark the new version as primary. Key rotations performed manually via CreateCryptoKeyVersion and UpdateCryptoKeyPrimaryVersion do not affect next/rotation/time. Keys with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this field must be omitted.+ nextRotationTime :: (Core.Maybe Core.DateTime),+ -- | Output only. A copy of the \"primary\" CryptoKeyVersion that will be used by Encrypt when this CryptoKey is given in EncryptRequest.name. The CryptoKey\'s primary version can be updated via UpdateCryptoKeyPrimaryVersion. Keys with purpose ENCRYPT_DECRYPT may have a primary. For other keys, this field will be omitted.+ primary :: (Core.Maybe CryptoKeyVersion),+ -- | Immutable. The immutable purpose of this CryptoKey.+ purpose :: (Core.Maybe CryptoKey_Purpose),+ -- | next/rotation/time will be advanced by this period when the service automatically rotates a key. Must be at least 24 hours and at most 876,000 hours. If rotation/period is set, next/rotation/time must also be set. Keys with purpose ENCRYPT/DECRYPT support automatic rotation. For other keys, this field must be omitted.+ rotationPeriod :: (Core.Maybe Core.Duration),+ -- | A template describing settings for new CryptoKeyVersion instances. The properties of new CryptoKeyVersion instances created by either CreateCryptoKeyVersion or auto-rotation are controlled by this template.+ versionTemplate :: (Core.Maybe CryptoKeyVersionTemplate)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CryptoKey' with the minimum fields required to make a request.+newCryptoKey ::+ CryptoKey+newCryptoKey =+ CryptoKey+ { createTime = Core.Nothing,+ cryptoKeyBackend = Core.Nothing,+ destroyScheduledDuration = Core.Nothing,+ importOnly = Core.Nothing,+ keyAccessJustificationsPolicy = Core.Nothing,+ labels = Core.Nothing,+ name = Core.Nothing,+ nextRotationTime = Core.Nothing,+ primary = Core.Nothing,+ purpose = Core.Nothing,+ rotationPeriod = Core.Nothing,+ versionTemplate = Core.Nothing+ }++instance Core.FromJSON CryptoKey where+ parseJSON =+ Core.withObject+ "CryptoKey"+ ( \o ->+ CryptoKey+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "cryptoKeyBackend")+ Core.<*> (o Core..:? "destroyScheduledDuration")+ Core.<*> (o Core..:? "importOnly")+ Core.<*> (o Core..:? "keyAccessJustificationsPolicy")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "nextRotationTime")+ Core.<*> (o Core..:? "primary")+ Core.<*> (o Core..:? "purpose")+ Core.<*> (o Core..:? "rotationPeriod")+ Core.<*> (o Core..:? "versionTemplate")+ )++instance Core.ToJSON CryptoKey where+ toJSON CryptoKey {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("cryptoKeyBackend" Core..=) Core.<$> cryptoKeyBackend,+ ("destroyScheduledDuration" Core..=)+ Core.<$> destroyScheduledDuration,+ ("importOnly" Core..=) Core.<$> importOnly,+ ("keyAccessJustificationsPolicy" Core..=)+ Core.<$> keyAccessJustificationsPolicy,+ ("labels" Core..=) Core.<$> labels,+ ("name" Core..=) Core.<$> name,+ ("nextRotationTime" Core..=) Core.<$> nextRotationTime,+ ("primary" Core..=) Core.<$> primary,+ ("purpose" Core..=) Core.<$> purpose,+ ("rotationPeriod" Core..=) Core.<$> rotationPeriod,+ ("versionTemplate" Core..=) Core.<$> versionTemplate+ ]+ )++-- | Labels with user-defined metadata. For more information, see <https://cloud.google.com/kms/docs/labeling-keys Labeling Keys>.+--+-- /See:/ 'newCryptoKey_Labels' smart constructor.+newtype CryptoKey_Labels = CryptoKey_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CryptoKey_Labels' with the minimum fields required to make a request.+newCryptoKey_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ CryptoKey_Labels+newCryptoKey_Labels additional =+ CryptoKey_Labels {additional = additional}++instance Core.FromJSON CryptoKey_Labels where+ parseJSON =+ Core.withObject+ "CryptoKey_Labels"+ (\o -> CryptoKey_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON CryptoKey_Labels where+ toJSON CryptoKey_Labels {..} = Core.toJSON additional++-- | A CryptoKeyVersion represents an individual cryptographic key, and the associated key material. An ENABLED version can be used for cryptographic operations. For security reasons, the raw cryptographic key material represented by a CryptoKeyVersion can never be viewed or exported. It can only be used to encrypt, decrypt, or sign data when an authorized user or application invokes Cloud KMS.+--+-- /See:/ 'newCryptoKeyVersion' smart constructor.+data CryptoKeyVersion = CryptoKeyVersion+ { -- | Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.+ algorithm :: (Core.Maybe CryptoKeyVersion_Algorithm),+ -- | Output only. Statement that was generated and signed by the HSM at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only provided for key versions with protection_level HSM.+ attestation :: (Core.Maybe KeyOperationAttestation),+ -- | Output only. The time at which this CryptoKeyVersion was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time this CryptoKeyVersion\'s key material was destroyed. Only present if state is DESTROYED.+ destroyEventTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time this CryptoKeyVersion\'s key material is scheduled for destruction. Only present if state is DESTROY_SCHEDULED.+ destroyTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The root cause of the most recent external destruction failure. Only present if state is EXTERNAL/DESTRUCTION/FAILED.+ externalDestructionFailureReason :: (Core.Maybe Core.Text),+ -- | ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.+ externalProtectionLevelOptions :: (Core.Maybe ExternalProtectionLevelOptions),+ -- | Output only. The time this CryptoKeyVersion\'s key material was generated.+ generateTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The root cause of the most recent generation failure. Only present if state is GENERATION_FAILED.+ generationFailureReason :: (Core.Maybe Core.Text),+ -- | Output only. The root cause of the most recent import failure. Only present if state is IMPORT_FAILED.+ importFailureReason :: (Core.Maybe Core.Text),+ -- | Output only. The name of the ImportJob used in the most recent import of this CryptoKeyVersion. Only present if the underlying key material was imported.+ importJob :: (Core.Maybe Core.Text),+ -- | Output only. The time at which this CryptoKeyVersion\'s key material was most recently imported.+ importTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The resource name for this CryptoKeyVersion in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\/cryptoKeyVersions\/*@.+ name :: (Core.Maybe Core.Text),+ -- | Output only. The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.+ protectionLevel :: (Core.Maybe CryptoKeyVersion_ProtectionLevel),+ -- | Output only. Whether or not this key version is eligible for reimport, by being specified as a target in ImportCryptoKeyVersionRequest.crypto/key/version.+ reimportEligible :: (Core.Maybe Core.Bool),+ -- | The current state of the CryptoKeyVersion.+ state :: (Core.Maybe CryptoKeyVersion_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CryptoKeyVersion' with the minimum fields required to make a request.+newCryptoKeyVersion ::+ CryptoKeyVersion+newCryptoKeyVersion =+ CryptoKeyVersion+ { algorithm = Core.Nothing,+ attestation = Core.Nothing,+ createTime = Core.Nothing,+ destroyEventTime = Core.Nothing,+ destroyTime = Core.Nothing,+ externalDestructionFailureReason = Core.Nothing,+ externalProtectionLevelOptions = Core.Nothing,+ generateTime = Core.Nothing,+ generationFailureReason = Core.Nothing,+ importFailureReason = Core.Nothing,+ importJob = Core.Nothing,+ importTime = Core.Nothing,+ name = Core.Nothing,+ protectionLevel = Core.Nothing,+ reimportEligible = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON CryptoKeyVersion where+ parseJSON =+ Core.withObject+ "CryptoKeyVersion"+ ( \o ->+ CryptoKeyVersion+ Core.<$> (o Core..:? "algorithm")+ Core.<*> (o Core..:? "attestation")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "destroyEventTime")+ Core.<*> (o Core..:? "destroyTime")+ Core.<*> (o Core..:? "externalDestructionFailureReason")+ Core.<*> (o Core..:? "externalProtectionLevelOptions")+ Core.<*> (o Core..:? "generateTime")+ Core.<*> (o Core..:? "generationFailureReason")+ Core.<*> (o Core..:? "importFailureReason")+ Core.<*> (o Core..:? "importJob")+ Core.<*> (o Core..:? "importTime")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "reimportEligible")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON CryptoKeyVersion where+ toJSON CryptoKeyVersion {..} =+ Core.object+ ( Core.catMaybes+ [ ("algorithm" Core..=) Core.<$> algorithm,+ ("attestation" Core..=) Core.<$> attestation,+ ("createTime" Core..=) Core.<$> createTime,+ ("destroyEventTime" Core..=) Core.<$> destroyEventTime,+ ("destroyTime" Core..=) Core.<$> destroyTime,+ ("externalDestructionFailureReason" Core..=)+ Core.<$> externalDestructionFailureReason,+ ("externalProtectionLevelOptions" Core..=)+ Core.<$> externalProtectionLevelOptions,+ ("generateTime" Core..=) Core.<$> generateTime,+ ("generationFailureReason" Core..=)+ Core.<$> generationFailureReason,+ ("importFailureReason" Core..=) Core.<$> importFailureReason,+ ("importJob" Core..=) Core.<$> importJob,+ ("importTime" Core..=) Core.<$> importTime,+ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("reimportEligible" Core..=) Core.<$> reimportEligible,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | A CryptoKeyVersionTemplate specifies the properties to use when creating a new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or automatically as a result of auto-rotation.+--+-- /See:/ 'newCryptoKeyVersionTemplate' smart constructor.+data CryptoKeyVersionTemplate = CryptoKeyVersionTemplate+ { -- | Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE/SYMMETRIC/ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT.+ algorithm :: (Core.Maybe CryptoKeyVersionTemplate_Algorithm),+ -- | ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE.+ protectionLevel :: (Core.Maybe CryptoKeyVersionTemplate_ProtectionLevel)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CryptoKeyVersionTemplate' with the minimum fields required to make a request.+newCryptoKeyVersionTemplate ::+ CryptoKeyVersionTemplate+newCryptoKeyVersionTemplate =+ CryptoKeyVersionTemplate+ { algorithm = Core.Nothing,+ protectionLevel = Core.Nothing+ }++instance Core.FromJSON CryptoKeyVersionTemplate where+ parseJSON =+ Core.withObject+ "CryptoKeyVersionTemplate"+ ( \o ->+ CryptoKeyVersionTemplate+ Core.<$> (o Core..:? "algorithm")+ Core.<*> (o Core..:? "protectionLevel")+ )++instance Core.ToJSON CryptoKeyVersionTemplate where+ toJSON CryptoKeyVersionTemplate {..} =+ Core.object+ ( Core.catMaybes+ [ ("algorithm" Core..=) Core.<$> algorithm,+ ("protectionLevel" Core..=) Core.<$> protectionLevel+ ]+ )++-- | Request message for KeyManagementService.Decrypt.+--+-- /See:/ 'newDecryptRequest' smart constructor.+data DecryptRequest = DecryptRequest+ { -- | Optional. Optional data that must match the data originally supplied in EncryptRequest.additional/authenticated/data.+ additionalAuthenticatedData :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the DecryptRequest.additional/authenticated/data. If specified, KeyManagementService will verify the integrity of the received DecryptRequest.additional/authenticated/data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(DecryptRequest.additional/authenticated/data) is equal to DecryptRequest.additional/authenticated/data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ additionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The encrypted data originally returned in EncryptResponse.ciphertext.+ ciphertext :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the DecryptRequest.ciphertext. If specified, KeyManagementService will verify the integrity of the received DecryptRequest.ciphertext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(DecryptRequest.ciphertext) is equal to DecryptRequest.ciphertext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ ciphertextCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DecryptRequest' with the minimum fields required to make a request.+newDecryptRequest ::+ DecryptRequest+newDecryptRequest =+ DecryptRequest+ { additionalAuthenticatedData = Core.Nothing,+ additionalAuthenticatedDataCrc32c = Core.Nothing,+ ciphertext = Core.Nothing,+ ciphertextCrc32c = Core.Nothing+ }++instance Core.FromJSON DecryptRequest where+ parseJSON =+ Core.withObject+ "DecryptRequest"+ ( \o ->+ DecryptRequest+ Core.<$> (o Core..:? "additionalAuthenticatedData")+ Core.<*> ( o+ Core..:? "additionalAuthenticatedDataCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "ciphertext")+ Core.<*> (o Core..:? "ciphertextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON DecryptRequest where+ toJSON DecryptRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalAuthenticatedData" Core..=)+ Core.<$> additionalAuthenticatedData,+ ("additionalAuthenticatedDataCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> additionalAuthenticatedDataCrc32c,+ ("ciphertext" Core..=) Core.<$> ciphertext,+ ("ciphertextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> ciphertextCrc32c+ ]+ )++-- | Response message for KeyManagementService.Decrypt.+--+-- /See:/ 'newDecryptResponse' smart constructor.+data DecryptResponse = DecryptResponse+ { -- | The decrypted data originally supplied in EncryptRequest.plaintext.+ plaintext :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned DecryptResponse.plaintext. An integrity check of DecryptResponse.plaintext can be performed by computing the CRC32C checksum of DecryptResponse.plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ plaintextCrc32c :: (Core.Maybe Core.Int64),+ -- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+ protectionLevel :: (Core.Maybe DecryptResponse_ProtectionLevel),+ -- | Whether the Decryption was performed using the primary key version.+ usedPrimary :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DecryptResponse' with the minimum fields required to make a request.+newDecryptResponse ::+ DecryptResponse+newDecryptResponse =+ DecryptResponse+ { plaintext = Core.Nothing,+ plaintextCrc32c = Core.Nothing,+ protectionLevel = Core.Nothing,+ usedPrimary = Core.Nothing+ }++instance Core.FromJSON DecryptResponse where+ parseJSON =+ Core.withObject+ "DecryptResponse"+ ( \o ->+ DecryptResponse+ Core.<$> (o Core..:? "plaintext")+ Core.<*> (o Core..:? "plaintextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "usedPrimary")+ )++instance Core.ToJSON DecryptResponse where+ toJSON DecryptResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("plaintext" Core..=) Core.<$> plaintext,+ ("plaintextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> plaintextCrc32c,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("usedPrimary" Core..=) Core.<$> usedPrimary+ ]+ )++-- | Request message for KeyManagementService.DestroyCryptoKeyVersion.+--+-- /See:/ 'newDestroyCryptoKeyVersionRequest' smart constructor.+data DestroyCryptoKeyVersionRequest = DestroyCryptoKeyVersionRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DestroyCryptoKeyVersionRequest' with the minimum fields required to make a request.+newDestroyCryptoKeyVersionRequest ::+ DestroyCryptoKeyVersionRequest+newDestroyCryptoKeyVersionRequest = DestroyCryptoKeyVersionRequest++instance Core.FromJSON DestroyCryptoKeyVersionRequest where+ parseJSON =+ Core.withObject+ "DestroyCryptoKeyVersionRequest"+ (\o -> Core.pure DestroyCryptoKeyVersionRequest)++instance Core.ToJSON DestroyCryptoKeyVersionRequest where+ toJSON = Core.const Core.emptyObject++-- | A Digest holds a cryptographic message digest.+--+-- /See:/ 'newDigest' smart constructor.+data Digest = Digest+ { -- | A message digest produced with the SHA-256 algorithm.+ sha256 :: (Core.Maybe Core.Base64),+ -- | A message digest produced with the SHA-384 algorithm.+ sha384 :: (Core.Maybe Core.Base64),+ -- | A message digest produced with the SHA-512 algorithm.+ sha512 :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Digest' with the minimum fields required to make a request.+newDigest ::+ Digest+newDigest =+ Digest+ { sha256 = Core.Nothing,+ sha384 = Core.Nothing,+ sha512 = Core.Nothing+ }++instance Core.FromJSON Digest where+ parseJSON =+ Core.withObject+ "Digest"+ ( \o ->+ Digest+ Core.<$> (o Core..:? "sha256")+ Core.<*> (o Core..:? "sha384")+ Core.<*> (o Core..:? "sha512")+ )++instance Core.ToJSON Digest where+ toJSON Digest {..} =+ Core.object+ ( Core.catMaybes+ [ ("sha256" Core..=) Core.<$> sha256,+ ("sha384" Core..=) Core.<$> sha384,+ ("sha512" Core..=) Core.<$> sha512+ ]+ )++-- | An EkmConfig is a singleton resource that represents configuration parameters that apply to all CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC in a given project and location.+--+-- /See:/ 'newEkmConfig' smart constructor.+data EkmConfig = EkmConfig+ { -- | Optional. Resource name of the default EkmConnection. Setting this field to the empty string removes the default.+ defaultEkmConnection :: (Core.Maybe Core.Text),+ -- | Output only. The resource name for the EkmConfig in the format @projects\/*\/locations\/*\/ekmConfig@.+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EkmConfig' with the minimum fields required to make a request.+newEkmConfig ::+ EkmConfig+newEkmConfig =+ EkmConfig+ { defaultEkmConnection = Core.Nothing,+ name = Core.Nothing+ }++instance Core.FromJSON EkmConfig where+ parseJSON =+ Core.withObject+ "EkmConfig"+ ( \o ->+ EkmConfig+ Core.<$> (o Core..:? "defaultEkmConnection")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON EkmConfig where+ toJSON EkmConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("defaultEkmConnection" Core..=) Core.<$> defaultEkmConnection,+ ("name" Core..=) Core.<$> name+ ]+ )++-- | An EkmConnection represents an individual EKM connection. It can be used for creating CryptoKeys and CryptoKeyVersions with a ProtectionLevel of EXTERNAL_VPC, as well as performing cryptographic operations using keys created within the EkmConnection.+--+-- /See:/ 'newEkmConnection' smart constructor.+data EkmConnection = EkmConnection+ { -- | Output only. The time at which the EkmConnection was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Optional. Identifies the EKM Crypto Space that this EkmConnection maps to. Note: This field is required if KeyManagementMode is CLOUD_KMS.+ cryptoSpacePath :: (Core.Maybe Core.Text),+ -- | Optional. Etag of the currently stored EkmConnection.+ etag :: (Core.Maybe Core.Text),+ -- | Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL.+ keyManagementMode :: (Core.Maybe EkmConnection_KeyManagementMode),+ -- | Output only. The resource name for the EkmConnection in the format @projects\/*\/locations\/*\/ekmConnections\/*@.+ name :: (Core.Maybe Core.Text),+ -- | Optional. A list of ServiceResolvers where the EKM can be reached. There should be one ServiceResolver per EKM replica. Currently, only a single ServiceResolver is supported.+ serviceResolvers :: (Core.Maybe [ServiceResolver])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EkmConnection' with the minimum fields required to make a request.+newEkmConnection ::+ EkmConnection+newEkmConnection =+ EkmConnection+ { createTime = Core.Nothing,+ cryptoSpacePath = Core.Nothing,+ etag = Core.Nothing,+ keyManagementMode = Core.Nothing,+ name = Core.Nothing,+ serviceResolvers = Core.Nothing+ }++instance Core.FromJSON EkmConnection where+ parseJSON =+ Core.withObject+ "EkmConnection"+ ( \o ->+ EkmConnection+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "cryptoSpacePath")+ Core.<*> (o Core..:? "etag")+ Core.<*> (o Core..:? "keyManagementMode")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "serviceResolvers")+ )++instance Core.ToJSON EkmConnection where+ toJSON EkmConnection {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("cryptoSpacePath" Core..=) Core.<$> cryptoSpacePath,+ ("etag" Core..=) Core.<$> etag,+ ("keyManagementMode" Core..=) Core.<$> keyManagementMode,+ ("name" Core..=) Core.<$> name,+ ("serviceResolvers" Core..=) Core.<$> serviceResolvers+ ]+ )++-- | Request message for KeyManagementService.Encrypt.+--+-- /See:/ 'newEncryptRequest' smart constructor.+data EncryptRequest = EncryptRequest+ { -- | Optional. Optional data that, if specified, must also be provided during decryption through DecryptRequest.additional/authenticated/data. The maximum size depends on the key version\'s protection/level. For SOFTWARE, EXTERNAL, and EXTERNAL/VPC keys the AAD must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional/authenticated/data fields must be no larger than 8KiB.+ additionalAuthenticatedData :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the EncryptRequest.additional/authenticated/data. If specified, KeyManagementService will verify the integrity of the received EncryptRequest.additional/authenticated/data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(EncryptRequest.additional/authenticated/data) is equal to EncryptRequest.additional/authenticated/data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ additionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The data to encrypt. Must be no larger than 64KiB. The maximum size depends on the key version\'s protection/level. For SOFTWARE, EXTERNAL, and EXTERNAL/VPC keys, the plaintext must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional/authenticated/data fields must be no larger than 8KiB.+ plaintext :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the EncryptRequest.plaintext. If specified, KeyManagementService will verify the integrity of the received EncryptRequest.plaintext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(EncryptRequest.plaintext) is equal to EncryptRequest.plaintext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ plaintextCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EncryptRequest' with the minimum fields required to make a request.+newEncryptRequest ::+ EncryptRequest+newEncryptRequest =+ EncryptRequest+ { additionalAuthenticatedData = Core.Nothing,+ additionalAuthenticatedDataCrc32c = Core.Nothing,+ plaintext = Core.Nothing,+ plaintextCrc32c = Core.Nothing+ }++instance Core.FromJSON EncryptRequest where+ parseJSON =+ Core.withObject+ "EncryptRequest"+ ( \o ->+ EncryptRequest+ Core.<$> (o Core..:? "additionalAuthenticatedData")+ Core.<*> ( o+ Core..:? "additionalAuthenticatedDataCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "plaintext")+ Core.<*> (o Core..:? "plaintextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON EncryptRequest where+ toJSON EncryptRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalAuthenticatedData" Core..=)+ Core.<$> additionalAuthenticatedData,+ ("additionalAuthenticatedDataCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> additionalAuthenticatedDataCrc32c,+ ("plaintext" Core..=) Core.<$> plaintext,+ ("plaintextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> plaintextCrc32c+ ]+ )++-- | Response message for KeyManagementService.Encrypt.+--+-- /See:/ 'newEncryptResponse' smart constructor.+data EncryptResponse = EncryptResponse+ { -- | The encrypted data.+ ciphertext :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned EncryptResponse.ciphertext. An integrity check of EncryptResponse.ciphertext can be performed by computing the CRC32C checksum of EncryptResponse.ciphertext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ ciphertextCrc32c :: (Core.Maybe Core.Int64),+ -- | The resource name of the CryptoKeyVersion used in encryption. Check this field to verify that the intended resource was used for encryption.+ name :: (Core.Maybe Core.Text),+ -- | The ProtectionLevel of the CryptoKeyVersion used in encryption.+ protectionLevel :: (Core.Maybe EncryptResponse_ProtectionLevel),+ -- | Integrity verification field. A flag indicating whether EncryptRequest.additional/authenticated/data/crc32c was received by KeyManagementService and used for the integrity verification of the AAD. A false value of this field indicates either that EncryptRequest.additional/authenticated/data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set EncryptRequest.additional/authenticated/data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedAdditionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether EncryptRequest.plaintext/crc32c was received by KeyManagementService and used for the integrity verification of the plaintext. A false value of this field indicates either that EncryptRequest.plaintext/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set EncryptRequest.plaintext_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedPlaintextCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EncryptResponse' with the minimum fields required to make a request.+newEncryptResponse ::+ EncryptResponse+newEncryptResponse =+ EncryptResponse+ { ciphertext = Core.Nothing,+ ciphertextCrc32c = Core.Nothing,+ name = Core.Nothing,+ protectionLevel = Core.Nothing,+ verifiedAdditionalAuthenticatedDataCrc32c = Core.Nothing,+ verifiedPlaintextCrc32c = Core.Nothing+ }++instance Core.FromJSON EncryptResponse where+ parseJSON =+ Core.withObject+ "EncryptResponse"+ ( \o ->+ EncryptResponse+ Core.<$> (o Core..:? "ciphertext")+ Core.<*> (o Core..:? "ciphertextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "verifiedAdditionalAuthenticatedDataCrc32c")+ Core.<*> (o Core..:? "verifiedPlaintextCrc32c")+ )++instance Core.ToJSON EncryptResponse where+ toJSON EncryptResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("ciphertext" Core..=) Core.<$> ciphertext,+ ("ciphertextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> ciphertextCrc32c,+ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("verifiedAdditionalAuthenticatedDataCrc32c" Core..=)+ Core.<$> verifiedAdditionalAuthenticatedDataCrc32c,+ ("verifiedPlaintextCrc32c" Core..=)+ Core.<$> verifiedPlaintextCrc32c+ ]+ )++-- | Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https:\/\/github.com\/google\/cel-spec. Example (Comparison): title: \"Summary size limit\" description: \"Determines if a summary is less than 100 chars\" expression: \"document.summary.size() \< 100\" Example (Equality): title: \"Requestor is owner\" description: \"Determines if requestor is the document owner\" expression: \"document.owner == request.auth.claims.email\" Example (Logic): title: \"Public documents\" description: \"Determine whether the document should be publicly visible\" expression: \"document.type != \'private\' && document.type != \'internal\'\" Example (Data Manipulation): title: \"Notification string\" description: \"Create a notification string with a timestamp.\" expression: \"\'New message received at \' + string(document.create_time)\" The exact variables and functions that may be referenced within an expression are+-- determined by the service that evaluates it. See the service documentation for additional information.+--+-- /See:/ 'newExpr' smart constructor.+data Expr = Expr+ { -- | 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.+ expression :: (Core.Maybe Core.Text),+ -- | 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),+ -- | 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 (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+ ]+ )++-- | ExternalProtectionLevelOptions stores a group of additional fields for configuring a CryptoKeyVersion that are specific to the EXTERNAL protection level and EXTERNAL_VPC protection levels.+--+-- /See:/ 'newExternalProtectionLevelOptions' smart constructor.+data ExternalProtectionLevelOptions = ExternalProtectionLevelOptions+ { -- | The path to the external key material on the EKM when using EkmConnection e.g., \"v0\/my\/key\". Set this field instead of external/key/uri when using an EkmConnection.+ ekmConnectionKeyPath :: (Core.Maybe Core.Text),+ -- | The URI for an external resource that this CryptoKeyVersion represents.+ externalKeyUri :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExternalProtectionLevelOptions' with the minimum fields required to make a request.+newExternalProtectionLevelOptions ::+ ExternalProtectionLevelOptions+newExternalProtectionLevelOptions =+ ExternalProtectionLevelOptions+ { ekmConnectionKeyPath =+ Core.Nothing,+ externalKeyUri = Core.Nothing+ }++instance Core.FromJSON ExternalProtectionLevelOptions where+ parseJSON =+ Core.withObject+ "ExternalProtectionLevelOptions"+ ( \o ->+ ExternalProtectionLevelOptions+ Core.<$> (o Core..:? "ekmConnectionKeyPath")+ Core.<*> (o Core..:? "externalKeyUri")+ )++instance Core.ToJSON ExternalProtectionLevelOptions where+ toJSON ExternalProtectionLevelOptions {..} =+ Core.object+ ( Core.catMaybes+ [ ("ekmConnectionKeyPath" Core..=) Core.<$> ekmConnectionKeyPath,+ ("externalKeyUri" Core..=) Core.<$> externalKeyUri+ ]+ )++-- | Request message for KeyManagementService.GenerateRandomBytes.+--+-- /See:/ 'newGenerateRandomBytesRequest' smart constructor.+data GenerateRandomBytesRequest = GenerateRandomBytesRequest+ { -- | The length in bytes of the amount of randomness to retrieve. Minimum 8 bytes, maximum 1024 bytes.+ lengthBytes :: (Core.Maybe Core.Int32),+ -- | The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.+ protectionLevel :: (Core.Maybe GenerateRandomBytesRequest_ProtectionLevel)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateRandomBytesRequest' with the minimum fields required to make a request.+newGenerateRandomBytesRequest ::+ GenerateRandomBytesRequest+newGenerateRandomBytesRequest =+ GenerateRandomBytesRequest+ { lengthBytes = Core.Nothing,+ protectionLevel = Core.Nothing+ }++instance Core.FromJSON GenerateRandomBytesRequest where+ parseJSON =+ Core.withObject+ "GenerateRandomBytesRequest"+ ( \o ->+ GenerateRandomBytesRequest+ Core.<$> (o Core..:? "lengthBytes")+ Core.<*> (o Core..:? "protectionLevel")+ )++instance Core.ToJSON GenerateRandomBytesRequest where+ toJSON GenerateRandomBytesRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("lengthBytes" Core..=) Core.<$> lengthBytes,+ ("protectionLevel" Core..=) Core.<$> protectionLevel+ ]+ )++-- | Response message for KeyManagementService.GenerateRandomBytes.+--+-- /See:/ 'newGenerateRandomBytesResponse' smart constructor.+data GenerateRandomBytesResponse = GenerateRandomBytesResponse+ { -- | The generated data.+ data' :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned GenerateRandomBytesResponse.data. An integrity check of GenerateRandomBytesResponse.data can be performed by computing the CRC32C checksum of GenerateRandomBytesResponse.data and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ dataCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateRandomBytesResponse' with the minimum fields required to make a request.+newGenerateRandomBytesResponse ::+ GenerateRandomBytesResponse+newGenerateRandomBytesResponse =+ GenerateRandomBytesResponse+ { data' = Core.Nothing,+ dataCrc32c = Core.Nothing+ }++instance Core.FromJSON GenerateRandomBytesResponse where+ parseJSON =+ Core.withObject+ "GenerateRandomBytesResponse"+ ( \o ->+ GenerateRandomBytesResponse+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "dataCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON GenerateRandomBytesResponse where+ toJSON GenerateRandomBytesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("dataCrc32c" Core..=) Core.. Core.AsText Core.<$> dataCrc32c+ ]+ )++-- | Request message for KeyManagementService.ImportCryptoKeyVersion.+--+-- /See:/ 'newImportCryptoKeyVersionRequest' smart constructor.+data ImportCryptoKeyVersionRequest = ImportCryptoKeyVersionRequest+ { -- | Required. The algorithm of the key being imported. This does not need to match the version_template of the CryptoKey this version imports into.+ algorithm :: (Core.Maybe ImportCryptoKeyVersionRequest_Algorithm),+ -- | Optional. The optional name of an existing CryptoKeyVersion to target for an import operation. If this field is not present, a new CryptoKeyVersion containing the supplied key material is created. If this field is present, the supplied key material is imported into the existing CryptoKeyVersion. To import into an existing CryptoKeyVersion, the CryptoKeyVersion must be a child of ImportCryptoKeyVersionRequest.parent, have been previously created via ImportCryptoKeyVersion, and be in DESTROYED or IMPORT_FAILED state. The key material and algorithm must match the previous CryptoKeyVersion exactly if the CryptoKeyVersion has ever contained key material.+ cryptoKeyVersion :: (Core.Maybe Core.Text),+ -- | Required. The name of the ImportJob that was used to wrap this key material.+ importJob :: (Core.Maybe Core.Text),+ -- | Optional. This field has the same meaning as wrapped_key. Prefer to use that field in new work. Either that field or this field (but not both) must be specified.+ rsaAesWrappedKey :: (Core.Maybe Core.Base64),+ -- | Optional. The wrapped key material to import. Before wrapping, key material must be formatted. If importing symmetric key material, the expected key material format is plain bytes. If importing asymmetric key material, the expected key material format is PKCS#8-encoded DER (the PrivateKeyInfo structure from RFC 5208). When wrapping with import methods (RSA/OAEP/3072/SHA1/AES/256 or RSA/OAEP/4096/SHA1/AES/256 or RSA/OAEP/3072/SHA256/AES/256 or RSA/OAEP/4096/SHA256/AES/256), this field must contain the concatenation of: 1. An ephemeral AES-256 wrapping key wrapped with the public/key using RSAES-OAEP with SHA-1\/SHA-256, MGF1 with SHA-1\/SHA-256, and an empty label. 2. The formatted key to be imported, wrapped with the ephemeral AES-256 key using AES-KWP (RFC 5649). This format is the same as the format produced by PKCS#11 mechanism CKM/RSA/AES/KEY/WRAP. When wrapping with import methods (RSA/OAEP/3072/SHA256 or RSA/OAEP/4096/SHA256), this field must contain the formatted key to be imported, wrapped with the+ -- public/key using RSAES-OAEP with SHA-256, MGF1 with SHA-256, and an empty label.+ wrappedKey :: (Core.Maybe Core.Base64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ImportCryptoKeyVersionRequest' with the minimum fields required to make a request.+newImportCryptoKeyVersionRequest ::+ ImportCryptoKeyVersionRequest+newImportCryptoKeyVersionRequest =+ ImportCryptoKeyVersionRequest+ { algorithm = Core.Nothing,+ cryptoKeyVersion = Core.Nothing,+ importJob = Core.Nothing,+ rsaAesWrappedKey = Core.Nothing,+ wrappedKey = Core.Nothing+ }++instance Core.FromJSON ImportCryptoKeyVersionRequest where+ parseJSON =+ Core.withObject+ "ImportCryptoKeyVersionRequest"+ ( \o ->+ ImportCryptoKeyVersionRequest+ Core.<$> (o Core..:? "algorithm")+ Core.<*> (o Core..:? "cryptoKeyVersion")+ Core.<*> (o Core..:? "importJob")+ Core.<*> (o Core..:? "rsaAesWrappedKey")+ Core.<*> (o Core..:? "wrappedKey")+ )++instance Core.ToJSON ImportCryptoKeyVersionRequest where+ toJSON ImportCryptoKeyVersionRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("algorithm" Core..=) Core.<$> algorithm,+ ("cryptoKeyVersion" Core..=) Core.<$> cryptoKeyVersion,+ ("importJob" Core..=) Core.<$> importJob,+ ("rsaAesWrappedKey" Core..=) Core.<$> rsaAesWrappedKey,+ ("wrappedKey" Core..=) Core.<$> wrappedKey+ ]+ )++-- | An ImportJob can be used to create CryptoKeys and CryptoKeyVersions using pre-existing key material, generated outside of Cloud KMS. When an ImportJob is created, Cloud KMS will generate a \"wrapping key\", which is a public\/private key pair. You use the wrapping key to encrypt (also known as wrap) the pre-existing key material to protect it during the import process. The nature of the wrapping key depends on the choice of import/method. When the wrapping key generation is complete, the state will be set to ACTIVE and the public/key can be fetched. The fetched public key can then be used to wrap your pre-existing key material. Once the key material is wrapped, it can be imported into a new CryptoKeyVersion in an existing CryptoKey by calling ImportCryptoKeyVersion. Multiple CryptoKeyVersions can be imported with a single ImportJob. Cloud KMS uses the private key portion of the wrapping key to unwrap the key material. Only Cloud KMS has access to the private key. An ImportJob expires 3 days after it is+-- created. Once expired, Cloud KMS will no longer be able to import or unwrap any key material that was wrapped with the ImportJob\'s public key. For more information, see <https://cloud.google.com/kms/docs/importing-a-key Importing a key>.+--+-- /See:/ 'newImportJob' smart constructor.+data ImportJob = ImportJob+ { -- | Output only. Statement that was generated and signed by the key creator (for example, an HSM) at key creation time. Use this statement to verify attributes of the key as stored on the HSM, independently of Google. Only present if the chosen ImportMethod is one with a protection level of HSM.+ attestation :: (Core.Maybe KeyOperationAttestation),+ -- | Output only. The time at which this ImportJob was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time this ImportJob expired. Only present if state is EXPIRED.+ expireEventTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time at which this ImportJob is scheduled for expiration and can no longer be used to import key material.+ expireTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time this ImportJob\'s key material was generated.+ generateTime :: (Core.Maybe Core.DateTime),+ -- | Required. Immutable. The wrapping method to be used for incoming key material.+ importMethod :: (Core.Maybe ImportJob_ImportMethod),+ -- | Output only. The resource name for this ImportJob in the format @projects\/*\/locations\/*\/keyRings\/*\/importJobs\/*@.+ name :: (Core.Maybe Core.Text),+ -- | Required. Immutable. The protection level of the ImportJob. This must match the protection/level of the version/template on the CryptoKey you attempt to import into.+ protectionLevel :: (Core.Maybe ImportJob_ProtectionLevel),+ -- | Output only. The public key with which to wrap key material prior to import. Only returned if state is ACTIVE.+ publicKey :: (Core.Maybe WrappingPublicKey),+ -- | Output only. The current state of the ImportJob, indicating if it can be used.+ state :: (Core.Maybe ImportJob_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ImportJob' with the minimum fields required to make a request.+newImportJob ::+ ImportJob+newImportJob =+ ImportJob+ { attestation = Core.Nothing,+ createTime = Core.Nothing,+ expireEventTime = Core.Nothing,+ expireTime = Core.Nothing,+ generateTime = Core.Nothing,+ importMethod = Core.Nothing,+ name = Core.Nothing,+ protectionLevel = Core.Nothing,+ publicKey = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON ImportJob where+ parseJSON =+ Core.withObject+ "ImportJob"+ ( \o ->+ ImportJob+ Core.<$> (o Core..:? "attestation")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "expireEventTime")+ Core.<*> (o Core..:? "expireTime")+ Core.<*> (o Core..:? "generateTime")+ Core.<*> (o Core..:? "importMethod")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "publicKey")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON ImportJob where+ toJSON ImportJob {..} =+ Core.object+ ( Core.catMaybes+ [ ("attestation" Core..=) Core.<$> attestation,+ ("createTime" Core..=) Core.<$> createTime,+ ("expireEventTime" Core..=) Core.<$> expireEventTime,+ ("expireTime" Core..=) Core.<$> expireTime,+ ("generateTime" Core..=) Core.<$> generateTime,+ ("importMethod" Core..=) Core.<$> importMethod,+ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("publicKey" Core..=) Core.<$> publicKey,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | A KeyAccessJustificationsPolicy specifies zero or more allowed AccessReason values for encrypt, decrypt, and sign operations on a CryptoKey.+--+-- /See:/ 'newKeyAccessJustificationsPolicy' smart constructor.+newtype KeyAccessJustificationsPolicy = KeyAccessJustificationsPolicy+ { -- | The list of allowed reasons for access to a CryptoKey. Zero allowed access reasons means all encrypt, decrypt, and sign operations for the CryptoKey associated with this policy will fail.+ allowedAccessReasons ::+ ( Core.Maybe+ [KeyAccessJustificationsPolicy_AllowedAccessReasonsItem]+ )+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyAccessJustificationsPolicy' with the minimum fields required to make a request.+newKeyAccessJustificationsPolicy ::+ KeyAccessJustificationsPolicy+newKeyAccessJustificationsPolicy =+ KeyAccessJustificationsPolicy+ { allowedAccessReasons =+ Core.Nothing+ }++instance Core.FromJSON KeyAccessJustificationsPolicy where+ parseJSON =+ Core.withObject+ "KeyAccessJustificationsPolicy"+ ( \o ->+ KeyAccessJustificationsPolicy+ Core.<$> (o Core..:? "allowedAccessReasons")+ )++instance Core.ToJSON KeyAccessJustificationsPolicy where+ toJSON KeyAccessJustificationsPolicy {..} =+ Core.object+ ( Core.catMaybes+ [("allowedAccessReasons" Core..=) Core.<$> allowedAccessReasons]+ )++-- | Resource-oriented representation of a request to Cloud KMS Autokey and the resulting provisioning of a CryptoKey.+--+-- /See:/ 'newKeyHandle' smart constructor.+data KeyHandle = KeyHandle+ { -- | Output only. Name of a CryptoKey that has been provisioned for Customer Managed Encryption Key (CMEK) use in the KeyHandle project and location for the requested resource type. The CryptoKey project will reflect the value configured in the AutokeyConfig on the resource project\'s ancestor folder at the time of the KeyHandle creation. If more than one ancestor folder has a configured AutokeyConfig, the nearest of these configurations is used.+ kmsKey :: (Core.Maybe Core.Text),+ -- | Identifier. Name of the KeyHandle resource, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}\/keyHandles\/{KEY_HANDLE_ID}@.+ name :: (Core.Maybe Core.Text),+ -- | Required. Indicates the resource type that the resulting CryptoKey is meant to protect, e.g. @{SERVICE}.googleapis.com\/{TYPE}@. See documentation for supported resource types.+ resourceTypeSelector :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyHandle' with the minimum fields required to make a request.+newKeyHandle ::+ KeyHandle+newKeyHandle =+ KeyHandle+ { kmsKey = Core.Nothing,+ name = Core.Nothing,+ resourceTypeSelector = Core.Nothing+ }++instance Core.FromJSON KeyHandle where+ parseJSON =+ Core.withObject+ "KeyHandle"+ ( \o ->+ KeyHandle+ Core.<$> (o Core..:? "kmsKey")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "resourceTypeSelector")+ )++instance Core.ToJSON KeyHandle where+ toJSON KeyHandle {..} =+ Core.object+ ( Core.catMaybes+ [ ("kmsKey" Core..=) Core.<$> kmsKey,+ ("name" Core..=) Core.<$> name,+ ("resourceTypeSelector" Core..=) Core.<$> resourceTypeSelector+ ]+ )++-- | Contains an HSM-generated attestation about a key operation. For more information, see [Verifying attestations] (https:\/\/cloud.google.com\/kms\/docs\/attest-key).+--+-- /See:/ 'newKeyOperationAttestation' smart constructor.+data KeyOperationAttestation = KeyOperationAttestation+ { -- | Output only. The certificate chains needed to validate the attestation+ certChains :: (Core.Maybe CertificateChains),+ -- | Output only. The attestation data provided by the HSM when the key operation was performed.+ content :: (Core.Maybe Core.Base64),+ -- | Output only. The format of the attestation data.+ format :: (Core.Maybe KeyOperationAttestation_Format)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyOperationAttestation' with the minimum fields required to make a request.+newKeyOperationAttestation ::+ KeyOperationAttestation+newKeyOperationAttestation =+ KeyOperationAttestation+ { certChains = Core.Nothing,+ content = Core.Nothing,+ format = Core.Nothing+ }++instance Core.FromJSON KeyOperationAttestation where+ parseJSON =+ Core.withObject+ "KeyOperationAttestation"+ ( \o ->+ KeyOperationAttestation+ Core.<$> (o Core..:? "certChains")+ Core.<*> (o Core..:? "content")+ Core.<*> (o Core..:? "format")+ )++instance Core.ToJSON KeyOperationAttestation where+ toJSON KeyOperationAttestation {..} =+ Core.object+ ( Core.catMaybes+ [ ("certChains" Core..=) Core.<$> certChains,+ ("content" Core..=) Core.<$> content,+ ("format" Core..=) Core.<$> format+ ]+ )++-- | A KeyRing is a toplevel logical grouping of CryptoKeys.+--+-- /See:/ 'newKeyRing' smart constructor.+data KeyRing = KeyRing+ { -- | Output only. The time at which this KeyRing was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The resource name for the KeyRing in the format @projects\/*\/locations\/*\/keyRings\/*@.+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyRing' with the minimum fields required to make a request.+newKeyRing ::+ KeyRing+newKeyRing =+ KeyRing {createTime = Core.Nothing, name = Core.Nothing}++instance Core.FromJSON KeyRing where+ parseJSON =+ Core.withObject+ "KeyRing"+ ( \o ->+ KeyRing+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON KeyRing where+ toJSON KeyRing {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("name" Core..=) Core.<$> name+ ]+ )++-- | Response message for KeyManagementService.ListCryptoKeyVersions.+--+-- /See:/ 'newListCryptoKeyVersionsResponse' smart constructor.+data ListCryptoKeyVersionsResponse = ListCryptoKeyVersionsResponse+ { -- | The list of CryptoKeyVersions.+ cryptoKeyVersions :: (Core.Maybe [CryptoKeyVersion]),+ -- | A token to retrieve next page of results. Pass this value in ListCryptoKeyVersionsRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The total number of CryptoKeyVersions that matched the query.+ totalSize :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListCryptoKeyVersionsResponse' with the minimum fields required to make a request.+newListCryptoKeyVersionsResponse ::+ ListCryptoKeyVersionsResponse+newListCryptoKeyVersionsResponse =+ ListCryptoKeyVersionsResponse+ { cryptoKeyVersions = Core.Nothing,+ nextPageToken = Core.Nothing,+ totalSize = Core.Nothing+ }++instance Core.FromJSON ListCryptoKeyVersionsResponse where+ parseJSON =+ Core.withObject+ "ListCryptoKeyVersionsResponse"+ ( \o ->+ ListCryptoKeyVersionsResponse+ Core.<$> (o Core..:? "cryptoKeyVersions")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "totalSize")+ )++instance Core.ToJSON ListCryptoKeyVersionsResponse where+ toJSON ListCryptoKeyVersionsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("cryptoKeyVersions" Core..=) Core.<$> cryptoKeyVersions,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("totalSize" Core..=) Core.<$> totalSize+ ]+ )++-- | Response message for KeyManagementService.ListCryptoKeys.+--+-- /See:/ 'newListCryptoKeysResponse' smart constructor.+data ListCryptoKeysResponse = ListCryptoKeysResponse+ { -- | The list of CryptoKeys.+ cryptoKeys :: (Core.Maybe [CryptoKey]),+ -- | A token to retrieve next page of results. Pass this value in ListCryptoKeysRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The total number of CryptoKeys that matched the query.+ totalSize :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListCryptoKeysResponse' with the minimum fields required to make a request.+newListCryptoKeysResponse ::+ ListCryptoKeysResponse+newListCryptoKeysResponse =+ ListCryptoKeysResponse+ { cryptoKeys = Core.Nothing,+ nextPageToken = Core.Nothing,+ totalSize = Core.Nothing+ }++instance Core.FromJSON ListCryptoKeysResponse where+ parseJSON =+ Core.withObject+ "ListCryptoKeysResponse"+ ( \o ->+ ListCryptoKeysResponse+ Core.<$> (o Core..:? "cryptoKeys")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "totalSize")+ )++instance Core.ToJSON ListCryptoKeysResponse where+ toJSON ListCryptoKeysResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("cryptoKeys" Core..=) Core.<$> cryptoKeys,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("totalSize" Core..=) Core.<$> totalSize+ ]+ )++-- | Response message for EkmService.ListEkmConnections.+--+-- /See:/ 'newListEkmConnectionsResponse' smart constructor.+data ListEkmConnectionsResponse = ListEkmConnectionsResponse+ { -- | The list of EkmConnections.+ ekmConnections :: (Core.Maybe [EkmConnection]),+ -- | A token to retrieve next page of results. Pass this value in ListEkmConnectionsRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The total number of EkmConnections that matched the query.+ totalSize :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListEkmConnectionsResponse' with the minimum fields required to make a request.+newListEkmConnectionsResponse ::+ ListEkmConnectionsResponse+newListEkmConnectionsResponse =+ ListEkmConnectionsResponse+ { ekmConnections = Core.Nothing,+ nextPageToken = Core.Nothing,+ totalSize = Core.Nothing+ }++instance Core.FromJSON ListEkmConnectionsResponse where+ parseJSON =+ Core.withObject+ "ListEkmConnectionsResponse"+ ( \o ->+ ListEkmConnectionsResponse+ Core.<$> (o Core..:? "ekmConnections")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "totalSize")+ )++instance Core.ToJSON ListEkmConnectionsResponse where+ toJSON ListEkmConnectionsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("ekmConnections" Core..=) Core.<$> ekmConnections,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("totalSize" Core..=) Core.<$> totalSize+ ]+ )++-- | Response message for KeyManagementService.ListImportJobs.+--+-- /See:/ 'newListImportJobsResponse' smart constructor.+data ListImportJobsResponse = ListImportJobsResponse+ { -- | The list of ImportJobs.+ importJobs :: (Core.Maybe [ImportJob]),+ -- | A token to retrieve next page of results. Pass this value in ListImportJobsRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The total number of ImportJobs that matched the query.+ totalSize :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListImportJobsResponse' with the minimum fields required to make a request.+newListImportJobsResponse ::+ ListImportJobsResponse+newListImportJobsResponse =+ ListImportJobsResponse+ { importJobs = Core.Nothing,+ nextPageToken = Core.Nothing,+ totalSize = Core.Nothing+ }++instance Core.FromJSON ListImportJobsResponse where+ parseJSON =+ Core.withObject+ "ListImportJobsResponse"+ ( \o ->+ ListImportJobsResponse+ Core.<$> (o Core..:? "importJobs")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "totalSize")+ )++instance Core.ToJSON ListImportJobsResponse where+ toJSON ListImportJobsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("importJobs" Core..=) Core.<$> importJobs,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("totalSize" Core..=) Core.<$> totalSize+ ]+ )++-- | Response message for Autokey.ListKeyHandles.+--+-- /See:/ 'newListKeyHandlesResponse' smart constructor.+data ListKeyHandlesResponse = ListKeyHandlesResponse+ { -- | Resulting KeyHandles.+ keyHandles :: (Core.Maybe [KeyHandle]),+ -- | A token to retrieve next page of results. Pass this value in ListKeyHandlesRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListKeyHandlesResponse' with the minimum fields required to make a request.+newListKeyHandlesResponse ::+ ListKeyHandlesResponse+newListKeyHandlesResponse =+ ListKeyHandlesResponse+ { keyHandles = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListKeyHandlesResponse where+ parseJSON =+ Core.withObject+ "ListKeyHandlesResponse"+ ( \o ->+ ListKeyHandlesResponse+ Core.<$> (o Core..:? "keyHandles")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListKeyHandlesResponse where+ toJSON ListKeyHandlesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("keyHandles" Core..=) Core.<$> keyHandles,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | Response message for KeyManagementService.ListKeyRings.+--+-- /See:/ 'newListKeyRingsResponse' smart constructor.+data ListKeyRingsResponse = ListKeyRingsResponse+ { -- | The list of KeyRings.+ keyRings :: (Core.Maybe [KeyRing]),+ -- | A token to retrieve next page of results. Pass this value in ListKeyRingsRequest.page_token to retrieve the next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The total number of KeyRings that matched the query.+ totalSize :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListKeyRingsResponse' with the minimum fields required to make a request.+newListKeyRingsResponse ::+ ListKeyRingsResponse+newListKeyRingsResponse =+ ListKeyRingsResponse+ { keyRings = Core.Nothing,+ nextPageToken = Core.Nothing,+ totalSize = Core.Nothing+ }++instance Core.FromJSON ListKeyRingsResponse where+ parseJSON =+ Core.withObject+ "ListKeyRingsResponse"+ ( \o ->+ ListKeyRingsResponse+ Core.<$> (o Core..:? "keyRings")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "totalSize")+ )++instance Core.ToJSON ListKeyRingsResponse where+ toJSON ListKeyRingsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("keyRings" Core..=) Core.<$> keyRings,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("totalSize" Core..=) Core.<$> totalSize+ ]+ )++-- | The response message for Locations.ListLocations.+--+-- /See:/ 'newListLocationsResponse' smart constructor.+data ListLocationsResponse = ListLocationsResponse+ { -- | A list of locations that matches the specified filter in the request.+ locations :: (Core.Maybe [Location]),+ -- | The standard List next-page token.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListLocationsResponse' with the minimum fields required to make a request.+newListLocationsResponse ::+ ListLocationsResponse+newListLocationsResponse =+ ListLocationsResponse+ { locations = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListLocationsResponse where+ parseJSON =+ Core.withObject+ "ListLocationsResponse"+ ( \o ->+ ListLocationsResponse+ Core.<$> (o Core..:? "locations")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListLocationsResponse where+ toJSON ListLocationsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("locations" Core..=) Core.<$> locations,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | A resource that represents a Google Cloud location.+--+-- /See:/ 'newLocation' smart constructor.+data Location = Location+ { -- | The friendly name for this location, typically a nearby city name. For example, \"Tokyo\".+ displayName :: (Core.Maybe Core.Text),+ -- | Cross-service attributes for the location. For example {\"cloud.googleapis.com\/region\": \"us-east1\"}+ labels :: (Core.Maybe Location_Labels),+ -- | The canonical id for this location. For example: @\"us-east1\"@.+ locationId :: (Core.Maybe Core.Text),+ -- | Service-specific metadata. For example the available capacity at the given location.+ metadata :: (Core.Maybe Location_Metadata),+ -- | Resource name for the location, which may vary between implementations. For example: @\"projects\/example-project\/locations\/us-east1\"@+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location' with the minimum fields required to make a request.+newLocation ::+ Location+newLocation =+ Location+ { displayName = Core.Nothing,+ labels = Core.Nothing,+ locationId = Core.Nothing,+ metadata = Core.Nothing,+ name = Core.Nothing+ }++instance Core.FromJSON Location where+ parseJSON =+ Core.withObject+ "Location"+ ( \o ->+ Location+ Core.<$> (o Core..:? "displayName")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "locationId")+ Core.<*> (o Core..:? "metadata")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON Location where+ toJSON Location {..} =+ Core.object+ ( Core.catMaybes+ [ ("displayName" Core..=) Core.<$> displayName,+ ("labels" Core..=) Core.<$> labels,+ ("locationId" Core..=) Core.<$> locationId,+ ("metadata" Core..=) Core.<$> metadata,+ ("name" Core..=) Core.<$> name+ ]+ )++-- | Cross-service attributes for the location. For example {\"cloud.googleapis.com\/region\": \"us-east1\"}+--+-- /See:/ 'newLocation_Labels' smart constructor.+newtype Location_Labels = Location_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location_Labels' with the minimum fields required to make a request.+newLocation_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Location_Labels+newLocation_Labels additional =+ Location_Labels {additional = additional}++instance Core.FromJSON Location_Labels where+ parseJSON =+ Core.withObject+ "Location_Labels"+ (\o -> Location_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Location_Labels where+ toJSON Location_Labels {..} = Core.toJSON additional++-- | Service-specific metadata. For example the available capacity at the given location.+--+-- /See:/ 'newLocation_Metadata' smart constructor.+newtype Location_Metadata = Location_Metadata+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location_Metadata' with the minimum fields required to make a request.+newLocation_Metadata ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Location_Metadata+newLocation_Metadata additional =+ Location_Metadata {additional = additional}++instance Core.FromJSON Location_Metadata where+ parseJSON =+ Core.withObject+ "Location_Metadata"+ (\o -> Location_Metadata Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Location_Metadata where+ toJSON Location_Metadata {..} = Core.toJSON additional++-- | Cloud KMS metadata for the given google.cloud.location.Location.+--+-- /See:/ 'newLocationMetadata' smart constructor.+data LocationMetadata = LocationMetadata+ { -- | Indicates whether CryptoKeys with protection_level EXTERNAL can be created in this location.+ ekmAvailable :: (Core.Maybe Core.Bool),+ -- | Indicates whether CryptoKeys with protection_level HSM can be created in this location.+ hsmAvailable :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LocationMetadata' with the minimum fields required to make a request.+newLocationMetadata ::+ LocationMetadata+newLocationMetadata =+ LocationMetadata+ { ekmAvailable = Core.Nothing,+ hsmAvailable = Core.Nothing+ }++instance Core.FromJSON LocationMetadata where+ parseJSON =+ Core.withObject+ "LocationMetadata"+ ( \o ->+ LocationMetadata+ Core.<$> (o Core..:? "ekmAvailable")+ Core.<*> (o Core..:? "hsmAvailable")+ )++instance Core.ToJSON LocationMetadata where+ toJSON LocationMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("ekmAvailable" Core..=) Core.<$> ekmAvailable,+ ("hsmAvailable" Core..=) Core.<$> hsmAvailable+ ]+ )++-- | Request message for KeyManagementService.MacSign.+--+-- /See:/ 'newMacSignRequest' smart constructor.+data MacSignRequest = MacSignRequest+ { -- | Required. The data to sign. The MAC tag is computed over this data field based on the specific algorithm.+ data' :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the MacSignRequest.data. If specified, KeyManagementService will verify the integrity of the received MacSignRequest.data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(MacSignRequest.data) is equal to MacSignRequest.data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ dataCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MacSignRequest' with the minimum fields required to make a request.+newMacSignRequest ::+ MacSignRequest+newMacSignRequest =+ MacSignRequest {data' = Core.Nothing, dataCrc32c = Core.Nothing}++instance Core.FromJSON MacSignRequest where+ parseJSON =+ Core.withObject+ "MacSignRequest"+ ( \o ->+ MacSignRequest+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "dataCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON MacSignRequest where+ toJSON MacSignRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("dataCrc32c" Core..=) Core.. Core.AsText Core.<$> dataCrc32c+ ]+ )++-- | Response message for KeyManagementService.MacSign.+--+-- /See:/ 'newMacSignResponse' smart constructor.+data MacSignResponse = MacSignResponse+ { -- | The created signature.+ mac :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned MacSignResponse.mac. An integrity check of MacSignResponse.mac can be performed by computing the CRC32C checksum of MacSignResponse.mac and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ macCrc32c :: (Core.Maybe Core.Int64),+ -- | The resource name of the CryptoKeyVersion used for signing. Check this field to verify that the intended resource was used for signing.+ name :: (Core.Maybe Core.Text),+ -- | The ProtectionLevel of the CryptoKeyVersion used for signing.+ protectionLevel :: (Core.Maybe MacSignResponse_ProtectionLevel),+ -- | Integrity verification field. A flag indicating whether MacSignRequest.data/crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacSignRequest.data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set MacSignRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedDataCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MacSignResponse' with the minimum fields required to make a request.+newMacSignResponse ::+ MacSignResponse+newMacSignResponse =+ MacSignResponse+ { mac = Core.Nothing,+ macCrc32c = Core.Nothing,+ name = Core.Nothing,+ protectionLevel = Core.Nothing,+ verifiedDataCrc32c = Core.Nothing+ }++instance Core.FromJSON MacSignResponse where+ parseJSON =+ Core.withObject+ "MacSignResponse"+ ( \o ->+ MacSignResponse+ Core.<$> (o Core..:? "mac")+ Core.<*> (o Core..:? "macCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "verifiedDataCrc32c")+ )++instance Core.ToJSON MacSignResponse where+ toJSON MacSignResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("mac" Core..=) Core.<$> mac,+ ("macCrc32c" Core..=) Core.. Core.AsText Core.<$> macCrc32c,+ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("verifiedDataCrc32c" Core..=) Core.<$> verifiedDataCrc32c+ ]+ )++-- | Request message for KeyManagementService.MacVerify.+--+-- /See:/ 'newMacVerifyRequest' smart constructor.+data MacVerifyRequest = MacVerifyRequest+ { -- | Required. The data used previously as a MacSignRequest.data to generate the MAC tag.+ data' :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the MacVerifyRequest.data. If specified, KeyManagementService will verify the integrity of the received MacVerifyRequest.data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(MacVerifyRequest.data) is equal to MacVerifyRequest.data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ dataCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The signature to verify.+ mac :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the MacVerifyRequest.mac. If specified, KeyManagementService will verify the integrity of the received MacVerifyRequest.mac using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(MacVerifyRequest.mac) is equal to MacVerifyRequest.mac_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ macCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MacVerifyRequest' with the minimum fields required to make a request.+newMacVerifyRequest ::+ MacVerifyRequest+newMacVerifyRequest =+ MacVerifyRequest+ { data' = Core.Nothing,+ dataCrc32c = Core.Nothing,+ mac = Core.Nothing,+ macCrc32c = Core.Nothing+ }++instance Core.FromJSON MacVerifyRequest where+ parseJSON =+ Core.withObject+ "MacVerifyRequest"+ ( \o ->+ MacVerifyRequest+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "dataCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "mac")+ Core.<*> (o Core..:? "macCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON MacVerifyRequest where+ toJSON MacVerifyRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("dataCrc32c" Core..=) Core.. Core.AsText Core.<$> dataCrc32c,+ ("mac" Core..=) Core.<$> mac,+ ("macCrc32c" Core..=) Core.. Core.AsText Core.<$> macCrc32c+ ]+ )++-- | Response message for KeyManagementService.MacVerify.+--+-- /See:/ 'newMacVerifyResponse' smart constructor.+data MacVerifyResponse = MacVerifyResponse+ { -- | The resource name of the CryptoKeyVersion used for verification. Check this field to verify that the intended resource was used for verification.+ name :: (Core.Maybe Core.Text),+ -- | The ProtectionLevel of the CryptoKeyVersion used for verification.+ protectionLevel :: (Core.Maybe MacVerifyResponse_ProtectionLevel),+ -- | This field indicates whether or not the verification operation for MacVerifyRequest.mac over MacVerifyRequest.data was successful.+ success :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether MacVerifyRequest.data/crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set MacVerifyRequest.data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedDataCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether MacVerifyRequest.mac/crc32c was received by KeyManagementService and used for the integrity verification of the data. A false value of this field indicates either that MacVerifyRequest.mac/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set MacVerifyRequest.mac_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedMacCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. This value is used for the integrity verification of [MacVerifyResponse.success]. If the value of this field contradicts the value of [MacVerifyResponse.success], discard the response and perform a limited number of retries.+ verifiedSuccessIntegrity :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MacVerifyResponse' with the minimum fields required to make a request.+newMacVerifyResponse ::+ MacVerifyResponse+newMacVerifyResponse =+ MacVerifyResponse+ { name = Core.Nothing,+ protectionLevel = Core.Nothing,+ success = Core.Nothing,+ verifiedDataCrc32c = Core.Nothing,+ verifiedMacCrc32c = Core.Nothing,+ verifiedSuccessIntegrity = Core.Nothing+ }++instance Core.FromJSON MacVerifyResponse where+ parseJSON =+ Core.withObject+ "MacVerifyResponse"+ ( \o ->+ MacVerifyResponse+ Core.<$> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "success")+ Core.<*> (o Core..:? "verifiedDataCrc32c")+ Core.<*> (o Core..:? "verifiedMacCrc32c")+ Core.<*> (o Core..:? "verifiedSuccessIntegrity")+ )++instance Core.ToJSON MacVerifyResponse where+ toJSON MacVerifyResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("success" Core..=) Core.<$> success,+ ("verifiedDataCrc32c" Core..=) Core.<$> verifiedDataCrc32c,+ ("verifiedMacCrc32c" Core..=) Core.<$> verifiedMacCrc32c,+ ("verifiedSuccessIntegrity" Core..=)+ Core.<$> verifiedSuccessIntegrity+ ]+ )++-- | This resource represents a long-running operation that is the result of a network API call.+--+-- /See:/ 'newOperation' smart constructor.+data Operation = Operation+ { -- | 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 Status),+ -- | 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 Operation_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\/{unique_id}@.+ name :: (Core.Maybe Core.Text),+ -- | The normal, successful response of the operation. 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 Operation_Response)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation' with the minimum fields required to make a request.+newOperation ::+ Operation+newOperation =+ Operation+ { done = Core.Nothing,+ error = Core.Nothing,+ metadata = Core.Nothing,+ name = Core.Nothing,+ response = Core.Nothing+ }++instance Core.FromJSON Operation where+ parseJSON =+ Core.withObject+ "Operation"+ ( \o ->+ Operation+ Core.<$> (o Core..:? "done")+ Core.<*> (o Core..:? "error")+ Core.<*> (o Core..:? "metadata")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "response")+ )++instance Core.ToJSON Operation where+ toJSON Operation {..} =+ Core.object+ ( Core.catMaybes+ [ ("done" Core..=) Core.<$> done,+ ("error" Core..=) Core.<$> error,+ ("metadata" Core..=) Core.<$> metadata,+ ("name" Core..=) Core.<$> name,+ ("response" Core..=) Core.<$> response+ ]+ )++-- | 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:/ 'newOperation_Metadata' smart constructor.+newtype Operation_Metadata = Operation_Metadata+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation_Metadata' with the minimum fields required to make a request.+newOperation_Metadata ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Operation_Metadata+newOperation_Metadata additional =+ Operation_Metadata {additional = additional}++instance Core.FromJSON Operation_Metadata where+ parseJSON =+ Core.withObject+ "Operation_Metadata"+ (\o -> Operation_Metadata Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Operation_Metadata where+ toJSON Operation_Metadata {..} = Core.toJSON additional++-- | The normal, successful response of the operation. 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:/ 'newOperation_Response' smart constructor.+newtype Operation_Response = Operation_Response+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation_Response' with the minimum fields required to make a request.+newOperation_Response ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Operation_Response+newOperation_Response additional =+ Operation_Response {additional = additional}++instance Core.FromJSON Operation_Response where+ parseJSON =+ Core.withObject+ "Operation_Response"+ (\o -> Operation_Response Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Operation_Response where+ toJSON Operation_Response {..} = Core.toJSON additional++-- | An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A @Policy@ is a collection of @bindings@. A @binding@ binds one or more @members@, or principals, to a single @role@. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A @role@ is a named list of permissions; each @role@ can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a @binding@ can also specify a @condition@, which is a logical expression that allows access to a resource only if the expression evaluates to @true@. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>. __JSON example:__+-- @{ \"bindings\": [ { \"role\": \"roles\/resourcemanager.organizationAdmin\", \"members\": [ \"user:mike\@example.com\", \"group:admins\@example.com\", \"domain:google.com\", \"serviceAccount:my-project-id\@appspot.gserviceaccount.com\" ] }, { \"role\": \"roles\/resourcemanager.organizationViewer\", \"members\": [ \"user:eve\@example.com\" ], \"condition\": { \"title\": \"expirable access\", \"description\": \"Does not grant access after Sep 2020\", \"expression\": \"request.time \< timestamp(\'2020-10-01T00:00:00.000Z\')\", } } ], \"etag\": \"BwWWja0YfJA=\", \"version\": 3 }@ __YAML example:__+-- @bindings: - members: - user:mike\@example.com - group:admins\@example.com - domain:google.com - serviceAccount:my-project-id\@appspot.gserviceaccount.com role: roles\/resourcemanager.organizationAdmin - members: - user:eve\@example.com role: roles\/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time \< timestamp(\'2020-10-01T00:00:00.000Z\') etag: BwWWja0YfJA= version: 3@ For a description of IAM and its features, see the <https://cloud.google.com/iam/docs/ IAM documentation>.+--+-- /See:/ 'newPolicy' smart constructor.+data Policy = Policy+ { -- | Specifies cloud audit logging configuration for this policy.+ auditConfigs :: (Core.Maybe [AuditConfig]),+ -- | Associates a list of @members@, or principals, with a @role@. Optionally, may specify a @condition@ that determines how and when the @bindings@ are applied. Each of the @bindings@ must contain at least one principal. The @bindings@ in a @Policy@ can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the @bindings@ grant 50 different roles to @user:alice\@example.com@, and not to any other principal, then you can add another 1,450 principals to the @bindings@ in the @Policy@.+ bindings :: (Core.Maybe [Binding]),+ -- | @etag@ is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the @etag@ in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An @etag@ is returned in the response to @getIamPolicy@, and systems are expected to put that etag in the request to @setIamPolicy@ to ensure that their change will be applied to the same version of the policy. __Important:__ If you use IAM Conditions, you must include the @etag@ field whenever you call @setIamPolicy@. If you omit this field, then IAM allows you to overwrite a version @3@ policy with a version @1@ policy, and all of the conditions in the version @3@ policy are lost.+ etag :: (Core.Maybe Core.Base64),+ -- | Specifies the format of the policy. Valid values are @0@, @1@, and @3@. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version @3@. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions __Important:__ If you use IAM Conditions, you must include the @etag@ field whenever you call @setIamPolicy@. If you omit this field, then IAM allows you to overwrite a version @3@ policy with a version @1@ policy, and all of the conditions in the version @3@ policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the+ -- <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ version :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy' with the minimum fields required to make a request.+newPolicy ::+ Policy+newPolicy =+ Policy+ { auditConfigs = Core.Nothing,+ bindings = Core.Nothing,+ etag = Core.Nothing,+ version = Core.Nothing+ }++instance Core.FromJSON Policy where+ parseJSON =+ Core.withObject+ "Policy"+ ( \o ->+ Policy+ Core.<$> (o Core..:? "auditConfigs")+ Core.<*> (o Core..:? "bindings")+ Core.<*> (o Core..:? "etag")+ Core.<*> (o Core..:? "version")+ )++instance Core.ToJSON Policy where+ toJSON Policy {..} =+ Core.object+ ( Core.catMaybes+ [ ("auditConfigs" Core..=) Core.<$> auditConfigs,+ ("bindings" Core..=) Core.<$> bindings,+ ("etag" Core..=) Core.<$> etag,+ ("version" Core..=) Core.<$> version+ ]+ )++-- | The public keys for a given CryptoKeyVersion. Obtained via GetPublicKey.+--+-- /See:/ 'newPublicKey' smart constructor.+data PublicKey = PublicKey+ { -- | The Algorithm associated with this key.+ algorithm :: (Core.Maybe PublicKey_Algorithm),+ -- | The name of the CryptoKeyVersion public key. Provided here for verification. NOTE: This field is in Beta.+ name :: (Core.Maybe Core.Text),+ -- | The public key, encoded in PEM format. For more information, see the <https://tools.ietf.org/html/rfc7468 RFC 7468> sections for <https://tools.ietf.org/html/rfc7468#section-2 General Considerations> and [Textual Encoding of Subject Public Key Info] (https:\/\/tools.ietf.org\/html\/rfc7468#section-13).+ pem :: (Core.Maybe Core.Text),+ -- | Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of PublicKey.pem and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed @2^32-1@, and can be safely downconverted to uint32 in languages that support this type. NOTE: This field is in Beta.+ pemCrc32c :: (Core.Maybe Core.Int64),+ -- | The ProtectionLevel of the CryptoKeyVersion public key.+ protectionLevel :: (Core.Maybe PublicKey_ProtectionLevel),+ -- | This field contains the public key (with integrity verification), formatted according to the public/key/format field.+ publicKey :: (Core.Maybe ChecksummedData),+ -- | The PublicKey format specified by the customer through the public/key/format field.+ publicKeyFormat :: (Core.Maybe PublicKey_PublicKeyFormat)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PublicKey' with the minimum fields required to make a request.+newPublicKey ::+ PublicKey+newPublicKey =+ PublicKey+ { algorithm = Core.Nothing,+ name = Core.Nothing,+ pem = Core.Nothing,+ pemCrc32c = Core.Nothing,+ protectionLevel = Core.Nothing,+ publicKey = Core.Nothing,+ publicKeyFormat = Core.Nothing+ }++instance Core.FromJSON PublicKey where+ parseJSON =+ Core.withObject+ "PublicKey"+ ( \o ->+ PublicKey+ Core.<$> (o Core..:? "algorithm")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "pem")+ Core.<*> (o Core..:? "pemCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "publicKey")+ Core.<*> (o Core..:? "publicKeyFormat")+ )++instance Core.ToJSON PublicKey where+ toJSON PublicKey {..} =+ Core.object+ ( Core.catMaybes+ [ ("algorithm" Core..=) Core.<$> algorithm,+ ("name" Core..=) Core.<$> name,+ ("pem" Core..=) Core.<$> pem,+ ("pemCrc32c" Core..=) Core.. Core.AsText Core.<$> pemCrc32c,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("publicKey" Core..=) Core.<$> publicKey,+ ("publicKeyFormat" Core..=) Core.<$> publicKeyFormat+ ]+ )++-- | Request message for KeyManagementService.RawDecrypt.+--+-- /See:/ 'newRawDecryptRequest' smart constructor.+data RawDecryptRequest = RawDecryptRequest+ { -- | Optional. Optional data that must match the data originally supplied in RawEncryptRequest.additional/authenticated/data.+ additionalAuthenticatedData :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawDecryptRequest.additional/authenticated/data. If specified, KeyManagementService will verify the integrity of the received additional/authenticated/data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(additional/authenticated/data) is equal to additional/authenticated/data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ additionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The encrypted data originally returned in RawEncryptResponse.ciphertext.+ ciphertext :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawDecryptRequest.ciphertext. If specified, KeyManagementService will verify the integrity of the received ciphertext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(ciphertext) is equal to ciphertext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ ciphertextCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The initialization vector (IV) used during encryption, which must match the data originally provided in RawEncryptResponse.initialization_vector.+ initializationVector :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawDecryptRequest.initialization/vector. If specified, KeyManagementService will verify the integrity of the received initialization/vector using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(initialization/vector) is equal to initialization/vector_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ initializationVectorCrc32c :: (Core.Maybe Core.Int64),+ -- | The length of the authentication tag that is appended to the end of the ciphertext. If unspecified (0), the default value for the key\'s algorithm will be used (for AES-GCM, the default value is 16).+ tagLength :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RawDecryptRequest' with the minimum fields required to make a request.+newRawDecryptRequest ::+ RawDecryptRequest+newRawDecryptRequest =+ RawDecryptRequest+ { additionalAuthenticatedData = Core.Nothing,+ additionalAuthenticatedDataCrc32c = Core.Nothing,+ ciphertext = Core.Nothing,+ ciphertextCrc32c = Core.Nothing,+ initializationVector = Core.Nothing,+ initializationVectorCrc32c = Core.Nothing,+ tagLength = Core.Nothing+ }++instance Core.FromJSON RawDecryptRequest where+ parseJSON =+ Core.withObject+ "RawDecryptRequest"+ ( \o ->+ RawDecryptRequest+ Core.<$> (o Core..:? "additionalAuthenticatedData")+ Core.<*> ( o+ Core..:? "additionalAuthenticatedDataCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "ciphertext")+ Core.<*> (o Core..:? "ciphertextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "initializationVector")+ Core.<*> ( o+ Core..:? "initializationVectorCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "tagLength")+ )++instance Core.ToJSON RawDecryptRequest where+ toJSON RawDecryptRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalAuthenticatedData" Core..=)+ Core.<$> additionalAuthenticatedData,+ ("additionalAuthenticatedDataCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> additionalAuthenticatedDataCrc32c,+ ("ciphertext" Core..=) Core.<$> ciphertext,+ ("ciphertextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> ciphertextCrc32c,+ ("initializationVector" Core..=) Core.<$> initializationVector,+ ("initializationVectorCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> initializationVectorCrc32c,+ ("tagLength" Core..=) Core.<$> tagLength+ ]+ )++-- | Response message for KeyManagementService.RawDecrypt.+--+-- /See:/ 'newRawDecryptResponse' smart constructor.+data RawDecryptResponse = RawDecryptResponse+ { -- | The decrypted data.+ plaintext :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned RawDecryptResponse.plaintext. An integrity check of plaintext can be performed by computing the CRC32C checksum of plaintext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: receiving this response message indicates that KeyManagementService is able to successfully decrypt the ciphertext. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ plaintextCrc32c :: (Core.Maybe Core.Int64),+ -- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+ protectionLevel :: (Core.Maybe RawDecryptResponse_ProtectionLevel),+ -- | Integrity verification field. A flag indicating whether RawDecryptRequest.additional/authenticated/data/crc32c was received by KeyManagementService and used for the integrity verification of additional/authenticated/data. A false value of this field indicates either that \/\/ RawDecryptRequest.additional/authenticated/data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawDecryptRequest.additional/authenticated/data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedAdditionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether RawDecryptRequest.ciphertext/crc32c was received by KeyManagementService and used for the integrity verification of the ciphertext. A false value of this field indicates either that RawDecryptRequest.ciphertext/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawDecryptRequest.ciphertext_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedCiphertextCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether RawDecryptRequest.initialization/vector/crc32c was received by KeyManagementService and used for the integrity verification of initialization/vector. A false value of this field indicates either that RawDecryptRequest.initialization/vector/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawDecryptRequest.initialization/vector_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedInitializationVectorCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RawDecryptResponse' with the minimum fields required to make a request.+newRawDecryptResponse ::+ RawDecryptResponse+newRawDecryptResponse =+ RawDecryptResponse+ { plaintext = Core.Nothing,+ plaintextCrc32c = Core.Nothing,+ protectionLevel = Core.Nothing,+ verifiedAdditionalAuthenticatedDataCrc32c = Core.Nothing,+ verifiedCiphertextCrc32c = Core.Nothing,+ verifiedInitializationVectorCrc32c = Core.Nothing+ }++instance Core.FromJSON RawDecryptResponse where+ parseJSON =+ Core.withObject+ "RawDecryptResponse"+ ( \o ->+ RawDecryptResponse+ Core.<$> (o Core..:? "plaintext")+ Core.<*> (o Core..:? "plaintextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "verifiedAdditionalAuthenticatedDataCrc32c")+ Core.<*> (o Core..:? "verifiedCiphertextCrc32c")+ Core.<*> (o Core..:? "verifiedInitializationVectorCrc32c")+ )++instance Core.ToJSON RawDecryptResponse where+ toJSON RawDecryptResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("plaintext" Core..=) Core.<$> plaintext,+ ("plaintextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> plaintextCrc32c,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("verifiedAdditionalAuthenticatedDataCrc32c" Core..=)+ Core.<$> verifiedAdditionalAuthenticatedDataCrc32c,+ ("verifiedCiphertextCrc32c" Core..=)+ Core.<$> verifiedCiphertextCrc32c,+ ("verifiedInitializationVectorCrc32c" Core..=)+ Core.<$> verifiedInitializationVectorCrc32c+ ]+ )++-- | Request message for KeyManagementService.RawEncrypt.+--+-- /See:/ 'newRawEncryptRequest' smart constructor.+data RawEncryptRequest = RawEncryptRequest+ { -- | Optional. Optional data that, if specified, must also be provided during decryption through RawDecryptRequest.additional/authenticated/data. This field may only be used in conjunction with an algorithm that accepts additional authenticated data (for example, AES-GCM). The maximum size depends on the key version\'s protection/level. For SOFTWARE keys, the plaintext must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional/authenticated_data fields must be no larger than 8KiB.+ additionalAuthenticatedData :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawEncryptRequest.additional/authenticated/data. If specified, KeyManagementService will verify the integrity of the received additional/authenticated/data using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(additional/authenticated/data) is equal to additional/authenticated/data_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ additionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Int64),+ -- | Optional. A customer-supplied initialization vector that will be used for encryption. If it is not provided for AES-CBC and AES-CTR, one will be generated. It will be returned in RawEncryptResponse.initialization_vector.+ initializationVector :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawEncryptRequest.initialization/vector. If specified, KeyManagementService will verify the integrity of the received initialization/vector using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(initialization/vector) is equal to initialization/vector_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ initializationVectorCrc32c :: (Core.Maybe Core.Int64),+ -- | Required. The data to encrypt. Must be no larger than 64KiB. The maximum size depends on the key version\'s protection/level. For SOFTWARE keys, the plaintext must be no larger than 64KiB. For HSM keys, the combined length of the plaintext and additional/authenticated_data fields must be no larger than 8KiB.+ plaintext :: (Core.Maybe Core.Base64),+ -- | Optional. An optional CRC32C checksum of the RawEncryptRequest.plaintext. If specified, KeyManagementService will verify the integrity of the received plaintext using this checksum. KeyManagementService will report an error if the checksum verification fails. If you receive a checksum error, your client should verify that CRC32C(plaintext) is equal to plaintext_crc32c, and if so, perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ plaintextCrc32c :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RawEncryptRequest' with the minimum fields required to make a request.+newRawEncryptRequest ::+ RawEncryptRequest+newRawEncryptRequest =+ RawEncryptRequest+ { additionalAuthenticatedData = Core.Nothing,+ additionalAuthenticatedDataCrc32c = Core.Nothing,+ initializationVector = Core.Nothing,+ initializationVectorCrc32c = Core.Nothing,+ plaintext = Core.Nothing,+ plaintextCrc32c = Core.Nothing+ }++instance Core.FromJSON RawEncryptRequest where+ parseJSON =+ Core.withObject+ "RawEncryptRequest"+ ( \o ->+ RawEncryptRequest+ Core.<$> (o Core..:? "additionalAuthenticatedData")+ Core.<*> ( o+ Core..:? "additionalAuthenticatedDataCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "initializationVector")+ Core.<*> ( o+ Core..:? "initializationVectorCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "plaintext")+ Core.<*> (o Core..:? "plaintextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON RawEncryptRequest where+ toJSON RawEncryptRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalAuthenticatedData" Core..=)+ Core.<$> additionalAuthenticatedData,+ ("additionalAuthenticatedDataCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> additionalAuthenticatedDataCrc32c,+ ("initializationVector" Core..=) Core.<$> initializationVector,+ ("initializationVectorCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> initializationVectorCrc32c,+ ("plaintext" Core..=) Core.<$> plaintext,+ ("plaintextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> plaintextCrc32c+ ]+ )++-- | Response message for KeyManagementService.RawEncrypt.+--+-- /See:/ 'newRawEncryptResponse' smart constructor.+data RawEncryptResponse = RawEncryptResponse+ { -- | The encrypted data. In the case of AES-GCM, the authentication tag is the tag_length bytes at the end of this field.+ ciphertext :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned RawEncryptResponse.ciphertext. An integrity check of ciphertext can be performed by computing the CRC32C checksum of ciphertext and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ ciphertextCrc32c :: (Core.Maybe Core.Int64),+ -- | The initialization vector (IV) generated by the service during encryption. This value must be stored and provided in RawDecryptRequest.initialization_vector at decryption time.+ initializationVector :: (Core.Maybe Core.Base64),+ -- | Integrity verification field. A CRC32C checksum of the returned RawEncryptResponse.initialization/vector. An integrity check of initialization/vector can be performed by computing the CRC32C checksum of initialization_vector and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.+ initializationVectorCrc32c :: (Core.Maybe Core.Int64),+ -- | The resource name of the CryptoKeyVersion used in encryption. Check this field to verify that the intended resource was used for encryption.+ name :: (Core.Maybe Core.Text),+ -- | The ProtectionLevel of the CryptoKeyVersion used in encryption.+ protectionLevel :: (Core.Maybe RawEncryptResponse_ProtectionLevel),+ -- | The length of the authentication tag that is appended to the end of the ciphertext.+ tagLength :: (Core.Maybe Core.Int32),+ -- | Integrity verification field. A flag indicating whether RawEncryptRequest.additional/authenticated/data/crc32c was received by KeyManagementService and used for the integrity verification of additional/authenticated/data. A false value of this field indicates either that \/\/ RawEncryptRequest.additional/authenticated/data/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawEncryptRequest.additional/authenticated/data_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedAdditionalAuthenticatedDataCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether RawEncryptRequest.initialization/vector/crc32c was received by KeyManagementService and used for the integrity verification of initialization/vector. A false value of this field indicates either that RawEncryptRequest.initialization/vector/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawEncryptRequest.initialization/vector_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedInitializationVectorCrc32c :: (Core.Maybe Core.Bool),+ -- | Integrity verification field. A flag indicating whether RawEncryptRequest.plaintext/crc32c was received by KeyManagementService and used for the integrity verification of the plaintext. A false value of this field indicates either that RawEncryptRequest.plaintext/crc32c was left unset or that it was not delivered to KeyManagementService. If you\'ve set RawEncryptRequest.plaintext_crc32c but this field is still false, discard the response and perform a limited number of retries.+ verifiedPlaintextCrc32c :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RawEncryptResponse' with the minimum fields required to make a request.+newRawEncryptResponse ::+ RawEncryptResponse+newRawEncryptResponse =+ RawEncryptResponse+ { ciphertext = Core.Nothing,+ ciphertextCrc32c = Core.Nothing,+ initializationVector = Core.Nothing,+ initializationVectorCrc32c = Core.Nothing,+ name = Core.Nothing,+ protectionLevel = Core.Nothing,+ tagLength = Core.Nothing,+ verifiedAdditionalAuthenticatedDataCrc32c = Core.Nothing,+ verifiedInitializationVectorCrc32c = Core.Nothing,+ verifiedPlaintextCrc32c = Core.Nothing+ }++instance Core.FromJSON RawEncryptResponse where+ parseJSON =+ Core.withObject+ "RawEncryptResponse"+ ( \o ->+ RawEncryptResponse+ Core.<$> (o Core..:? "ciphertext")+ Core.<*> (o Core..:? "ciphertextCrc32c" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "initializationVector")+ Core.<*> ( o+ Core..:? "initializationVectorCrc32c"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "protectionLevel")+ Core.<*> (o Core..:? "tagLength")+ Core.<*> (o Core..:? "verifiedAdditionalAuthenticatedDataCrc32c")+ Core.<*> (o Core..:? "verifiedInitializationVectorCrc32c")+ Core.<*> (o Core..:? "verifiedPlaintextCrc32c")+ )++instance Core.ToJSON RawEncryptResponse where+ toJSON RawEncryptResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("ciphertext" Core..=) Core.<$> ciphertext,+ ("ciphertextCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> ciphertextCrc32c,+ ("initializationVector" Core..=) Core.<$> initializationVector,+ ("initializationVectorCrc32c" Core..=)+ Core.. Core.AsText+ Core.<$> initializationVectorCrc32c,+ ("name" Core..=) Core.<$> name,+ ("protectionLevel" Core..=) Core.<$> protectionLevel,+ ("tagLength" Core..=) Core.<$> tagLength,+ ("verifiedAdditionalAuthenticatedDataCrc32c" Core..=)+ Core.<$> verifiedAdditionalAuthenticatedDataCrc32c,+ ("verifiedInitializationVectorCrc32c" Core..=)+ Core.<$> verifiedInitializationVectorCrc32c,+ ("verifiedPlaintextCrc32c" Core..=)+ Core.<$> verifiedPlaintextCrc32c+ ]+ )++-- | Request message for KeyManagementService.RestoreCryptoKeyVersion.+--+-- /See:/ 'newRestoreCryptoKeyVersionRequest' smart constructor.+data RestoreCryptoKeyVersionRequest = RestoreCryptoKeyVersionRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RestoreCryptoKeyVersionRequest' with the minimum fields required to make a request.+newRestoreCryptoKeyVersionRequest ::+ RestoreCryptoKeyVersionRequest+newRestoreCryptoKeyVersionRequest = RestoreCryptoKeyVersionRequest++instance Core.FromJSON RestoreCryptoKeyVersionRequest where+ parseJSON =+ Core.withObject+ "RestoreCryptoKeyVersionRequest"+ (\o -> Core.pure RestoreCryptoKeyVersionRequest)++instance Core.ToJSON RestoreCryptoKeyVersionRequest where+ toJSON = Core.const Core.emptyObject++-- | A ServiceResolver represents an EKM replica that can be reached within an EkmConnection.+--+-- /See:/ 'newServiceResolver' smart constructor.+data ServiceResolver = ServiceResolver+ { -- | Optional. The filter applied to the endpoints of the resolved service. If no filter is specified, all endpoints will be considered. An endpoint will be chosen arbitrarily from the filtered list for each request. For endpoint filter syntax and examples, see https:\/\/cloud.google.com\/service-directory\/docs\/reference\/rpc\/google.cloud.servicedirectory.v1#resolveservicerequest.+ endpointFilter :: (Core.Maybe Core.Text),+ -- | Required. The hostname of the EKM replica used at TLS and HTTP layers.+ hostname :: (Core.Maybe Core.Text),+ -- | Required. A list of leaf server certificates used to authenticate HTTPS connections to the EKM replica. Currently, a maximum of 10 Certificate is supported.+ serverCertificates :: (Core.Maybe [Certificate]),+ -- | Required. The resource name of the Service Directory service pointing to an EKM replica, in the format @projects\/*\/locations\/*\/namespaces\/*\/services\/*@.+ serviceDirectoryService :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceResolver' with the minimum fields required to make a request.+newServiceResolver ::+ ServiceResolver+newServiceResolver =+ ServiceResolver+ { endpointFilter = Core.Nothing,+ hostname = Core.Nothing,+ serverCertificates = Core.Nothing,+ serviceDirectoryService = Core.Nothing+ }++instance Core.FromJSON ServiceResolver where+ parseJSON =+ Core.withObject+ "ServiceResolver"+ ( \o ->+ ServiceResolver+ Core.<$> (o Core..:? "endpointFilter")+ Core.<*> (o Core..:? "hostname")+ Core.<*> (o Core..:? "serverCertificates")+ Core.<*> (o Core..:? "serviceDirectoryService")+ )++instance Core.ToJSON ServiceResolver where+ toJSON ServiceResolver {..} =+ Core.object+ ( Core.catMaybes+ [ ("endpointFilter" Core..=) Core.<$> endpointFilter,+ ("hostname" Core..=) Core.<$> hostname,+ ("serverCertificates" Core..=) Core.<$> serverCertificates,+ ("serviceDirectoryService" Core..=)+ Core.<$> serviceDirectoryService+ ]+ )++-- | Request message for @SetIamPolicy@ method.+--+-- /See:/ 'newSetIamPolicyRequest' smart constructor.+data SetIamPolicyRequest = SetIamPolicyRequest+ { -- | REQUIRED: The complete policy to be applied to the @resource@. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Google Cloud services (such as Projects) might reject them.+ policy :: (Core.Maybe Policy),+ -- | OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only the fields in the mask will be modified. If no mask is provided, the following default mask is used: @paths: \"bindings, etag\"@+ updateMask :: (Core.Maybe Core.FieldMask)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SetIamPolicyRequest' with the minimum fields required to make a request.+newSetIamPolicyRequest ::+ SetIamPolicyRequest+newSetIamPolicyRequest =+ SetIamPolicyRequest+ { policy = Core.Nothing,+ updateMask = Core.Nothing+ }++instance Core.FromJSON SetIamPolicyRequest where+ parseJSON =+ Core.withObject+ "SetIamPolicyRequest"+ ( \o ->+ SetIamPolicyRequest+ Core.<$> (o Core..:? "policy")+ Core.<*> (o Core..:? "updateMask")+ )++instance Core.ToJSON SetIamPolicyRequest where+ toJSON SetIamPolicyRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("policy" Core..=) Core.<$> policy,+ ("updateMask" Core..=) Core.<$> updateMask+ ]+ )++-- | Response message for ShowEffectiveAutokeyConfig.+--+-- /See:/ 'newShowEffectiveAutokeyConfigResponse' smart constructor.+newtype ShowEffectiveAutokeyConfigResponse = ShowEffectiveAutokeyConfigResponse+ { -- | Name of the key project configured in the resource project\'s folder ancestry.+ keyProject :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ShowEffectiveAutokeyConfigResponse' with the minimum fields required to make a request.+newShowEffectiveAutokeyConfigResponse ::+ ShowEffectiveAutokeyConfigResponse+newShowEffectiveAutokeyConfigResponse =+ ShowEffectiveAutokeyConfigResponse {keyProject = Core.Nothing}++instance Core.FromJSON ShowEffectiveAutokeyConfigResponse where+ parseJSON =+ Core.withObject+ "ShowEffectiveAutokeyConfigResponse"+ ( \o ->+ ShowEffectiveAutokeyConfigResponse+ Core.<$> (o Core..:? "keyProject")+ )++instance Core.ToJSON ShowEffectiveAutokeyConfigResponse where+ toJSON ShowEffectiveAutokeyConfigResponse {..} =+ Core.object+ (Core.catMaybes [("keyProject" Core..=) Core.<$> keyProject])++-- | 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:/ 'newStatus' smart constructor.+data Status = Status+ { -- | 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 [Status_DetailsItem]),+ -- | A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.+ message :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status' with the minimum fields required to make a request.+newStatus ::+ Status+newStatus =+ Status+ { code = Core.Nothing,+ details = Core.Nothing,+ message = Core.Nothing+ }++instance Core.FromJSON Status where+ parseJSON =+ Core.withObject+ "Status"+ ( \o ->+ Status+ Core.<$> (o Core..:? "code")+ Core.<*> (o Core..:? "details")+ Core.<*> (o Core..:? "message")+ )++instance Core.ToJSON Status where+ toJSON Status {..} =+ Core.object+ ( Core.catMaybes+ [ ("code" Core..=) Core.<$> code,+ ("details" Core..=) Core.<$> details,+ ("message" Core..=) Core.<$> message+ ]+ )++--+-- /See:/ 'newStatus_DetailsItem' smart constructor.+newtype Status_DetailsItem = Status_DetailsItem+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status_DetailsItem' with the minimum fields required to make a request.+newStatus_DetailsItem ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Status_DetailsItem+newStatus_DetailsItem additional =+ Status_DetailsItem {additional = additional}++instance Core.FromJSON Status_DetailsItem where+ parseJSON =+ Core.withObject+ "Status_DetailsItem"+ (\o -> Status_DetailsItem Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Status_DetailsItem where+ toJSON Status_DetailsItem {..} = Core.toJSON additional++-- | Request message for @TestIamPermissions@ method.+--+-- /See:/ 'newTestIamPermissionsRequest' smart constructor.+newtype TestIamPermissionsRequest = TestIamPermissionsRequest+ { -- | The set of permissions to check for the @resource@. Permissions with wildcards (such as @*@ or @storage.*@) are not allowed. For more information see <https://cloud.google.com/iam/docs/overview#permissions IAM Overview>.+ permissions :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TestIamPermissionsRequest' with the minimum fields required to make a request.+newTestIamPermissionsRequest ::+ TestIamPermissionsRequest+newTestIamPermissionsRequest =+ TestIamPermissionsRequest {permissions = Core.Nothing}++instance Core.FromJSON TestIamPermissionsRequest where+ parseJSON =+ Core.withObject+ "TestIamPermissionsRequest"+ ( \o ->+ TestIamPermissionsRequest Core.<$> (o Core..:? "permissions")+ )++instance Core.ToJSON TestIamPermissionsRequest where+ toJSON TestIamPermissionsRequest {..} =+ Core.object+ (Core.catMaybes [("permissions" Core..=) Core.<$> permissions])++-- | Response message for @TestIamPermissions@ method.+--+-- /See:/ 'newTestIamPermissionsResponse' smart constructor.+newtype TestIamPermissionsResponse = TestIamPermissionsResponse+ { -- | A subset of @TestPermissionsRequest.permissions@ that the caller is allowed.+ permissions :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TestIamPermissionsResponse' with the minimum fields required to make a request.+newTestIamPermissionsResponse ::+ TestIamPermissionsResponse+newTestIamPermissionsResponse =+ TestIamPermissionsResponse {permissions = Core.Nothing}++instance Core.FromJSON TestIamPermissionsResponse where+ parseJSON =+ Core.withObject+ "TestIamPermissionsResponse"+ ( \o ->+ TestIamPermissionsResponse Core.<$> (o Core..:? "permissions")+ )++instance Core.ToJSON TestIamPermissionsResponse where+ toJSON TestIamPermissionsResponse {..} =+ Core.object+ (Core.catMaybes [("permissions" Core..=) Core.<$> permissions])++-- | Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.+--+-- /See:/ 'newUpdateCryptoKeyPrimaryVersionRequest' smart constructor.+newtype UpdateCryptoKeyPrimaryVersionRequest = UpdateCryptoKeyPrimaryVersionRequest+ { -- | Required. The id of the child CryptoKeyVersion to use as primary.+ cryptoKeyVersionId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UpdateCryptoKeyPrimaryVersionRequest' with the minimum fields required to make a request.+newUpdateCryptoKeyPrimaryVersionRequest ::+ UpdateCryptoKeyPrimaryVersionRequest+newUpdateCryptoKeyPrimaryVersionRequest =+ UpdateCryptoKeyPrimaryVersionRequest+ { cryptoKeyVersionId =+ Core.Nothing+ }++instance Core.FromJSON UpdateCryptoKeyPrimaryVersionRequest where+ parseJSON =+ Core.withObject+ "UpdateCryptoKeyPrimaryVersionRequest"+ ( \o ->+ UpdateCryptoKeyPrimaryVersionRequest+ Core.<$> (o Core..:? "cryptoKeyVersionId")+ )++instance Core.ToJSON UpdateCryptoKeyPrimaryVersionRequest where+ toJSON UpdateCryptoKeyPrimaryVersionRequest {..} =+ Core.object+ ( Core.catMaybes+ [("cryptoKeyVersionId" Core..=) Core.<$> cryptoKeyVersionId]+ )++-- | Response message for EkmService.VerifyConnectivity.+--+-- /See:/ 'newVerifyConnectivityResponse' smart constructor.+data VerifyConnectivityResponse = VerifyConnectivityResponse+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'VerifyConnectivityResponse' with the minimum fields required to make a request.+newVerifyConnectivityResponse ::+ VerifyConnectivityResponse+newVerifyConnectivityResponse = VerifyConnectivityResponse++instance Core.FromJSON VerifyConnectivityResponse where+ parseJSON =+ Core.withObject+ "VerifyConnectivityResponse"+ (\o -> Core.pure VerifyConnectivityResponse)++instance Core.ToJSON VerifyConnectivityResponse where+ toJSON = Core.const Core.emptyObject++-- | The public key component of the wrapping key. For details of the type of key this public key corresponds to, see the ImportMethod.+--+-- /See:/ 'newWrappingPublicKey' smart constructor.+newtype WrappingPublicKey = WrappingPublicKey+ { -- | The public key, encoded in PEM format. For more information, see the <https://tools.ietf.org/html/rfc7468 RFC 7468> sections for <https://tools.ietf.org/html/rfc7468#section-2 General Considerations> and [Textual Encoding of Subject Public Key Info] (https:\/\/tools.ietf.org\/html\/rfc7468#section-13).+ pem :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WrappingPublicKey' with the minimum fields required to make a request.+newWrappingPublicKey ::+ WrappingPublicKey+newWrappingPublicKey = WrappingPublicKey {pem = Core.Nothing}++instance Core.FromJSON WrappingPublicKey where+ parseJSON =+ Core.withObject+ "WrappingPublicKey"+ (\o -> WrappingPublicKey Core.<$> (o Core..:? "pem"))++instance Core.ToJSON WrappingPublicKey where+ toJSON WrappingPublicKey {..} =+ Core.object (Core.catMaybes [("pem" Core..=) Core.<$> pem])
+ gen/Gogol/CloudKMS/Internal/Sum.hs view
@@ -0,0 +1,2408 @@+{-# 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 : Gogol.CloudKMS.Internal.Sum+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.CloudKMS.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * AsymmetricDecryptResponse_ProtectionLevel+ AsymmetricDecryptResponse_ProtectionLevel+ ( AsymmetricDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ AsymmetricDecryptResponse_ProtectionLevel_Software,+ AsymmetricDecryptResponse_ProtectionLevel_Hsm,+ AsymmetricDecryptResponse_ProtectionLevel_External,+ AsymmetricDecryptResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * AsymmetricSignResponse_ProtectionLevel+ AsymmetricSignResponse_ProtectionLevel+ ( AsymmetricSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ AsymmetricSignResponse_ProtectionLevel_Software,+ AsymmetricSignResponse_ProtectionLevel_Hsm,+ AsymmetricSignResponse_ProtectionLevel_External,+ AsymmetricSignResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * AuditLogConfig_LogType+ AuditLogConfig_LogType+ ( AuditLogConfig_LogType_LOGTYPEUNSPECIFIED,+ AuditLogConfig_LogType_ADMINREAD,+ AuditLogConfig_LogType_DATAWRITE,+ AuditLogConfig_LogType_DATAREAD,+ ..+ ),++ -- * AutokeyConfig_State+ AutokeyConfig_State+ ( AutokeyConfig_State_STATEUNSPECIFIED,+ AutokeyConfig_State_Active,+ AutokeyConfig_State_KEYPROJECTDELETED,+ AutokeyConfig_State_Uninitialized,+ ..+ ),++ -- * CryptoKey_Purpose+ CryptoKey_Purpose+ ( CryptoKey_Purpose_CRYPTOKEYPURPOSEUNSPECIFIED,+ CryptoKey_Purpose_ENCRYPTDECRYPT,+ CryptoKey_Purpose_ASYMMETRICSIGN,+ CryptoKey_Purpose_ASYMMETRICDECRYPT,+ CryptoKey_Purpose_RAWENCRYPTDECRYPT,+ CryptoKey_Purpose_Mac,+ ..+ ),++ -- * CryptoKeyVersion_Algorithm+ CryptoKeyVersion_Algorithm+ ( CryptoKeyVersion_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ CryptoKeyVersion_Algorithm_GOOGLESYMMETRICENCRYPTION,+ CryptoKeyVersion_Algorithm_AES128GCM,+ CryptoKeyVersion_Algorithm_AES256GCM,+ CryptoKeyVersion_Algorithm_AES128CBC,+ CryptoKeyVersion_Algorithm_AES256CBC,+ CryptoKeyVersion_Algorithm_AES128CTR,+ CryptoKeyVersion_Algorithm_AES256CTR,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ CryptoKeyVersion_Algorithm_EC_SIGN_P256_SHA256,+ CryptoKeyVersion_Algorithm_EC_SIGN_P384_SHA384,+ CryptoKeyVersion_Algorithm_EC_SIGN_SECP256K1_SHA256,+ CryptoKeyVersion_Algorithm_EC_SIGN_ED25519,+ CryptoKeyVersion_Algorithm_HMAC_SHA256,+ CryptoKeyVersion_Algorithm_HMAC_SHA1,+ CryptoKeyVersion_Algorithm_HMAC_SHA384,+ CryptoKeyVersion_Algorithm_HMAC_SHA512,+ CryptoKeyVersion_Algorithm_HMAC_SHA224,+ CryptoKeyVersion_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ CryptoKeyVersion_Algorithm_PQ_SIGN_ML_DSA_65,+ CryptoKeyVersion_Algorithm_PQSIGNSLHDSASHA2128S,+ ..+ ),++ -- * CryptoKeyVersion_ProtectionLevel+ CryptoKeyVersion_ProtectionLevel+ ( CryptoKeyVersion_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ CryptoKeyVersion_ProtectionLevel_Software,+ CryptoKeyVersion_ProtectionLevel_Hsm,+ CryptoKeyVersion_ProtectionLevel_External,+ CryptoKeyVersion_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * CryptoKeyVersion_State+ CryptoKeyVersion_State+ ( CryptoKeyVersion_State_CRYPTOKEYVERSIONSTATEUNSPECIFIED,+ CryptoKeyVersion_State_PENDINGGENERATION,+ CryptoKeyVersion_State_Enabled,+ CryptoKeyVersion_State_Disabled,+ CryptoKeyVersion_State_Destroyed,+ CryptoKeyVersion_State_DESTROYSCHEDULED,+ CryptoKeyVersion_State_PENDINGIMPORT,+ CryptoKeyVersion_State_IMPORTFAILED,+ CryptoKeyVersion_State_GENERATIONFAILED,+ CryptoKeyVersion_State_PENDINGEXTERNALDESTRUCTION,+ CryptoKeyVersion_State_EXTERNALDESTRUCTIONFAILED,+ ..+ ),++ -- * CryptoKeyVersionTemplate_Algorithm+ CryptoKeyVersionTemplate_Algorithm+ ( CryptoKeyVersionTemplate_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ CryptoKeyVersionTemplate_Algorithm_GOOGLESYMMETRICENCRYPTION,+ CryptoKeyVersionTemplate_Algorithm_AES128GCM,+ CryptoKeyVersionTemplate_Algorithm_AES256GCM,+ CryptoKeyVersionTemplate_Algorithm_AES128CBC,+ CryptoKeyVersionTemplate_Algorithm_AES256CBC,+ CryptoKeyVersionTemplate_Algorithm_AES128CTR,+ CryptoKeyVersionTemplate_Algorithm_AES256CTR,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P256_SHA256,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P384_SHA384,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_SECP256K1_SHA256,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_ED25519,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA256,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA1,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA384,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA512,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA224,+ CryptoKeyVersionTemplate_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ CryptoKeyVersionTemplate_Algorithm_PQ_SIGN_ML_DSA_65,+ CryptoKeyVersionTemplate_Algorithm_PQSIGNSLHDSASHA2128S,+ ..+ ),++ -- * CryptoKeyVersionTemplate_ProtectionLevel+ CryptoKeyVersionTemplate_ProtectionLevel+ ( CryptoKeyVersionTemplate_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ CryptoKeyVersionTemplate_ProtectionLevel_Software,+ CryptoKeyVersionTemplate_ProtectionLevel_Hsm,+ CryptoKeyVersionTemplate_ProtectionLevel_External,+ CryptoKeyVersionTemplate_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * DecryptResponse_ProtectionLevel+ DecryptResponse_ProtectionLevel+ ( DecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ DecryptResponse_ProtectionLevel_Software,+ DecryptResponse_ProtectionLevel_Hsm,+ DecryptResponse_ProtectionLevel_External,+ DecryptResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * EkmConnection_KeyManagementMode+ EkmConnection_KeyManagementMode+ ( EkmConnection_KeyManagementMode_KEYMANAGEMENTMODEUNSPECIFIED,+ EkmConnection_KeyManagementMode_Manual,+ EkmConnection_KeyManagementMode_CLOUDKMS,+ ..+ ),++ -- * EncryptResponse_ProtectionLevel+ EncryptResponse_ProtectionLevel+ ( EncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ EncryptResponse_ProtectionLevel_Software,+ EncryptResponse_ProtectionLevel_Hsm,+ EncryptResponse_ProtectionLevel_External,+ EncryptResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * GenerateRandomBytesRequest_ProtectionLevel+ GenerateRandomBytesRequest_ProtectionLevel+ ( GenerateRandomBytesRequest_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ GenerateRandomBytesRequest_ProtectionLevel_Software,+ GenerateRandomBytesRequest_ProtectionLevel_Hsm,+ GenerateRandomBytesRequest_ProtectionLevel_External,+ GenerateRandomBytesRequest_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * ImportCryptoKeyVersionRequest_Algorithm+ ImportCryptoKeyVersionRequest_Algorithm+ ( ImportCryptoKeyVersionRequest_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ ImportCryptoKeyVersionRequest_Algorithm_GOOGLESYMMETRICENCRYPTION,+ ImportCryptoKeyVersionRequest_Algorithm_AES128GCM,+ ImportCryptoKeyVersionRequest_Algorithm_AES256GCM,+ ImportCryptoKeyVersionRequest_Algorithm_AES128CBC,+ ImportCryptoKeyVersionRequest_Algorithm_AES256CBC,+ ImportCryptoKeyVersionRequest_Algorithm_AES128CTR,+ ImportCryptoKeyVersionRequest_Algorithm_AES256CTR,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P256_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P384_SHA384,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_SECP256K1_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_ED25519,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA384,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA224,+ ImportCryptoKeyVersionRequest_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ ImportCryptoKeyVersionRequest_Algorithm_PQ_SIGN_ML_DSA_65,+ ImportCryptoKeyVersionRequest_Algorithm_PQSIGNSLHDSASHA2128S,+ ..+ ),++ -- * ImportJob_ImportMethod+ ImportJob_ImportMethod+ ( ImportJob_ImportMethod_IMPORTMETHODUNSPECIFIED,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA1_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA1_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA256_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA256_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA256,+ ..+ ),++ -- * ImportJob_ProtectionLevel+ ImportJob_ProtectionLevel+ ( ImportJob_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ ImportJob_ProtectionLevel_Software,+ ImportJob_ProtectionLevel_Hsm,+ ImportJob_ProtectionLevel_External,+ ImportJob_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * ImportJob_State+ ImportJob_State+ ( ImportJob_State_IMPORTJOBSTATEUNSPECIFIED,+ ImportJob_State_PENDINGGENERATION,+ ImportJob_State_Active,+ ImportJob_State_Expired,+ ..+ ),++ -- * KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+ ( KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONUNSPECIFIED,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDSUPPORT,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSERVICE,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_THIRDPARTYDATAREQUEST,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDREVIEW,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDACCESS,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSYSTEMOPERATION,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONNOTEXPECTED,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDCUSTOMERINITIATEDACCESS,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDGOOGLEINITIATEDSYSTEMOPERATION,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLERESPONSETOPRODUCTIONALERT,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERAUTHORIZEDWORKFLOWSERVICING,+ ..+ ),++ -- * KeyOperationAttestation_Format+ KeyOperationAttestation_Format+ ( KeyOperationAttestation_Format_ATTESTATIONFORMATUNSPECIFIED,+ KeyOperationAttestation_Format_CAVIUMV1COMPRESSED,+ KeyOperationAttestation_Format_CAVIUMV2COMPRESSED,+ ..+ ),++ -- * MacSignResponse_ProtectionLevel+ MacSignResponse_ProtectionLevel+ ( MacSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ MacSignResponse_ProtectionLevel_Software,+ MacSignResponse_ProtectionLevel_Hsm,+ MacSignResponse_ProtectionLevel_External,+ MacSignResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * MacVerifyResponse_ProtectionLevel+ MacVerifyResponse_ProtectionLevel+ ( MacVerifyResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ MacVerifyResponse_ProtectionLevel_Software,+ MacVerifyResponse_ProtectionLevel_Hsm,+ MacVerifyResponse_ProtectionLevel_External,+ MacVerifyResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * PublicKey_Algorithm+ PublicKey_Algorithm+ ( PublicKey_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ PublicKey_Algorithm_GOOGLESYMMETRICENCRYPTION,+ PublicKey_Algorithm_AES128GCM,+ PublicKey_Algorithm_AES256GCM,+ PublicKey_Algorithm_AES128CBC,+ PublicKey_Algorithm_AES256CBC,+ PublicKey_Algorithm_AES128CTR,+ PublicKey_Algorithm_AES256CTR,+ PublicKey_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ PublicKey_Algorithm_EC_SIGN_P256_SHA256,+ PublicKey_Algorithm_EC_SIGN_P384_SHA384,+ PublicKey_Algorithm_EC_SIGN_SECP256K1_SHA256,+ PublicKey_Algorithm_EC_SIGN_ED25519,+ PublicKey_Algorithm_HMAC_SHA256,+ PublicKey_Algorithm_HMAC_SHA1,+ PublicKey_Algorithm_HMAC_SHA384,+ PublicKey_Algorithm_HMAC_SHA512,+ PublicKey_Algorithm_HMAC_SHA224,+ PublicKey_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ PublicKey_Algorithm_PQ_SIGN_ML_DSA_65,+ PublicKey_Algorithm_PQSIGNSLHDSASHA2128S,+ ..+ ),++ -- * PublicKey_ProtectionLevel+ PublicKey_ProtectionLevel+ ( PublicKey_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ PublicKey_ProtectionLevel_Software,+ PublicKey_ProtectionLevel_Hsm,+ PublicKey_ProtectionLevel_External,+ PublicKey_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * PublicKey_PublicKeyFormat+ PublicKey_PublicKeyFormat+ ( PublicKey_PublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED,+ PublicKey_PublicKeyFormat_Pem,+ PublicKey_PublicKeyFormat_NISTPQC,+ ..+ ),++ -- * RawDecryptResponse_ProtectionLevel+ RawDecryptResponse_ProtectionLevel+ ( RawDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ RawDecryptResponse_ProtectionLevel_Software,+ RawDecryptResponse_ProtectionLevel_Hsm,+ RawDecryptResponse_ProtectionLevel_External,+ RawDecryptResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * RawEncryptResponse_ProtectionLevel+ RawEncryptResponse_ProtectionLevel+ ( RawEncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ RawEncryptResponse_ProtectionLevel_Software,+ RawEncryptResponse_ProtectionLevel_Hsm,+ RawEncryptResponse_ProtectionLevel_External,+ RawEncryptResponse_ProtectionLevel_EXTERNALVPC,+ ..+ ),++ -- * ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ ( ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_Pem,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_NISTPQC,+ ..+ ),++ -- * ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ ( ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_CRYPTOKEYVERSIONVIEWUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_Full,+ ..+ ),++ -- * ProjectsLocationsKeyRingsCryptoKeysListVersionView+ ProjectsLocationsKeyRingsCryptoKeysListVersionView+ ( ProjectsLocationsKeyRingsCryptoKeysListVersionView_CRYPTOKEYVERSIONVIEWUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysListVersionView_Full,+ ..+ ),+ )+where++import Gogol.Prelude qualified as Core++-- | V1 error format.+newtype Xgafv = Xgafv {fromXgafv :: 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+ )++-- | v1 error format+pattern Xgafv_1 :: Xgafv+pattern Xgafv_1 = Xgafv "1"++-- | v2 error format+pattern Xgafv_2 :: Xgafv+pattern Xgafv_2 = Xgafv "2"++{-# COMPLETE+ Xgafv_1,+ Xgafv_2,+ Xgafv+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+newtype AsymmetricDecryptResponse_ProtectionLevel = AsymmetricDecryptResponse_ProtectionLevel {fromAsymmetricDecryptResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern AsymmetricDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: AsymmetricDecryptResponse_ProtectionLevel+pattern AsymmetricDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = AsymmetricDecryptResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern AsymmetricDecryptResponse_ProtectionLevel_Software :: AsymmetricDecryptResponse_ProtectionLevel+pattern AsymmetricDecryptResponse_ProtectionLevel_Software = AsymmetricDecryptResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern AsymmetricDecryptResponse_ProtectionLevel_Hsm :: AsymmetricDecryptResponse_ProtectionLevel+pattern AsymmetricDecryptResponse_ProtectionLevel_Hsm = AsymmetricDecryptResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern AsymmetricDecryptResponse_ProtectionLevel_External :: AsymmetricDecryptResponse_ProtectionLevel+pattern AsymmetricDecryptResponse_ProtectionLevel_External = AsymmetricDecryptResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern AsymmetricDecryptResponse_ProtectionLevel_EXTERNALVPC :: AsymmetricDecryptResponse_ProtectionLevel+pattern AsymmetricDecryptResponse_ProtectionLevel_EXTERNALVPC = AsymmetricDecryptResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ AsymmetricDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ AsymmetricDecryptResponse_ProtectionLevel_Software,+ AsymmetricDecryptResponse_ProtectionLevel_Hsm,+ AsymmetricDecryptResponse_ProtectionLevel_External,+ AsymmetricDecryptResponse_ProtectionLevel_EXTERNALVPC,+ AsymmetricDecryptResponse_ProtectionLevel+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used for signing.+newtype AsymmetricSignResponse_ProtectionLevel = AsymmetricSignResponse_ProtectionLevel {fromAsymmetricSignResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern AsymmetricSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: AsymmetricSignResponse_ProtectionLevel+pattern AsymmetricSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = AsymmetricSignResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern AsymmetricSignResponse_ProtectionLevel_Software :: AsymmetricSignResponse_ProtectionLevel+pattern AsymmetricSignResponse_ProtectionLevel_Software = AsymmetricSignResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern AsymmetricSignResponse_ProtectionLevel_Hsm :: AsymmetricSignResponse_ProtectionLevel+pattern AsymmetricSignResponse_ProtectionLevel_Hsm = AsymmetricSignResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern AsymmetricSignResponse_ProtectionLevel_External :: AsymmetricSignResponse_ProtectionLevel+pattern AsymmetricSignResponse_ProtectionLevel_External = AsymmetricSignResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern AsymmetricSignResponse_ProtectionLevel_EXTERNALVPC :: AsymmetricSignResponse_ProtectionLevel+pattern AsymmetricSignResponse_ProtectionLevel_EXTERNALVPC = AsymmetricSignResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ AsymmetricSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ AsymmetricSignResponse_ProtectionLevel_Software,+ AsymmetricSignResponse_ProtectionLevel_Hsm,+ AsymmetricSignResponse_ProtectionLevel_External,+ AsymmetricSignResponse_ProtectionLevel_EXTERNALVPC,+ AsymmetricSignResponse_ProtectionLevel+ #-}++-- | The log type that this config enables.+newtype AuditLogConfig_LogType = AuditLogConfig_LogType {fromAuditLogConfig_LogType :: 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+ )++-- | Default case. Should never be this.+pattern AuditLogConfig_LogType_LOGTYPEUNSPECIFIED :: AuditLogConfig_LogType+pattern AuditLogConfig_LogType_LOGTYPEUNSPECIFIED = AuditLogConfig_LogType "LOG_TYPE_UNSPECIFIED"++-- | Admin reads. Example: CloudIAM getIamPolicy+pattern AuditLogConfig_LogType_ADMINREAD :: AuditLogConfig_LogType+pattern AuditLogConfig_LogType_ADMINREAD = AuditLogConfig_LogType "ADMIN_READ"++-- | Data writes. Example: CloudSQL Users create+pattern AuditLogConfig_LogType_DATAWRITE :: AuditLogConfig_LogType+pattern AuditLogConfig_LogType_DATAWRITE = AuditLogConfig_LogType "DATA_WRITE"++-- | Data reads. Example: CloudSQL Users list+pattern AuditLogConfig_LogType_DATAREAD :: AuditLogConfig_LogType+pattern AuditLogConfig_LogType_DATAREAD = AuditLogConfig_LogType "DATA_READ"++{-# COMPLETE+ AuditLogConfig_LogType_LOGTYPEUNSPECIFIED,+ AuditLogConfig_LogType_ADMINREAD,+ AuditLogConfig_LogType_DATAWRITE,+ AuditLogConfig_LogType_DATAREAD,+ AuditLogConfig_LogType+ #-}++-- | Output only. The state for the AutokeyConfig.+newtype AutokeyConfig_State = AutokeyConfig_State {fromAutokeyConfig_State :: 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+ )++-- | The state of the AutokeyConfig is unspecified.+pattern AutokeyConfig_State_STATEUNSPECIFIED :: AutokeyConfig_State+pattern AutokeyConfig_State_STATEUNSPECIFIED = AutokeyConfig_State "STATE_UNSPECIFIED"++-- | The AutokeyConfig is currently active.+pattern AutokeyConfig_State_Active :: AutokeyConfig_State+pattern AutokeyConfig_State_Active = AutokeyConfig_State "ACTIVE"++-- | A previously configured key project has been deleted and the current AutokeyConfig is unusable.+pattern AutokeyConfig_State_KEYPROJECTDELETED :: AutokeyConfig_State+pattern AutokeyConfig_State_KEYPROJECTDELETED = AutokeyConfig_State "KEY_PROJECT_DELETED"++-- | The AutokeyConfig is not yet initialized or has been reset to its default uninitialized state.+pattern AutokeyConfig_State_Uninitialized :: AutokeyConfig_State+pattern AutokeyConfig_State_Uninitialized = AutokeyConfig_State "UNINITIALIZED"++{-# COMPLETE+ AutokeyConfig_State_STATEUNSPECIFIED,+ AutokeyConfig_State_Active,+ AutokeyConfig_State_KEYPROJECTDELETED,+ AutokeyConfig_State_Uninitialized,+ AutokeyConfig_State+ #-}++-- | Immutable. The immutable purpose of this CryptoKey.+newtype CryptoKey_Purpose = CryptoKey_Purpose {fromCryptoKey_Purpose :: 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+ )++-- | Not specified.+pattern CryptoKey_Purpose_CRYPTOKEYPURPOSEUNSPECIFIED :: CryptoKey_Purpose+pattern CryptoKey_Purpose_CRYPTOKEYPURPOSEUNSPECIFIED = CryptoKey_Purpose "CRYPTO_KEY_PURPOSE_UNSPECIFIED"++-- | CryptoKeys with this purpose may be used with Encrypt and Decrypt.+pattern CryptoKey_Purpose_ENCRYPTDECRYPT :: CryptoKey_Purpose+pattern CryptoKey_Purpose_ENCRYPTDECRYPT = CryptoKey_Purpose "ENCRYPT_DECRYPT"++-- | CryptoKeys with this purpose may be used with AsymmetricSign and GetPublicKey.+pattern CryptoKey_Purpose_ASYMMETRICSIGN :: CryptoKey_Purpose+pattern CryptoKey_Purpose_ASYMMETRICSIGN = CryptoKey_Purpose "ASYMMETRIC_SIGN"++-- | CryptoKeys with this purpose may be used with AsymmetricDecrypt and GetPublicKey.+pattern CryptoKey_Purpose_ASYMMETRICDECRYPT :: CryptoKey_Purpose+pattern CryptoKey_Purpose_ASYMMETRICDECRYPT = CryptoKey_Purpose "ASYMMETRIC_DECRYPT"++-- | CryptoKeys with this purpose may be used with RawEncrypt and RawDecrypt. This purpose is meant to be used for interoperable symmetric encryption and does not support automatic CryptoKey rotation.+pattern CryptoKey_Purpose_RAWENCRYPTDECRYPT :: CryptoKey_Purpose+pattern CryptoKey_Purpose_RAWENCRYPTDECRYPT = CryptoKey_Purpose "RAW_ENCRYPT_DECRYPT"++-- | CryptoKeys with this purpose may be used with MacSign.+pattern CryptoKey_Purpose_Mac :: CryptoKey_Purpose+pattern CryptoKey_Purpose_Mac = CryptoKey_Purpose "MAC"++{-# COMPLETE+ CryptoKey_Purpose_CRYPTOKEYPURPOSEUNSPECIFIED,+ CryptoKey_Purpose_ENCRYPTDECRYPT,+ CryptoKey_Purpose_ASYMMETRICSIGN,+ CryptoKey_Purpose_ASYMMETRICDECRYPT,+ CryptoKey_Purpose_RAWENCRYPTDECRYPT,+ CryptoKey_Purpose_Mac,+ CryptoKey_Purpose+ #-}++-- | Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion supports.+newtype CryptoKeyVersion_Algorithm = CryptoKeyVersion_Algorithm {fromCryptoKeyVersion_Algorithm :: 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+ )++-- | Not specified.+pattern CryptoKeyVersion_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED = CryptoKeyVersion_Algorithm "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"++-- | Creates symmetric encryption keys.+pattern CryptoKeyVersion_Algorithm_GOOGLESYMMETRICENCRYPTION :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_GOOGLESYMMETRICENCRYPTION = CryptoKeyVersion_Algorithm "GOOGLE_SYMMETRIC_ENCRYPTION"++-- | AES-GCM (Galois Counter Mode) using 128-bit keys.+pattern CryptoKeyVersion_Algorithm_AES128GCM :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES128GCM = CryptoKeyVersion_Algorithm "AES_128_GCM"++-- | AES-GCM (Galois Counter Mode) using 256-bit keys.+pattern CryptoKeyVersion_Algorithm_AES256GCM :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES256GCM = CryptoKeyVersion_Algorithm "AES_256_GCM"++-- | AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.+pattern CryptoKeyVersion_Algorithm_AES128CBC :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES128CBC = CryptoKeyVersion_Algorithm "AES_128_CBC"++-- | AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.+pattern CryptoKeyVersion_Algorithm_AES256CBC :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES256CBC = CryptoKeyVersion_Algorithm "AES_256_CBC"++-- | AES-CTR (Counter Mode) using 128-bit keys.+pattern CryptoKeyVersion_Algorithm_AES128CTR :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES128CTR = CryptoKeyVersion_Algorithm "AES_128_CTR"++-- | AES-CTR (Counter Mode) using 256-bit keys.+pattern CryptoKeyVersion_Algorithm_AES256CTR :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_AES256CTR = CryptoKeyVersion_Algorithm "AES_256_CTR"++-- | RSASSA-PSS 2048 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_2048_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_2048_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PSS_2048_SHA256"++-- | RSASSA-PSS 3072 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_3072_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_3072_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PSS_3072_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PSS_4096_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA512 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA512 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA512 = CryptoKeyVersion_Algorithm "RSA_SIGN_PSS_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PKCS1_2048_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PKCS1_3072_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 = CryptoKeyVersion_Algorithm "RSA_SIGN_PKCS1_4096_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 = CryptoKeyVersion_Algorithm "RSA_SIGN_PKCS1_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_2048 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_2048 = CryptoKeyVersion_Algorithm "RSA_SIGN_RAW_PKCS1_2048"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_3072 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_3072 = CryptoKeyVersion_Algorithm "RSA_SIGN_RAW_PKCS1_3072"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_4096 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_4096 = CryptoKeyVersion_Algorithm "RSA_SIGN_RAW_PKCS1_4096"++-- | RSAES-OAEP 2048 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_2048_SHA256"++-- | RSAES-OAEP 3072 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_3072_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA256 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_4096_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA512 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_4096_SHA512"++-- | RSAES-OAEP 2048 bit key with a SHA1 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_2048_SHA1"++-- | RSAES-OAEP 3072 bit key with a SHA1 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_3072_SHA1"++-- | RSAES-OAEP 4096 bit key with a SHA1 digest.+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 = CryptoKeyVersion_Algorithm "RSA_DECRYPT_OAEP_4096_SHA1"++-- | ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersion_Algorithm_EC_SIGN_P256_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_EC_SIGN_P256_SHA256 = CryptoKeyVersion_Algorithm "EC_SIGN_P256_SHA256"++-- | ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersion_Algorithm_EC_SIGN_P384_SHA384 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_EC_SIGN_P384_SHA384 = CryptoKeyVersion_Algorithm "EC_SIGN_P384_SHA384"++-- | ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersion_Algorithm_EC_SIGN_SECP256K1_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_EC_SIGN_SECP256K1_SHA256 = CryptoKeyVersion_Algorithm "EC_SIGN_SECP256K1_SHA256"++-- | EdDSA on the Curve25519 in pure mode (taking data as input).+pattern CryptoKeyVersion_Algorithm_EC_SIGN_ED25519 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_EC_SIGN_ED25519 = CryptoKeyVersion_Algorithm "EC_SIGN_ED25519"++-- | HMAC-SHA256 signing with a 256 bit key.+pattern CryptoKeyVersion_Algorithm_HMAC_SHA256 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_HMAC_SHA256 = CryptoKeyVersion_Algorithm "HMAC_SHA256"++-- | HMAC-SHA1 signing with a 160 bit key.+pattern CryptoKeyVersion_Algorithm_HMAC_SHA1 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_HMAC_SHA1 = CryptoKeyVersion_Algorithm "HMAC_SHA1"++-- | HMAC-SHA384 signing with a 384 bit key.+pattern CryptoKeyVersion_Algorithm_HMAC_SHA384 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_HMAC_SHA384 = CryptoKeyVersion_Algorithm "HMAC_SHA384"++-- | HMAC-SHA512 signing with a 512 bit key.+pattern CryptoKeyVersion_Algorithm_HMAC_SHA512 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_HMAC_SHA512 = CryptoKeyVersion_Algorithm "HMAC_SHA512"++-- | HMAC-SHA224 signing with a 224 bit key.+pattern CryptoKeyVersion_Algorithm_HMAC_SHA224 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_HMAC_SHA224 = CryptoKeyVersion_Algorithm "HMAC_SHA224"++-- | Algorithm representing symmetric encryption by an external key manager.+pattern CryptoKeyVersion_Algorithm_EXTERNALSYMMETRICENCRYPTION :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_EXTERNALSYMMETRICENCRYPTION = CryptoKeyVersion_Algorithm "EXTERNAL_SYMMETRIC_ENCRYPTION"++-- | The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.+pattern CryptoKeyVersion_Algorithm_PQ_SIGN_ML_DSA_65 :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_PQ_SIGN_ML_DSA_65 = CryptoKeyVersion_Algorithm "PQ_SIGN_ML_DSA_65"++-- | The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.+pattern CryptoKeyVersion_Algorithm_PQSIGNSLHDSASHA2128S :: CryptoKeyVersion_Algorithm+pattern CryptoKeyVersion_Algorithm_PQSIGNSLHDSASHA2128S = CryptoKeyVersion_Algorithm "PQ_SIGN_SLH_DSA_SHA2_128S"++{-# COMPLETE+ CryptoKeyVersion_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ CryptoKeyVersion_Algorithm_GOOGLESYMMETRICENCRYPTION,+ CryptoKeyVersion_Algorithm_AES128GCM,+ CryptoKeyVersion_Algorithm_AES256GCM,+ CryptoKeyVersion_Algorithm_AES128CBC,+ CryptoKeyVersion_Algorithm_AES256CBC,+ CryptoKeyVersion_Algorithm_AES128CTR,+ CryptoKeyVersion_Algorithm_AES256CTR,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ CryptoKeyVersion_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ CryptoKeyVersion_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ CryptoKeyVersion_Algorithm_EC_SIGN_P256_SHA256,+ CryptoKeyVersion_Algorithm_EC_SIGN_P384_SHA384,+ CryptoKeyVersion_Algorithm_EC_SIGN_SECP256K1_SHA256,+ CryptoKeyVersion_Algorithm_EC_SIGN_ED25519,+ CryptoKeyVersion_Algorithm_HMAC_SHA256,+ CryptoKeyVersion_Algorithm_HMAC_SHA1,+ CryptoKeyVersion_Algorithm_HMAC_SHA384,+ CryptoKeyVersion_Algorithm_HMAC_SHA512,+ CryptoKeyVersion_Algorithm_HMAC_SHA224,+ CryptoKeyVersion_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ CryptoKeyVersion_Algorithm_PQ_SIGN_ML_DSA_65,+ CryptoKeyVersion_Algorithm_PQSIGNSLHDSASHA2128S,+ CryptoKeyVersion_Algorithm+ #-}++-- | Output only. The ProtectionLevel describing how crypto operations are performed with this CryptoKeyVersion.+newtype CryptoKeyVersion_ProtectionLevel = CryptoKeyVersion_ProtectionLevel {fromCryptoKeyVersion_ProtectionLevel :: 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+ )++-- | Not specified.+pattern CryptoKeyVersion_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: CryptoKeyVersion_ProtectionLevel+pattern CryptoKeyVersion_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = CryptoKeyVersion_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern CryptoKeyVersion_ProtectionLevel_Software :: CryptoKeyVersion_ProtectionLevel+pattern CryptoKeyVersion_ProtectionLevel_Software = CryptoKeyVersion_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern CryptoKeyVersion_ProtectionLevel_Hsm :: CryptoKeyVersion_ProtectionLevel+pattern CryptoKeyVersion_ProtectionLevel_Hsm = CryptoKeyVersion_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern CryptoKeyVersion_ProtectionLevel_External :: CryptoKeyVersion_ProtectionLevel+pattern CryptoKeyVersion_ProtectionLevel_External = CryptoKeyVersion_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern CryptoKeyVersion_ProtectionLevel_EXTERNALVPC :: CryptoKeyVersion_ProtectionLevel+pattern CryptoKeyVersion_ProtectionLevel_EXTERNALVPC = CryptoKeyVersion_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ CryptoKeyVersion_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ CryptoKeyVersion_ProtectionLevel_Software,+ CryptoKeyVersion_ProtectionLevel_Hsm,+ CryptoKeyVersion_ProtectionLevel_External,+ CryptoKeyVersion_ProtectionLevel_EXTERNALVPC,+ CryptoKeyVersion_ProtectionLevel+ #-}++-- | The current state of the CryptoKeyVersion.+newtype CryptoKeyVersion_State = CryptoKeyVersion_State {fromCryptoKeyVersion_State :: 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+ )++-- | Not specified.+pattern CryptoKeyVersion_State_CRYPTOKEYVERSIONSTATEUNSPECIFIED :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_CRYPTOKEYVERSIONSTATEUNSPECIFIED = CryptoKeyVersion_State "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED"++-- | This version is still being generated. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.+pattern CryptoKeyVersion_State_PENDINGGENERATION :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_PENDINGGENERATION = CryptoKeyVersion_State "PENDING_GENERATION"++-- | This version may be used for cryptographic operations.+pattern CryptoKeyVersion_State_Enabled :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_Enabled = CryptoKeyVersion_State "ENABLED"++-- | This version may not be used, but the key material is still available, and the version can be placed back into the ENABLED state.+pattern CryptoKeyVersion_State_Disabled :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_Disabled = CryptoKeyVersion_State "DISABLED"++-- | This key material of this version is destroyed and no longer stored. This version may only become ENABLED again if this version is reimport_eligible and the original key material is reimported with a call to KeyManagementService.ImportCryptoKeyVersion.+pattern CryptoKeyVersion_State_Destroyed :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_Destroyed = CryptoKeyVersion_State "DESTROYED"++-- | This version is scheduled for destruction, and will be destroyed soon. Call RestoreCryptoKeyVersion to put it back into the DISABLED state.+pattern CryptoKeyVersion_State_DESTROYSCHEDULED :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_DESTROYSCHEDULED = CryptoKeyVersion_State "DESTROY_SCHEDULED"++-- | This version is still being imported. It may not be used, enabled, disabled, or destroyed yet. Cloud KMS will automatically mark this version ENABLED as soon as the version is ready.+pattern CryptoKeyVersion_State_PENDINGIMPORT :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_PENDINGIMPORT = CryptoKeyVersion_State "PENDING_IMPORT"++-- | This version was not imported successfully. It may not be used, enabled, disabled, or destroyed. The submitted key material has been discarded. Additional details can be found in CryptoKeyVersion.import/failure/reason.+pattern CryptoKeyVersion_State_IMPORTFAILED :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_IMPORTFAILED = CryptoKeyVersion_State "IMPORT_FAILED"++-- | This version was not generated successfully. It may not be used, enabled, disabled, or destroyed. Additional details can be found in CryptoKeyVersion.generation/failure/reason.+pattern CryptoKeyVersion_State_GENERATIONFAILED :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_GENERATIONFAILED = CryptoKeyVersion_State "GENERATION_FAILED"++-- | This version was destroyed, and it may not be used or enabled again. Cloud KMS is waiting for the corresponding key material residing in an external key manager to be destroyed.+pattern CryptoKeyVersion_State_PENDINGEXTERNALDESTRUCTION :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_PENDINGEXTERNALDESTRUCTION = CryptoKeyVersion_State "PENDING_EXTERNAL_DESTRUCTION"++-- | This version was destroyed, and it may not be used or enabled again. However, Cloud KMS could not confirm that the corresponding key material residing in an external key manager was destroyed. Additional details can be found in CryptoKeyVersion.external/destruction/failure_reason.+pattern CryptoKeyVersion_State_EXTERNALDESTRUCTIONFAILED :: CryptoKeyVersion_State+pattern CryptoKeyVersion_State_EXTERNALDESTRUCTIONFAILED = CryptoKeyVersion_State "EXTERNAL_DESTRUCTION_FAILED"++{-# COMPLETE+ CryptoKeyVersion_State_CRYPTOKEYVERSIONSTATEUNSPECIFIED,+ CryptoKeyVersion_State_PENDINGGENERATION,+ CryptoKeyVersion_State_Enabled,+ CryptoKeyVersion_State_Disabled,+ CryptoKeyVersion_State_Destroyed,+ CryptoKeyVersion_State_DESTROYSCHEDULED,+ CryptoKeyVersion_State_PENDINGIMPORT,+ CryptoKeyVersion_State_IMPORTFAILED,+ CryptoKeyVersion_State_GENERATIONFAILED,+ CryptoKeyVersion_State_PENDINGEXTERNALDESTRUCTION,+ CryptoKeyVersion_State_EXTERNALDESTRUCTIONFAILED,+ CryptoKeyVersion_State+ #-}++-- | Required. Algorithm to use when creating a CryptoKeyVersion based on this template. For backwards compatibility, GOOGLE/SYMMETRIC/ENCRYPTION is implied if both this field is omitted and CryptoKey.purpose is ENCRYPT_DECRYPT.+newtype CryptoKeyVersionTemplate_Algorithm = CryptoKeyVersionTemplate_Algorithm {fromCryptoKeyVersionTemplate_Algorithm :: 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+ )++-- | Not specified.+pattern CryptoKeyVersionTemplate_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED = CryptoKeyVersionTemplate_Algorithm "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"++-- | Creates symmetric encryption keys.+pattern CryptoKeyVersionTemplate_Algorithm_GOOGLESYMMETRICENCRYPTION :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_GOOGLESYMMETRICENCRYPTION = CryptoKeyVersionTemplate_Algorithm "GOOGLE_SYMMETRIC_ENCRYPTION"++-- | AES-GCM (Galois Counter Mode) using 128-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES128GCM :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES128GCM = CryptoKeyVersionTemplate_Algorithm "AES_128_GCM"++-- | AES-GCM (Galois Counter Mode) using 256-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES256GCM :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES256GCM = CryptoKeyVersionTemplate_Algorithm "AES_256_GCM"++-- | AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES128CBC :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES128CBC = CryptoKeyVersionTemplate_Algorithm "AES_128_CBC"++-- | AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES256CBC :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES256CBC = CryptoKeyVersionTemplate_Algorithm "AES_256_CBC"++-- | AES-CTR (Counter Mode) using 128-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES128CTR :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES128CTR = CryptoKeyVersionTemplate_Algorithm "AES_128_CTR"++-- | AES-CTR (Counter Mode) using 256-bit keys.+pattern CryptoKeyVersionTemplate_Algorithm_AES256CTR :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_AES256CTR = CryptoKeyVersionTemplate_Algorithm "AES_256_CTR"++-- | RSASSA-PSS 2048 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_2048_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_2048_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PSS_2048_SHA256"++-- | RSASSA-PSS 3072 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_3072_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_3072_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PSS_3072_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PSS_4096_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA512 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA512 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA512 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PSS_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PKCS1_2048_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PKCS1_3072_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PKCS1_4096_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_PKCS1_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_2048 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_2048 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_RAW_PKCS1_2048"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_3072 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_3072 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_RAW_PKCS1_3072"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_4096 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_4096 = CryptoKeyVersionTemplate_Algorithm "RSA_SIGN_RAW_PKCS1_4096"++-- | RSAES-OAEP 2048 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_2048_SHA256"++-- | RSAES-OAEP 3072 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_3072_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA256 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_4096_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA512 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_4096_SHA512"++-- | RSAES-OAEP 2048 bit key with a SHA1 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_2048_SHA1"++-- | RSAES-OAEP 3072 bit key with a SHA1 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_3072_SHA1"++-- | RSAES-OAEP 4096 bit key with a SHA1 digest.+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 = CryptoKeyVersionTemplate_Algorithm "RSA_DECRYPT_OAEP_4096_SHA1"++-- | ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P256_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P256_SHA256 = CryptoKeyVersionTemplate_Algorithm "EC_SIGN_P256_SHA256"++-- | ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P384_SHA384 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P384_SHA384 = CryptoKeyVersionTemplate_Algorithm "EC_SIGN_P384_SHA384"++-- | ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_SECP256K1_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_SECP256K1_SHA256 = CryptoKeyVersionTemplate_Algorithm "EC_SIGN_SECP256K1_SHA256"++-- | EdDSA on the Curve25519 in pure mode (taking data as input).+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_ED25519 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_EC_SIGN_ED25519 = CryptoKeyVersionTemplate_Algorithm "EC_SIGN_ED25519"++-- | HMAC-SHA256 signing with a 256 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA256 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA256 = CryptoKeyVersionTemplate_Algorithm "HMAC_SHA256"++-- | HMAC-SHA1 signing with a 160 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA1 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA1 = CryptoKeyVersionTemplate_Algorithm "HMAC_SHA1"++-- | HMAC-SHA384 signing with a 384 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA384 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA384 = CryptoKeyVersionTemplate_Algorithm "HMAC_SHA384"++-- | HMAC-SHA512 signing with a 512 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA512 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA512 = CryptoKeyVersionTemplate_Algorithm "HMAC_SHA512"++-- | HMAC-SHA224 signing with a 224 bit key.+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA224 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_HMAC_SHA224 = CryptoKeyVersionTemplate_Algorithm "HMAC_SHA224"++-- | Algorithm representing symmetric encryption by an external key manager.+pattern CryptoKeyVersionTemplate_Algorithm_EXTERNALSYMMETRICENCRYPTION :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_EXTERNALSYMMETRICENCRYPTION = CryptoKeyVersionTemplate_Algorithm "EXTERNAL_SYMMETRIC_ENCRYPTION"++-- | The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.+pattern CryptoKeyVersionTemplate_Algorithm_PQ_SIGN_ML_DSA_65 :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_PQ_SIGN_ML_DSA_65 = CryptoKeyVersionTemplate_Algorithm "PQ_SIGN_ML_DSA_65"++-- | The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.+pattern CryptoKeyVersionTemplate_Algorithm_PQSIGNSLHDSASHA2128S :: CryptoKeyVersionTemplate_Algorithm+pattern CryptoKeyVersionTemplate_Algorithm_PQSIGNSLHDSASHA2128S = CryptoKeyVersionTemplate_Algorithm "PQ_SIGN_SLH_DSA_SHA2_128S"++{-# COMPLETE+ CryptoKeyVersionTemplate_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ CryptoKeyVersionTemplate_Algorithm_GOOGLESYMMETRICENCRYPTION,+ CryptoKeyVersionTemplate_Algorithm_AES128GCM,+ CryptoKeyVersionTemplate_Algorithm_AES256GCM,+ CryptoKeyVersionTemplate_Algorithm_AES128CBC,+ CryptoKeyVersionTemplate_Algorithm_AES256CBC,+ CryptoKeyVersionTemplate_Algorithm_AES128CTR,+ CryptoKeyVersionTemplate_Algorithm_AES256CTR,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ CryptoKeyVersionTemplate_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ CryptoKeyVersionTemplate_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P256_SHA256,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_P384_SHA384,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_SECP256K1_SHA256,+ CryptoKeyVersionTemplate_Algorithm_EC_SIGN_ED25519,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA256,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA1,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA384,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA512,+ CryptoKeyVersionTemplate_Algorithm_HMAC_SHA224,+ CryptoKeyVersionTemplate_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ CryptoKeyVersionTemplate_Algorithm_PQ_SIGN_ML_DSA_65,+ CryptoKeyVersionTemplate_Algorithm_PQSIGNSLHDSASHA2128S,+ CryptoKeyVersionTemplate_Algorithm+ #-}++-- | ProtectionLevel to use when creating a CryptoKeyVersion based on this template. Immutable. Defaults to SOFTWARE.+newtype CryptoKeyVersionTemplate_ProtectionLevel = CryptoKeyVersionTemplate_ProtectionLevel {fromCryptoKeyVersionTemplate_ProtectionLevel :: 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+ )++-- | Not specified.+pattern CryptoKeyVersionTemplate_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: CryptoKeyVersionTemplate_ProtectionLevel+pattern CryptoKeyVersionTemplate_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = CryptoKeyVersionTemplate_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern CryptoKeyVersionTemplate_ProtectionLevel_Software :: CryptoKeyVersionTemplate_ProtectionLevel+pattern CryptoKeyVersionTemplate_ProtectionLevel_Software = CryptoKeyVersionTemplate_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern CryptoKeyVersionTemplate_ProtectionLevel_Hsm :: CryptoKeyVersionTemplate_ProtectionLevel+pattern CryptoKeyVersionTemplate_ProtectionLevel_Hsm = CryptoKeyVersionTemplate_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern CryptoKeyVersionTemplate_ProtectionLevel_External :: CryptoKeyVersionTemplate_ProtectionLevel+pattern CryptoKeyVersionTemplate_ProtectionLevel_External = CryptoKeyVersionTemplate_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern CryptoKeyVersionTemplate_ProtectionLevel_EXTERNALVPC :: CryptoKeyVersionTemplate_ProtectionLevel+pattern CryptoKeyVersionTemplate_ProtectionLevel_EXTERNALVPC = CryptoKeyVersionTemplate_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ CryptoKeyVersionTemplate_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ CryptoKeyVersionTemplate_ProtectionLevel_Software,+ CryptoKeyVersionTemplate_ProtectionLevel_Hsm,+ CryptoKeyVersionTemplate_ProtectionLevel_External,+ CryptoKeyVersionTemplate_ProtectionLevel_EXTERNALVPC,+ CryptoKeyVersionTemplate_ProtectionLevel+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+newtype DecryptResponse_ProtectionLevel = DecryptResponse_ProtectionLevel {fromDecryptResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern DecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: DecryptResponse_ProtectionLevel+pattern DecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = DecryptResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern DecryptResponse_ProtectionLevel_Software :: DecryptResponse_ProtectionLevel+pattern DecryptResponse_ProtectionLevel_Software = DecryptResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern DecryptResponse_ProtectionLevel_Hsm :: DecryptResponse_ProtectionLevel+pattern DecryptResponse_ProtectionLevel_Hsm = DecryptResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern DecryptResponse_ProtectionLevel_External :: DecryptResponse_ProtectionLevel+pattern DecryptResponse_ProtectionLevel_External = DecryptResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern DecryptResponse_ProtectionLevel_EXTERNALVPC :: DecryptResponse_ProtectionLevel+pattern DecryptResponse_ProtectionLevel_EXTERNALVPC = DecryptResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ DecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ DecryptResponse_ProtectionLevel_Software,+ DecryptResponse_ProtectionLevel_Hsm,+ DecryptResponse_ProtectionLevel_External,+ DecryptResponse_ProtectionLevel_EXTERNALVPC,+ DecryptResponse_ProtectionLevel+ #-}++-- | Optional. Describes who can perform control plane operations on the EKM. If unset, this defaults to MANUAL.+newtype EkmConnection_KeyManagementMode = EkmConnection_KeyManagementMode {fromEkmConnection_KeyManagementMode :: 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+ )++-- | Not specified.+pattern EkmConnection_KeyManagementMode_KEYMANAGEMENTMODEUNSPECIFIED :: EkmConnection_KeyManagementMode+pattern EkmConnection_KeyManagementMode_KEYMANAGEMENTMODEUNSPECIFIED = EkmConnection_KeyManagementMode "KEY_MANAGEMENT_MODE_UNSPECIFIED"++-- | EKM-side key management operations on CryptoKeys created with this EkmConnection must be initiated from the EKM directly and cannot be performed from Cloud KMS. This means that: * When creating a CryptoKeyVersion associated with this EkmConnection, the caller must supply the key path of pre-existing external key material that will be linked to the CryptoKeyVersion. * Destruction of external key material cannot be requested via the Cloud KMS API and must be performed directly in the EKM. * Automatic rotation of key material is not supported.+pattern EkmConnection_KeyManagementMode_Manual :: EkmConnection_KeyManagementMode+pattern EkmConnection_KeyManagementMode_Manual = EkmConnection_KeyManagementMode "MANUAL"++-- | All CryptoKeys created with this EkmConnection use EKM-side key management operations initiated from Cloud KMS. This means that: * When a CryptoKeyVersion associated with this EkmConnection is created, the EKM automatically generates new key material and a new key path. The caller cannot supply the key path of pre-existing external key material. * Destruction of external key material associated with this EkmConnection can be requested by calling DestroyCryptoKeyVersion. * Automatic rotation of key material is supported.+pattern EkmConnection_KeyManagementMode_CLOUDKMS :: EkmConnection_KeyManagementMode+pattern EkmConnection_KeyManagementMode_CLOUDKMS = EkmConnection_KeyManagementMode "CLOUD_KMS"++{-# COMPLETE+ EkmConnection_KeyManagementMode_KEYMANAGEMENTMODEUNSPECIFIED,+ EkmConnection_KeyManagementMode_Manual,+ EkmConnection_KeyManagementMode_CLOUDKMS,+ EkmConnection_KeyManagementMode+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used in encryption.+newtype EncryptResponse_ProtectionLevel = EncryptResponse_ProtectionLevel {fromEncryptResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern EncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: EncryptResponse_ProtectionLevel+pattern EncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = EncryptResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern EncryptResponse_ProtectionLevel_Software :: EncryptResponse_ProtectionLevel+pattern EncryptResponse_ProtectionLevel_Software = EncryptResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern EncryptResponse_ProtectionLevel_Hsm :: EncryptResponse_ProtectionLevel+pattern EncryptResponse_ProtectionLevel_Hsm = EncryptResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern EncryptResponse_ProtectionLevel_External :: EncryptResponse_ProtectionLevel+pattern EncryptResponse_ProtectionLevel_External = EncryptResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern EncryptResponse_ProtectionLevel_EXTERNALVPC :: EncryptResponse_ProtectionLevel+pattern EncryptResponse_ProtectionLevel_EXTERNALVPC = EncryptResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ EncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ EncryptResponse_ProtectionLevel_Software,+ EncryptResponse_ProtectionLevel_Hsm,+ EncryptResponse_ProtectionLevel_External,+ EncryptResponse_ProtectionLevel_EXTERNALVPC,+ EncryptResponse_ProtectionLevel+ #-}++-- | The ProtectionLevel to use when generating the random data. Currently, only HSM protection level is supported.+newtype GenerateRandomBytesRequest_ProtectionLevel = GenerateRandomBytesRequest_ProtectionLevel {fromGenerateRandomBytesRequest_ProtectionLevel :: 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+ )++-- | Not specified.+pattern GenerateRandomBytesRequest_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: GenerateRandomBytesRequest_ProtectionLevel+pattern GenerateRandomBytesRequest_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = GenerateRandomBytesRequest_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern GenerateRandomBytesRequest_ProtectionLevel_Software :: GenerateRandomBytesRequest_ProtectionLevel+pattern GenerateRandomBytesRequest_ProtectionLevel_Software = GenerateRandomBytesRequest_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern GenerateRandomBytesRequest_ProtectionLevel_Hsm :: GenerateRandomBytesRequest_ProtectionLevel+pattern GenerateRandomBytesRequest_ProtectionLevel_Hsm = GenerateRandomBytesRequest_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern GenerateRandomBytesRequest_ProtectionLevel_External :: GenerateRandomBytesRequest_ProtectionLevel+pattern GenerateRandomBytesRequest_ProtectionLevel_External = GenerateRandomBytesRequest_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern GenerateRandomBytesRequest_ProtectionLevel_EXTERNALVPC :: GenerateRandomBytesRequest_ProtectionLevel+pattern GenerateRandomBytesRequest_ProtectionLevel_EXTERNALVPC = GenerateRandomBytesRequest_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ GenerateRandomBytesRequest_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ GenerateRandomBytesRequest_ProtectionLevel_Software,+ GenerateRandomBytesRequest_ProtectionLevel_Hsm,+ GenerateRandomBytesRequest_ProtectionLevel_External,+ GenerateRandomBytesRequest_ProtectionLevel_EXTERNALVPC,+ GenerateRandomBytesRequest_ProtectionLevel+ #-}++-- | Required. The algorithm of the key being imported. This does not need to match the version_template of the CryptoKey this version imports into.+newtype ImportCryptoKeyVersionRequest_Algorithm = ImportCryptoKeyVersionRequest_Algorithm {fromImportCryptoKeyVersionRequest_Algorithm :: 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+ )++-- | Not specified.+pattern ImportCryptoKeyVersionRequest_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED = ImportCryptoKeyVersionRequest_Algorithm "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"++-- | Creates symmetric encryption keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_GOOGLESYMMETRICENCRYPTION :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_GOOGLESYMMETRICENCRYPTION = ImportCryptoKeyVersionRequest_Algorithm "GOOGLE_SYMMETRIC_ENCRYPTION"++-- | AES-GCM (Galois Counter Mode) using 128-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128GCM :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128GCM = ImportCryptoKeyVersionRequest_Algorithm "AES_128_GCM"++-- | AES-GCM (Galois Counter Mode) using 256-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256GCM :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256GCM = ImportCryptoKeyVersionRequest_Algorithm "AES_256_GCM"++-- | AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128CBC :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128CBC = ImportCryptoKeyVersionRequest_Algorithm "AES_128_CBC"++-- | AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256CBC :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256CBC = ImportCryptoKeyVersionRequest_Algorithm "AES_256_CBC"++-- | AES-CTR (Counter Mode) using 128-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128CTR :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES128CTR = ImportCryptoKeyVersionRequest_Algorithm "AES_128_CTR"++-- | AES-CTR (Counter Mode) using 256-bit keys.+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256CTR :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_AES256CTR = ImportCryptoKeyVersionRequest_Algorithm "AES_256_CTR"++-- | RSASSA-PSS 2048 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_2048_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_2048_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PSS_2048_SHA256"++-- | RSASSA-PSS 3072 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_3072_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_3072_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PSS_3072_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PSS_4096_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA512 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA512 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA512 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PSS_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PKCS1_2048_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PKCS1_3072_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PKCS1_4096_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_PKCS1_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_2048 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_2048 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_RAW_PKCS1_2048"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_3072 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_3072 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_RAW_PKCS1_3072"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_4096 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_4096 = ImportCryptoKeyVersionRequest_Algorithm "RSA_SIGN_RAW_PKCS1_4096"++-- | RSAES-OAEP 2048 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_2048_SHA256"++-- | RSAES-OAEP 3072 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_3072_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA256 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_4096_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA512 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_4096_SHA512"++-- | RSAES-OAEP 2048 bit key with a SHA1 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_2048_SHA1"++-- | RSAES-OAEP 3072 bit key with a SHA1 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_3072_SHA1"++-- | RSAES-OAEP 4096 bit key with a SHA1 digest.+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 = ImportCryptoKeyVersionRequest_Algorithm "RSA_DECRYPT_OAEP_4096_SHA1"++-- | ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P256_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P256_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "EC_SIGN_P256_SHA256"++-- | ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P384_SHA384 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P384_SHA384 = ImportCryptoKeyVersionRequest_Algorithm "EC_SIGN_P384_SHA384"++-- | ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_SECP256K1_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_SECP256K1_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "EC_SIGN_SECP256K1_SHA256"++-- | EdDSA on the Curve25519 in pure mode (taking data as input).+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_ED25519 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_ED25519 = ImportCryptoKeyVersionRequest_Algorithm "EC_SIGN_ED25519"++-- | HMAC-SHA256 signing with a 256 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA256 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA256 = ImportCryptoKeyVersionRequest_Algorithm "HMAC_SHA256"++-- | HMAC-SHA1 signing with a 160 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA1 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA1 = ImportCryptoKeyVersionRequest_Algorithm "HMAC_SHA1"++-- | HMAC-SHA384 signing with a 384 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA384 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA384 = ImportCryptoKeyVersionRequest_Algorithm "HMAC_SHA384"++-- | HMAC-SHA512 signing with a 512 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA512 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA512 = ImportCryptoKeyVersionRequest_Algorithm "HMAC_SHA512"++-- | HMAC-SHA224 signing with a 224 bit key.+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA224 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA224 = ImportCryptoKeyVersionRequest_Algorithm "HMAC_SHA224"++-- | Algorithm representing symmetric encryption by an external key manager.+pattern ImportCryptoKeyVersionRequest_Algorithm_EXTERNALSYMMETRICENCRYPTION :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_EXTERNALSYMMETRICENCRYPTION = ImportCryptoKeyVersionRequest_Algorithm "EXTERNAL_SYMMETRIC_ENCRYPTION"++-- | The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.+pattern ImportCryptoKeyVersionRequest_Algorithm_PQ_SIGN_ML_DSA_65 :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_PQ_SIGN_ML_DSA_65 = ImportCryptoKeyVersionRequest_Algorithm "PQ_SIGN_ML_DSA_65"++-- | The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.+pattern ImportCryptoKeyVersionRequest_Algorithm_PQSIGNSLHDSASHA2128S :: ImportCryptoKeyVersionRequest_Algorithm+pattern ImportCryptoKeyVersionRequest_Algorithm_PQSIGNSLHDSASHA2128S = ImportCryptoKeyVersionRequest_Algorithm "PQ_SIGN_SLH_DSA_SHA2_128S"++{-# COMPLETE+ ImportCryptoKeyVersionRequest_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ ImportCryptoKeyVersionRequest_Algorithm_GOOGLESYMMETRICENCRYPTION,+ ImportCryptoKeyVersionRequest_Algorithm_AES128GCM,+ ImportCryptoKeyVersionRequest_Algorithm_AES256GCM,+ ImportCryptoKeyVersionRequest_Algorithm_AES128CBC,+ ImportCryptoKeyVersionRequest_Algorithm_AES256CBC,+ ImportCryptoKeyVersionRequest_Algorithm_AES128CTR,+ ImportCryptoKeyVersionRequest_Algorithm_AES256CTR,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P256_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_P384_SHA384,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_SECP256K1_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_EC_SIGN_ED25519,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA256,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA1,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA384,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA512,+ ImportCryptoKeyVersionRequest_Algorithm_HMAC_SHA224,+ ImportCryptoKeyVersionRequest_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ ImportCryptoKeyVersionRequest_Algorithm_PQ_SIGN_ML_DSA_65,+ ImportCryptoKeyVersionRequest_Algorithm_PQSIGNSLHDSASHA2128S,+ ImportCryptoKeyVersionRequest_Algorithm+ #-}++-- | Required. Immutable. The wrapping method to be used for incoming key material.+newtype ImportJob_ImportMethod = ImportJob_ImportMethod {fromImportJob_ImportMethod :: 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+ )++-- | Not specified.+pattern ImportJob_ImportMethod_IMPORTMETHODUNSPECIFIED :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_IMPORTMETHODUNSPECIFIED = ImportJob_ImportMethod "IMPORT_METHOD_UNSPECIFIED"++-- | This ImportMethod represents the CKM/RSA/AES/KEY/WRAP key wrapping scheme defined in the PKCS #11 standard. In summary, this involves wrapping the raw key with an ephemeral AES key, and wrapping the ephemeral AES key with a 3072 bit RSA key. For more details, see <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908 RSA AES key wrap mechanism>.+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA1_AES_256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA1_AES_256 = ImportJob_ImportMethod "RSA_OAEP_3072_SHA1_AES_256"++-- | This ImportMethod represents the CKM/RSA/AES/KEY/WRAP key wrapping scheme defined in the PKCS #11 standard. In summary, this involves wrapping the raw key with an ephemeral AES key, and wrapping the ephemeral AES key with a 4096 bit RSA key. For more details, see <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908 RSA AES key wrap mechanism>.+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA1_AES_256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA1_AES_256 = ImportJob_ImportMethod "RSA_OAEP_4096_SHA1_AES_256"++-- | This ImportMethod represents the CKM/RSA/AES/KEY/WRAP key wrapping scheme defined in the PKCS #11 standard. In summary, this involves wrapping the raw key with an ephemeral AES key, and wrapping the ephemeral AES key with a 3072 bit RSA key. For more details, see <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908 RSA AES key wrap mechanism>.+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA256_AES_256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA256_AES_256 = ImportJob_ImportMethod "RSA_OAEP_3072_SHA256_AES_256"++-- | This ImportMethod represents the CKM/RSA/AES/KEY/WRAP key wrapping scheme defined in the PKCS #11 standard. In summary, this involves wrapping the raw key with an ephemeral AES key, and wrapping the ephemeral AES key with a 4096 bit RSA key. For more details, see <http://docs.oasis-open.org/pkcs11/pkcs11-curr/v2.40/cos01/pkcs11-curr-v2.40-cos01.html#_Toc408226908 RSA AES key wrap mechanism>.+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA256_AES_256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA256_AES_256 = ImportJob_ImportMethod "RSA_OAEP_4096_SHA256_AES_256"++-- | This ImportMethod represents RSAES-OAEP with a 3072 bit RSA key. The key material to be imported is wrapped directly with the RSA key. Due to technical limitations of RSA wrapping, this method cannot be used to wrap RSA keys for import.+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_3072_SHA256 = ImportJob_ImportMethod "RSA_OAEP_3072_SHA256"++-- | This ImportMethod represents RSAES-OAEP with a 4096 bit RSA key. The key material to be imported is wrapped directly with the RSA key. Due to technical limitations of RSA wrapping, this method cannot be used to wrap RSA keys for import.+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA256 :: ImportJob_ImportMethod+pattern ImportJob_ImportMethod_RSA_OAEP_4096_SHA256 = ImportJob_ImportMethod "RSA_OAEP_4096_SHA256"++{-# COMPLETE+ ImportJob_ImportMethod_IMPORTMETHODUNSPECIFIED,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA1_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA1_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA256_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA256_AES_256,+ ImportJob_ImportMethod_RSA_OAEP_3072_SHA256,+ ImportJob_ImportMethod_RSA_OAEP_4096_SHA256,+ ImportJob_ImportMethod+ #-}++-- | Required. Immutable. The protection level of the ImportJob. This must match the protection/level of the version/template on the CryptoKey you attempt to import into.+newtype ImportJob_ProtectionLevel = ImportJob_ProtectionLevel {fromImportJob_ProtectionLevel :: 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+ )++-- | Not specified.+pattern ImportJob_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: ImportJob_ProtectionLevel+pattern ImportJob_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = ImportJob_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern ImportJob_ProtectionLevel_Software :: ImportJob_ProtectionLevel+pattern ImportJob_ProtectionLevel_Software = ImportJob_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern ImportJob_ProtectionLevel_Hsm :: ImportJob_ProtectionLevel+pattern ImportJob_ProtectionLevel_Hsm = ImportJob_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern ImportJob_ProtectionLevel_External :: ImportJob_ProtectionLevel+pattern ImportJob_ProtectionLevel_External = ImportJob_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern ImportJob_ProtectionLevel_EXTERNALVPC :: ImportJob_ProtectionLevel+pattern ImportJob_ProtectionLevel_EXTERNALVPC = ImportJob_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ ImportJob_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ ImportJob_ProtectionLevel_Software,+ ImportJob_ProtectionLevel_Hsm,+ ImportJob_ProtectionLevel_External,+ ImportJob_ProtectionLevel_EXTERNALVPC,+ ImportJob_ProtectionLevel+ #-}++-- | Output only. The current state of the ImportJob, indicating if it can be used.+newtype ImportJob_State = ImportJob_State {fromImportJob_State :: 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+ )++-- | Not specified.+pattern ImportJob_State_IMPORTJOBSTATEUNSPECIFIED :: ImportJob_State+pattern ImportJob_State_IMPORTJOBSTATEUNSPECIFIED = ImportJob_State "IMPORT_JOB_STATE_UNSPECIFIED"++-- | The wrapping key for this job is still being generated. It may not be used. Cloud KMS will automatically mark this job as ACTIVE as soon as the wrapping key is generated.+pattern ImportJob_State_PENDINGGENERATION :: ImportJob_State+pattern ImportJob_State_PENDINGGENERATION = ImportJob_State "PENDING_GENERATION"++-- | This job may be used in CreateCryptoKey and CreateCryptoKeyVersion requests.+pattern ImportJob_State_Active :: ImportJob_State+pattern ImportJob_State_Active = ImportJob_State "ACTIVE"++-- | This job can no longer be used and may not leave this state once entered.+pattern ImportJob_State_Expired :: ImportJob_State+pattern ImportJob_State_Expired = ImportJob_State "EXPIRED"++{-# COMPLETE+ ImportJob_State_IMPORTJOBSTATEUNSPECIFIED,+ ImportJob_State_PENDINGGENERATION,+ ImportJob_State_Active,+ ImportJob_State_Expired,+ ImportJob_State+ #-}++newtype KeyAccessJustificationsPolicy_AllowedAccessReasonsItem = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem {fromKeyAccessJustificationsPolicy_AllowedAccessReasonsItem :: 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+ )++-- | Unspecified access reason.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONUNSPECIFIED :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONUNSPECIFIED = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "REASON_UNSPECIFIED"++-- | Customer-initiated support.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDSUPPORT :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDSUPPORT = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "CUSTOMER_INITIATED_SUPPORT"++-- | Google-initiated access for system management and troubleshooting.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSERVICE :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSERVICE = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "GOOGLE_INITIATED_SERVICE"++-- | Google-initiated access in response to a legal request or legal process.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_THIRDPARTYDATAREQUEST :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_THIRDPARTYDATAREQUEST = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "THIRD_PARTY_DATA_REQUEST"++-- | Google-initiated access for security, fraud, abuse, or compliance purposes.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDREVIEW :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDREVIEW = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "GOOGLE_INITIATED_REVIEW"++-- | Customer uses their account to perform any access to their own data which their IAM policy authorizes.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDACCESS :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDACCESS = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "CUSTOMER_INITIATED_ACCESS"++-- | Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSYSTEMOPERATION :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSYSTEMOPERATION = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "GOOGLE_INITIATED_SYSTEM_OPERATION"++-- | No reason is expected for this key request.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONNOTEXPECTED :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONNOTEXPECTED = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "REASON_NOT_EXPECTED"++-- | Customer uses their account to perform any access to their own data which their IAM policy authorizes, and one of the following is true: * A Google administrator has reset the root-access account associated with the user\'s organization within the past 7 days. * A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDCUSTOMERINITIATEDACCESS :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDCUSTOMERINITIATEDACCESS = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "MODIFIED_CUSTOMER_INITIATED_ACCESS"++-- | Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer, and one of the following is true: * A Google administrator has reset the root-access account associated with the user\'s organization within the past 7 days. * A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDGOOGLEINITIATEDSYSTEMOPERATION :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDGOOGLEINITIATEDSYSTEMOPERATION = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "MODIFIED_GOOGLE_INITIATED_SYSTEM_OPERATION"++-- | Google-initiated access to maintain system reliability.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLERESPONSETOPRODUCTIONALERT :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLERESPONSETOPRODUCTIONALERT = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "GOOGLE_RESPONSE_TO_PRODUCTION_ALERT"++-- | One of the following operations is being executed while simultaneously encountering an internal technical issue which prevented a more precise justification code from being generated: * Your account has been used to perform any access to your own data which your IAM policy authorizes. * An automated Google system operates on encrypted customer data which your IAM policy authorizes. * Customer-initiated Google support access. * Google-initiated support access to protect system reliability.+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERAUTHORIZEDWORKFLOWSERVICING :: KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+pattern KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERAUTHORIZEDWORKFLOWSERVICING = KeyAccessJustificationsPolicy_AllowedAccessReasonsItem "CUSTOMER_AUTHORIZED_WORKFLOW_SERVICING"++{-# COMPLETE+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONUNSPECIFIED,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDSUPPORT,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSERVICE,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_THIRDPARTYDATAREQUEST,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDREVIEW,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERINITIATEDACCESS,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLEINITIATEDSYSTEMOPERATION,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_REASONNOTEXPECTED,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDCUSTOMERINITIATEDACCESS,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_MODIFIEDGOOGLEINITIATEDSYSTEMOPERATION,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_GOOGLERESPONSETOPRODUCTIONALERT,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem_CUSTOMERAUTHORIZEDWORKFLOWSERVICING,+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+ #-}++-- | Output only. The format of the attestation data.+newtype KeyOperationAttestation_Format = KeyOperationAttestation_Format {fromKeyOperationAttestation_Format :: 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+ )++-- | Not specified.+pattern KeyOperationAttestation_Format_ATTESTATIONFORMATUNSPECIFIED :: KeyOperationAttestation_Format+pattern KeyOperationAttestation_Format_ATTESTATIONFORMATUNSPECIFIED = KeyOperationAttestation_Format "ATTESTATION_FORMAT_UNSPECIFIED"++-- | Cavium HSM attestation compressed with gzip. Note that this format is defined by Cavium and subject to change at any time. See https:\/\/www.marvell.com\/products\/security-solutions\/nitrox-hs-adapters\/software-key-attestation.html.+pattern KeyOperationAttestation_Format_CAVIUMV1COMPRESSED :: KeyOperationAttestation_Format+pattern KeyOperationAttestation_Format_CAVIUMV1COMPRESSED = KeyOperationAttestation_Format "CAVIUM_V1_COMPRESSED"++-- | Cavium HSM attestation V2 compressed with gzip. This is a new format introduced in Cavium\'s version 3.2-08.+pattern KeyOperationAttestation_Format_CAVIUMV2COMPRESSED :: KeyOperationAttestation_Format+pattern KeyOperationAttestation_Format_CAVIUMV2COMPRESSED = KeyOperationAttestation_Format "CAVIUM_V2_COMPRESSED"++{-# COMPLETE+ KeyOperationAttestation_Format_ATTESTATIONFORMATUNSPECIFIED,+ KeyOperationAttestation_Format_CAVIUMV1COMPRESSED,+ KeyOperationAttestation_Format_CAVIUMV2COMPRESSED,+ KeyOperationAttestation_Format+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used for signing.+newtype MacSignResponse_ProtectionLevel = MacSignResponse_ProtectionLevel {fromMacSignResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern MacSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: MacSignResponse_ProtectionLevel+pattern MacSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = MacSignResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern MacSignResponse_ProtectionLevel_Software :: MacSignResponse_ProtectionLevel+pattern MacSignResponse_ProtectionLevel_Software = MacSignResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern MacSignResponse_ProtectionLevel_Hsm :: MacSignResponse_ProtectionLevel+pattern MacSignResponse_ProtectionLevel_Hsm = MacSignResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern MacSignResponse_ProtectionLevel_External :: MacSignResponse_ProtectionLevel+pattern MacSignResponse_ProtectionLevel_External = MacSignResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern MacSignResponse_ProtectionLevel_EXTERNALVPC :: MacSignResponse_ProtectionLevel+pattern MacSignResponse_ProtectionLevel_EXTERNALVPC = MacSignResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ MacSignResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ MacSignResponse_ProtectionLevel_Software,+ MacSignResponse_ProtectionLevel_Hsm,+ MacSignResponse_ProtectionLevel_External,+ MacSignResponse_ProtectionLevel_EXTERNALVPC,+ MacSignResponse_ProtectionLevel+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used for verification.+newtype MacVerifyResponse_ProtectionLevel = MacVerifyResponse_ProtectionLevel {fromMacVerifyResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern MacVerifyResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: MacVerifyResponse_ProtectionLevel+pattern MacVerifyResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = MacVerifyResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern MacVerifyResponse_ProtectionLevel_Software :: MacVerifyResponse_ProtectionLevel+pattern MacVerifyResponse_ProtectionLevel_Software = MacVerifyResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern MacVerifyResponse_ProtectionLevel_Hsm :: MacVerifyResponse_ProtectionLevel+pattern MacVerifyResponse_ProtectionLevel_Hsm = MacVerifyResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern MacVerifyResponse_ProtectionLevel_External :: MacVerifyResponse_ProtectionLevel+pattern MacVerifyResponse_ProtectionLevel_External = MacVerifyResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern MacVerifyResponse_ProtectionLevel_EXTERNALVPC :: MacVerifyResponse_ProtectionLevel+pattern MacVerifyResponse_ProtectionLevel_EXTERNALVPC = MacVerifyResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ MacVerifyResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ MacVerifyResponse_ProtectionLevel_Software,+ MacVerifyResponse_ProtectionLevel_Hsm,+ MacVerifyResponse_ProtectionLevel_External,+ MacVerifyResponse_ProtectionLevel_EXTERNALVPC,+ MacVerifyResponse_ProtectionLevel+ #-}++-- | The Algorithm associated with this key.+newtype PublicKey_Algorithm = PublicKey_Algorithm {fromPublicKey_Algorithm :: 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+ )++-- | Not specified.+pattern PublicKey_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED :: PublicKey_Algorithm+pattern PublicKey_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED = PublicKey_Algorithm "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"++-- | Creates symmetric encryption keys.+pattern PublicKey_Algorithm_GOOGLESYMMETRICENCRYPTION :: PublicKey_Algorithm+pattern PublicKey_Algorithm_GOOGLESYMMETRICENCRYPTION = PublicKey_Algorithm "GOOGLE_SYMMETRIC_ENCRYPTION"++-- | AES-GCM (Galois Counter Mode) using 128-bit keys.+pattern PublicKey_Algorithm_AES128GCM :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES128GCM = PublicKey_Algorithm "AES_128_GCM"++-- | AES-GCM (Galois Counter Mode) using 256-bit keys.+pattern PublicKey_Algorithm_AES256GCM :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES256GCM = PublicKey_Algorithm "AES_256_GCM"++-- | AES-CBC (Cipher Block Chaining Mode) using 128-bit keys.+pattern PublicKey_Algorithm_AES128CBC :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES128CBC = PublicKey_Algorithm "AES_128_CBC"++-- | AES-CBC (Cipher Block Chaining Mode) using 256-bit keys.+pattern PublicKey_Algorithm_AES256CBC :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES256CBC = PublicKey_Algorithm "AES_256_CBC"++-- | AES-CTR (Counter Mode) using 128-bit keys.+pattern PublicKey_Algorithm_AES128CTR :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES128CTR = PublicKey_Algorithm "AES_128_CTR"++-- | AES-CTR (Counter Mode) using 256-bit keys.+pattern PublicKey_Algorithm_AES256CTR :: PublicKey_Algorithm+pattern PublicKey_Algorithm_AES256CTR = PublicKey_Algorithm "AES_256_CTR"++-- | RSASSA-PSS 2048 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PSS_2048_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PSS_2048_SHA256 = PublicKey_Algorithm "RSA_SIGN_PSS_2048_SHA256"++-- | RSASSA-PSS 3072 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PSS_3072_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PSS_3072_SHA256 = PublicKey_Algorithm "RSA_SIGN_PSS_3072_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA256 = PublicKey_Algorithm "RSA_SIGN_PSS_4096_SHA256"++-- | RSASSA-PSS 4096 bit key with a SHA512 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA512 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA512 = PublicKey_Algorithm "RSA_SIGN_PSS_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_2048_SHA256 = PublicKey_Algorithm "RSA_SIGN_PKCS1_2048_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_3072_SHA256 = PublicKey_Algorithm "RSA_SIGN_PKCS1_3072_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA256 = PublicKey_Algorithm "RSA_SIGN_PKCS1_4096_SHA256"++-- | RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA512 = PublicKey_Algorithm "RSA_SIGN_PKCS1_4096_SHA512"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 2048 bit key.+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_2048 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_2048 = PublicKey_Algorithm "RSA_SIGN_RAW_PKCS1_2048"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 3072 bit key.+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_3072 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_3072 = PublicKey_Algorithm "RSA_SIGN_RAW_PKCS1_3072"++-- | RSASSA-PKCS1-v1_5 signing without encoding, with a 4096 bit key.+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_4096 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_4096 = PublicKey_Algorithm "RSA_SIGN_RAW_PKCS1_4096"++-- | RSAES-OAEP 2048 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_2048_SHA256"++-- | RSAES-OAEP 3072 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_3072_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA256 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_4096_SHA256"++-- | RSAES-OAEP 4096 bit key with a SHA512 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_4096_SHA512"++-- | RSAES-OAEP 2048 bit key with a SHA1 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_2048_SHA1"++-- | RSAES-OAEP 3072 bit key with a SHA1 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_3072_SHA1"++-- | RSAES-OAEP 4096 bit key with a SHA1 digest.+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1 = PublicKey_Algorithm "RSA_DECRYPT_OAEP_4096_SHA1"++-- | ECDSA on the NIST P-256 curve with a SHA256 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern PublicKey_Algorithm_EC_SIGN_P256_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_EC_SIGN_P256_SHA256 = PublicKey_Algorithm "EC_SIGN_P256_SHA256"++-- | ECDSA on the NIST P-384 curve with a SHA384 digest. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern PublicKey_Algorithm_EC_SIGN_P384_SHA384 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_EC_SIGN_P384_SHA384 = PublicKey_Algorithm "EC_SIGN_P384_SHA384"++-- | ECDSA on the non-NIST secp256k1 curve. This curve is only supported for HSM protection level. Other hash functions can also be used: https:\/\/cloud.google.com\/kms\/docs\/create-validate-signatures#ecdsa/support/for/other/hash_algorithms+pattern PublicKey_Algorithm_EC_SIGN_SECP256K1_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_EC_SIGN_SECP256K1_SHA256 = PublicKey_Algorithm "EC_SIGN_SECP256K1_SHA256"++-- | EdDSA on the Curve25519 in pure mode (taking data as input).+pattern PublicKey_Algorithm_EC_SIGN_ED25519 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_EC_SIGN_ED25519 = PublicKey_Algorithm "EC_SIGN_ED25519"++-- | HMAC-SHA256 signing with a 256 bit key.+pattern PublicKey_Algorithm_HMAC_SHA256 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_HMAC_SHA256 = PublicKey_Algorithm "HMAC_SHA256"++-- | HMAC-SHA1 signing with a 160 bit key.+pattern PublicKey_Algorithm_HMAC_SHA1 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_HMAC_SHA1 = PublicKey_Algorithm "HMAC_SHA1"++-- | HMAC-SHA384 signing with a 384 bit key.+pattern PublicKey_Algorithm_HMAC_SHA384 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_HMAC_SHA384 = PublicKey_Algorithm "HMAC_SHA384"++-- | HMAC-SHA512 signing with a 512 bit key.+pattern PublicKey_Algorithm_HMAC_SHA512 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_HMAC_SHA512 = PublicKey_Algorithm "HMAC_SHA512"++-- | HMAC-SHA224 signing with a 224 bit key.+pattern PublicKey_Algorithm_HMAC_SHA224 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_HMAC_SHA224 = PublicKey_Algorithm "HMAC_SHA224"++-- | Algorithm representing symmetric encryption by an external key manager.+pattern PublicKey_Algorithm_EXTERNALSYMMETRICENCRYPTION :: PublicKey_Algorithm+pattern PublicKey_Algorithm_EXTERNALSYMMETRICENCRYPTION = PublicKey_Algorithm "EXTERNAL_SYMMETRIC_ENCRYPTION"++-- | The post-quantum Module-Lattice-Based Digital Signature Algorithm, at security level 3. Randomized version.+pattern PublicKey_Algorithm_PQ_SIGN_ML_DSA_65 :: PublicKey_Algorithm+pattern PublicKey_Algorithm_PQ_SIGN_ML_DSA_65 = PublicKey_Algorithm "PQ_SIGN_ML_DSA_65"++-- | The post-quantum stateless hash-based digital signature algorithm, at security level 1. Randomized version.+pattern PublicKey_Algorithm_PQSIGNSLHDSASHA2128S :: PublicKey_Algorithm+pattern PublicKey_Algorithm_PQSIGNSLHDSASHA2128S = PublicKey_Algorithm "PQ_SIGN_SLH_DSA_SHA2_128S"++{-# COMPLETE+ PublicKey_Algorithm_CRYPTOKEYVERSIONALGORITHMUNSPECIFIED,+ PublicKey_Algorithm_GOOGLESYMMETRICENCRYPTION,+ PublicKey_Algorithm_AES128GCM,+ PublicKey_Algorithm_AES256GCM,+ PublicKey_Algorithm_AES128CBC,+ PublicKey_Algorithm_AES256CBC,+ PublicKey_Algorithm_AES128CTR,+ PublicKey_Algorithm_AES256CTR,+ PublicKey_Algorithm_RSA_SIGN_PSS_2048_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_3072_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PSS_4096_SHA512,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_2048_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_3072_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA256,+ PublicKey_Algorithm_RSA_SIGN_PKCS1_4096_SHA512,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_2048,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_3072,+ PublicKey_Algorithm_RSA_SIGN_RAW_PKCS1_4096,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA256,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA512,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_2048_SHA1,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_3072_SHA1,+ PublicKey_Algorithm_RSA_DECRYPT_OAEP_4096_SHA1,+ PublicKey_Algorithm_EC_SIGN_P256_SHA256,+ PublicKey_Algorithm_EC_SIGN_P384_SHA384,+ PublicKey_Algorithm_EC_SIGN_SECP256K1_SHA256,+ PublicKey_Algorithm_EC_SIGN_ED25519,+ PublicKey_Algorithm_HMAC_SHA256,+ PublicKey_Algorithm_HMAC_SHA1,+ PublicKey_Algorithm_HMAC_SHA384,+ PublicKey_Algorithm_HMAC_SHA512,+ PublicKey_Algorithm_HMAC_SHA224,+ PublicKey_Algorithm_EXTERNALSYMMETRICENCRYPTION,+ PublicKey_Algorithm_PQ_SIGN_ML_DSA_65,+ PublicKey_Algorithm_PQSIGNSLHDSASHA2128S,+ PublicKey_Algorithm+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion public key.+newtype PublicKey_ProtectionLevel = PublicKey_ProtectionLevel {fromPublicKey_ProtectionLevel :: 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+ )++-- | Not specified.+pattern PublicKey_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: PublicKey_ProtectionLevel+pattern PublicKey_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = PublicKey_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern PublicKey_ProtectionLevel_Software :: PublicKey_ProtectionLevel+pattern PublicKey_ProtectionLevel_Software = PublicKey_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern PublicKey_ProtectionLevel_Hsm :: PublicKey_ProtectionLevel+pattern PublicKey_ProtectionLevel_Hsm = PublicKey_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern PublicKey_ProtectionLevel_External :: PublicKey_ProtectionLevel+pattern PublicKey_ProtectionLevel_External = PublicKey_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern PublicKey_ProtectionLevel_EXTERNALVPC :: PublicKey_ProtectionLevel+pattern PublicKey_ProtectionLevel_EXTERNALVPC = PublicKey_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ PublicKey_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ PublicKey_ProtectionLevel_Software,+ PublicKey_ProtectionLevel_Hsm,+ PublicKey_ProtectionLevel_External,+ PublicKey_ProtectionLevel_EXTERNALVPC,+ PublicKey_ProtectionLevel+ #-}++-- | The PublicKey format specified by the customer through the public/key/format field.+newtype PublicKey_PublicKeyFormat = PublicKey_PublicKeyFormat {fromPublicKey_PublicKeyFormat :: 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+ )++-- | If the public/key/format field is not specified: - For PQC algorithms, an error will be returned. - For non-PQC algorithms, the default format is PEM, and the field pem will be populated. Otherwise, the public key will be exported through the public_key field in the requested format.+pattern PublicKey_PublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED :: PublicKey_PublicKeyFormat+pattern PublicKey_PublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED = PublicKey_PublicKeyFormat "PUBLIC_KEY_FORMAT_UNSPECIFIED"++-- | The returned public key will be encoded in PEM format. See the <https://tools.ietf.org/html/rfc7468 RFC7468> sections for <https://tools.ietf.org/html/rfc7468#section-2 General Considerations> and [Textual Encoding of Subject Public Key Info] (https:\/\/tools.ietf.org\/html\/rfc7468#section-13) for more information.+pattern PublicKey_PublicKeyFormat_Pem :: PublicKey_PublicKeyFormat+pattern PublicKey_PublicKeyFormat_Pem = PublicKey_PublicKeyFormat "PEM"++-- | This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).+pattern PublicKey_PublicKeyFormat_NISTPQC :: PublicKey_PublicKeyFormat+pattern PublicKey_PublicKeyFormat_NISTPQC = PublicKey_PublicKeyFormat "NIST_PQC"++{-# COMPLETE+ PublicKey_PublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED,+ PublicKey_PublicKeyFormat_Pem,+ PublicKey_PublicKeyFormat_NISTPQC,+ PublicKey_PublicKeyFormat+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used in decryption.+newtype RawDecryptResponse_ProtectionLevel = RawDecryptResponse_ProtectionLevel {fromRawDecryptResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern RawDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: RawDecryptResponse_ProtectionLevel+pattern RawDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = RawDecryptResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern RawDecryptResponse_ProtectionLevel_Software :: RawDecryptResponse_ProtectionLevel+pattern RawDecryptResponse_ProtectionLevel_Software = RawDecryptResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern RawDecryptResponse_ProtectionLevel_Hsm :: RawDecryptResponse_ProtectionLevel+pattern RawDecryptResponse_ProtectionLevel_Hsm = RawDecryptResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern RawDecryptResponse_ProtectionLevel_External :: RawDecryptResponse_ProtectionLevel+pattern RawDecryptResponse_ProtectionLevel_External = RawDecryptResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern RawDecryptResponse_ProtectionLevel_EXTERNALVPC :: RawDecryptResponse_ProtectionLevel+pattern RawDecryptResponse_ProtectionLevel_EXTERNALVPC = RawDecryptResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ RawDecryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ RawDecryptResponse_ProtectionLevel_Software,+ RawDecryptResponse_ProtectionLevel_Hsm,+ RawDecryptResponse_ProtectionLevel_External,+ RawDecryptResponse_ProtectionLevel_EXTERNALVPC,+ RawDecryptResponse_ProtectionLevel+ #-}++-- | The ProtectionLevel of the CryptoKeyVersion used in encryption.+newtype RawEncryptResponse_ProtectionLevel = RawEncryptResponse_ProtectionLevel {fromRawEncryptResponse_ProtectionLevel :: 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+ )++-- | Not specified.+pattern RawEncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED :: RawEncryptResponse_ProtectionLevel+pattern RawEncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED = RawEncryptResponse_ProtectionLevel "PROTECTION_LEVEL_UNSPECIFIED"++-- | Crypto operations are performed in software.+pattern RawEncryptResponse_ProtectionLevel_Software :: RawEncryptResponse_ProtectionLevel+pattern RawEncryptResponse_ProtectionLevel_Software = RawEncryptResponse_ProtectionLevel "SOFTWARE"++-- | Crypto operations are performed in a Hardware Security Module.+pattern RawEncryptResponse_ProtectionLevel_Hsm :: RawEncryptResponse_ProtectionLevel+pattern RawEncryptResponse_ProtectionLevel_Hsm = RawEncryptResponse_ProtectionLevel "HSM"++-- | Crypto operations are performed by an external key manager.+pattern RawEncryptResponse_ProtectionLevel_External :: RawEncryptResponse_ProtectionLevel+pattern RawEncryptResponse_ProtectionLevel_External = RawEncryptResponse_ProtectionLevel "EXTERNAL"++-- | Crypto operations are performed in an EKM-over-VPC backend.+pattern RawEncryptResponse_ProtectionLevel_EXTERNALVPC :: RawEncryptResponse_ProtectionLevel+pattern RawEncryptResponse_ProtectionLevel_EXTERNALVPC = RawEncryptResponse_ProtectionLevel "EXTERNAL_VPC"++{-# COMPLETE+ RawEncryptResponse_ProtectionLevel_PROTECTIONLEVELUNSPECIFIED,+ RawEncryptResponse_ProtectionLevel_Software,+ RawEncryptResponse_ProtectionLevel_Hsm,+ RawEncryptResponse_ProtectionLevel_External,+ RawEncryptResponse_ProtectionLevel_EXTERNALVPC,+ RawEncryptResponse_ProtectionLevel+ #-}++-- | Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.+newtype ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat {fromProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat :: 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+ )++-- | If the public/key/format field is not specified: - For PQC algorithms, an error will be returned. - For non-PQC algorithms, the default format is PEM, and the field pem will be populated. Otherwise, the public key will be exported through the public_key field in the requested format.+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED :: ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat "PUBLIC_KEY_FORMAT_UNSPECIFIED"++-- | The returned public key will be encoded in PEM format. See the <https://tools.ietf.org/html/rfc7468 RFC7468> sections for <https://tools.ietf.org/html/rfc7468#section-2 General Considerations> and [Textual Encoding of Subject Public Key Info] (https:\/\/tools.ietf.org\/html\/rfc7468#section-13) for more information.+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_Pem :: ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_Pem = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat "PEM"++-- | This is supported only for PQC algorithms. The key material is returned in the format defined by NIST PQC standards (FIPS 203, FIPS 204, and FIPS 205).+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_NISTPQC :: ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_NISTPQC = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat "NIST_PQC"++{-# COMPLETE+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_PUBLICKEYFORMATUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_Pem,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat_NISTPQC,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ #-}++-- | The fields to include in the response.+newtype ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView {fromProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView :: 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+ )++-- | Default view for each CryptoKeyVersion. Does not include the attestation field.+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_CRYPTOKEYVERSIONVIEWUNSPECIFIED :: ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_CRYPTOKEYVERSIONVIEWUNSPECIFIED = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView "CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED"++-- | Provides all fields in each CryptoKeyVersion, including the attestation.+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_Full :: ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+pattern ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_Full = ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView "FULL"++{-# COMPLETE+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_CRYPTOKEYVERSIONVIEWUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView_Full,+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ #-}++-- | The fields of the primary version to include in the response.+newtype ProjectsLocationsKeyRingsCryptoKeysListVersionView = ProjectsLocationsKeyRingsCryptoKeysListVersionView {fromProjectsLocationsKeyRingsCryptoKeysListVersionView :: 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+ )++-- | Default view for each CryptoKeyVersion. Does not include the attestation field.+pattern ProjectsLocationsKeyRingsCryptoKeysListVersionView_CRYPTOKEYVERSIONVIEWUNSPECIFIED :: ProjectsLocationsKeyRingsCryptoKeysListVersionView+pattern ProjectsLocationsKeyRingsCryptoKeysListVersionView_CRYPTOKEYVERSIONVIEWUNSPECIFIED = ProjectsLocationsKeyRingsCryptoKeysListVersionView "CRYPTO_KEY_VERSION_VIEW_UNSPECIFIED"++-- | Provides all fields in each CryptoKeyVersion, including the attestation.+pattern ProjectsLocationsKeyRingsCryptoKeysListVersionView_Full :: ProjectsLocationsKeyRingsCryptoKeysListVersionView+pattern ProjectsLocationsKeyRingsCryptoKeysListVersionView_Full = ProjectsLocationsKeyRingsCryptoKeysListVersionView "FULL"++{-# COMPLETE+ ProjectsLocationsKeyRingsCryptoKeysListVersionView_CRYPTOKEYVERSIONVIEWUNSPECIFIED,+ ProjectsLocationsKeyRingsCryptoKeysListVersionView_Full,+ ProjectsLocationsKeyRingsCryptoKeysListVersionView+ #-}
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/GetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.EkmConfig.GetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConfig.getIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.EkmConfig.GetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConfigGetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConfigGetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConfigGetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConfig.getIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsEkmConfigGetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsEkmConfigGetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "getIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "options.requestedPolicyVersion" Core.Int32+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Policy++-- | Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConfigGetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsEkmConfigGetIamPolicy = CloudKMSProjectsLocationsEkmConfigGetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConfigGetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConfigGetIamPolicy ::+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConfigGetIamPolicy+newCloudKMSProjectsLocationsEkmConfigGetIamPolicy resource =+ CloudKMSProjectsLocationsEkmConfigGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion = Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConfigGetIamPolicy+ where+ type Rs CloudKMSProjectsLocationsEkmConfigGetIamPolicy = Policy+ type+ Scopes CloudKMSProjectsLocationsEkmConfigGetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConfigGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConfigGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/SetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.EkmConfig.SetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConfig.setIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.EkmConfig.SetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConfigSetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConfigSetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConfigSetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConfig.setIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsEkmConfigSetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsEkmConfigSetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "setIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] SetIamPolicyRequest+ Core.:> Core.Post '[Core.JSON] Policy++-- | Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConfigSetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsEkmConfigSetIamPolicy = CloudKMSProjectsLocationsEkmConfigSetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: SetIamPolicyRequest,+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConfigSetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConfigSetIamPolicy ::+ -- | Multipart request metadata. See 'payload'.+ SetIamPolicyRequest ->+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConfigSetIamPolicy+newCloudKMSProjectsLocationsEkmConfigSetIamPolicy payload resource =+ CloudKMSProjectsLocationsEkmConfigSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConfigSetIamPolicy+ where+ type Rs CloudKMSProjectsLocationsEkmConfigSetIamPolicy = Policy+ type+ Scopes CloudKMSProjectsLocationsEkmConfigSetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConfigSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConfigSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConfig/TestIamPermissions.hs view
@@ -0,0 +1,128 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConfig.TestIamPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConfig.testIamPermissions@.+module Gogol.CloudKMS.Projects.Locations.EkmConfig.TestIamPermissions+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConfigTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions (..),+ newCloudKMSProjectsLocationsEkmConfigTestIamPermissions,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConfig.testIamPermissions@ method which the+-- 'CloudKMSProjectsLocationsEkmConfigTestIamPermissions' request conforms to.+type CloudKMSProjectsLocationsEkmConfigTestIamPermissionsResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "testIamPermissions" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] TestIamPermissionsRequest+ Core.:> Core.Post '[Core.JSON] TestIamPermissionsResponse++-- | Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConfigTestIamPermissions' smart constructor.+data CloudKMSProjectsLocationsEkmConfigTestIamPermissions = CloudKMSProjectsLocationsEkmConfigTestIamPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: TestIamPermissionsRequest,+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConfigTestIamPermissions' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConfigTestIamPermissions ::+ -- | Multipart request metadata. See 'payload'.+ TestIamPermissionsRequest ->+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions+newCloudKMSProjectsLocationsEkmConfigTestIamPermissions+ payload+ resource =+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions+ where+ type+ Rs CloudKMSProjectsLocationsEkmConfigTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes CloudKMSProjectsLocationsEkmConfigTestIamPermissions =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsEkmConfigTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsEkmConfigTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Create.hs view
@@ -0,0 +1,130 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new EkmConnection in a given Project and Location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.create@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.Create+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsCreate (..),+ newCloudKMSProjectsLocationsEkmConnectionsCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.create@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsCreate' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "ekmConnections"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "ekmConnectionId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EkmConnection+ Core.:> Core.Post '[Core.JSON] EkmConnection++-- | Creates a new EkmConnection in a given Project and Location.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsCreate' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsCreate = CloudKMSProjectsLocationsEkmConnectionsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. It must be unique within a location and match the regular expression @[a-zA-Z0-9_-]{1,63}@.+ ekmConnectionId :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the location associated with the EkmConnection, in the format @projects\/*\/locations\/*@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: EkmConnection,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsCreate ::+ -- | Required. The resource name of the location associated with the EkmConnection, in the format @projects\/*\/locations\/*@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EkmConnection ->+ CloudKMSProjectsLocationsEkmConnectionsCreate+newCloudKMSProjectsLocationsEkmConnectionsCreate parent payload =+ CloudKMSProjectsLocationsEkmConnectionsCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ ekmConnectionId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsCreate+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsCreate =+ EkmConnection+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConnectionsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ ekmConnectionId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConnectionsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Get.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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for a given EkmConnection.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.get@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.Get+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsGet (..),+ newCloudKMSProjectsLocationsEkmConnectionsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.get@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsGet' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] EkmConnection++-- | Returns metadata for a given EkmConnection.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsGet' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsGet = CloudKMSProjectsLocationsEkmConnectionsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the EkmConnection to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsGet ::+ -- | Required. The name of the EkmConnection to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsGet+newCloudKMSProjectsLocationsEkmConnectionsGet name =+ CloudKMSProjectsLocationsEkmConnectionsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsGet+ where+ type Rs CloudKMSProjectsLocationsEkmConnectionsGet = EkmConnection+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConnectionsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConnectionsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/GetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.GetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.getIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.GetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConnectionsGetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.getIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsGetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "getIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "options.requestedPolicyVersion" Core.Int32+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Policy++-- | Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsGetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy = CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsGetIamPolicy ::+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy+newCloudKMSProjectsLocationsEkmConnectionsGetIamPolicy resource =+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion =+ Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsEkmConnectionsGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/List.hs view
@@ -0,0 +1,137 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists EkmConnections.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.list@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.List+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsList (..),+ newCloudKMSProjectsLocationsEkmConnectionsList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.list@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsList' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "ekmConnections"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListEkmConnectionsResponse++-- | Lists EkmConnections.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsList' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsList = CloudKMSProjectsLocationsEkmConnectionsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Only include resources that match the filter in the response. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of EkmConnections to include in the response. Further EkmConnections can subsequently be obtained by including the ListEkmConnectionsResponse.next/page/token in a subsequent request. If unspecified, the server will pick an appropriate default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListEkmConnectionsResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the location associated with the EkmConnections to list, in the format @projects\/*\/locations\/*@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsList ::+ -- | Required. The resource name of the location associated with the EkmConnections to list, in the format @projects\/*\/locations\/*@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsList+newCloudKMSProjectsLocationsEkmConnectionsList parent =+ CloudKMSProjectsLocationsEkmConnectionsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsList+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsList =+ ListEkmConnectionsResponse+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConnectionsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConnectionsListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/Patch.hs view
@@ -0,0 +1,129 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an EkmConnection\'s metadata.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.patch@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.Patch+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsPatchResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsPatch (..),+ newCloudKMSProjectsLocationsEkmConnectionsPatch,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.patch@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsPatch' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EkmConnection+ Core.:> Core.Patch '[Core.JSON] EkmConnection++-- | Updates an EkmConnection\'s metadata.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsPatch' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsPatch = CloudKMSProjectsLocationsEkmConnectionsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. The resource name for the EkmConnection in the format @projects\/*\/locations\/*\/ekmConnections\/*@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: EkmConnection,+ -- | Required. List of fields to be updated in this request.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsPatch' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsPatch ::+ -- | Output only. The resource name for the EkmConnection in the format @projects\/*\/locations\/*\/ekmConnections\/*@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EkmConnection ->+ CloudKMSProjectsLocationsEkmConnectionsPatch+newCloudKMSProjectsLocationsEkmConnectionsPatch name payload =+ CloudKMSProjectsLocationsEkmConnectionsPatch+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsPatch+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsPatch =+ EkmConnection+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsPatch =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsEkmConnectionsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsEkmConnectionsPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/SetIamPolicy.hs view
@@ -0,0 +1,128 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.SetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.setIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.SetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy (..),+ newCloudKMSProjectsLocationsEkmConnectionsSetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.setIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsSetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "setIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] SetIamPolicyRequest+ Core.:> Core.Post '[Core.JSON] Policy++-- | Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsSetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy = CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: SetIamPolicyRequest,+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsSetIamPolicy ::+ -- | Multipart request metadata. See 'payload'.+ SetIamPolicyRequest ->+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy+newCloudKMSProjectsLocationsEkmConnectionsSetIamPolicy+ payload+ resource =+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsEkmConnectionsSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/TestIamPermissions.hs view
@@ -0,0 +1,129 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.TestIamPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.testIamPermissions@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.TestIamPermissions+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions (..),+ newCloudKMSProjectsLocationsEkmConnectionsTestIamPermissions,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.testIamPermissions@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsTestIamPermissionsResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "testIamPermissions" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] TestIamPermissionsRequest+ Core.:> Core.Post '[Core.JSON] TestIamPermissionsResponse++-- | Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsTestIamPermissions' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions = CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: TestIamPermissionsRequest,+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsTestIamPermissions ::+ -- | Multipart request metadata. See 'payload'.+ TestIamPermissionsRequest ->+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions+newCloudKMSProjectsLocationsEkmConnectionsTestIamPermissions+ payload+ resource =+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsEkmConnectionsTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/EkmConnections/VerifyConnectivity.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 : Gogol.CloudKMS.Projects.Locations.EkmConnections.VerifyConnectivity+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Verifies that Cloud KMS can successfully connect to the external key manager specified by an EkmConnection. If there is an error connecting to the EKM, this method returns a FAILED/PRECONDITION status containing structured information as described at https:\/\/cloud.google.com\/kms\/docs\/reference\/ekm/errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.ekmConnections.verifyConnectivity@.+module Gogol.CloudKMS.Projects.Locations.EkmConnections.VerifyConnectivity+ ( -- * Resource+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivityResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity (..),+ newCloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.ekmConnections.verifyConnectivity@ method which the+-- 'CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity' request conforms to.+type CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivityResource =+ "v1"+ Core.:> Core.CaptureMode "name" "verifyConnectivity" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] VerifyConnectivityResponse++-- | Verifies that Cloud KMS can successfully connect to the external key manager specified by an EkmConnection. If there is an error connecting to the EKM, this method returns a FAILED/PRECONDITION status containing structured information as described at https:\/\/cloud.google.com\/kms\/docs\/reference\/ekm/errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity' smart constructor.+data CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity = CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the EkmConnection to verify.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity ::+ -- | Required. The name of the EkmConnection to verify. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity+newCloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity name =+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity+ where+ type+ Rs CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity =+ VerifyConnectivityResponse+ type+ Scopes+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivity {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsEkmConnectionsVerifyConnectivityResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/GenerateRandomBytes.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 : Gogol.CloudKMS.Projects.Locations.GenerateRandomBytes+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generate random bytes using the Cloud KMS randomness source in the provided location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.generateRandomBytes@.+module Gogol.CloudKMS.Projects.Locations.GenerateRandomBytes+ ( -- * Resource+ CloudKMSProjectsLocationsGenerateRandomBytesResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsGenerateRandomBytes (..),+ newCloudKMSProjectsLocationsGenerateRandomBytes,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.generateRandomBytes@ method which the+-- 'CloudKMSProjectsLocationsGenerateRandomBytes' request conforms to.+type CloudKMSProjectsLocationsGenerateRandomBytesResource =+ "v1"+ Core.:> Core.CaptureMode "location" "generateRandomBytes" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] GenerateRandomBytesRequest+ Core.:> Core.Post '[Core.JSON] GenerateRandomBytesResponse++-- | Generate random bytes using the Cloud KMS randomness source in the provided location.+--+-- /See:/ 'newCloudKMSProjectsLocationsGenerateRandomBytes' smart constructor.+data CloudKMSProjectsLocationsGenerateRandomBytes = CloudKMSProjectsLocationsGenerateRandomBytes+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The project-specific location in which to generate random bytes. For example, \"projects\/my-project\/locations\/us-central1\".+ location :: Core.Text,+ -- | Multipart request metadata.+ payload :: GenerateRandomBytesRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsGenerateRandomBytes' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsGenerateRandomBytes ::+ -- | The project-specific location in which to generate random bytes. For example, \"projects\/my-project\/locations\/us-central1\". See 'location'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GenerateRandomBytesRequest ->+ CloudKMSProjectsLocationsGenerateRandomBytes+newCloudKMSProjectsLocationsGenerateRandomBytes location payload =+ CloudKMSProjectsLocationsGenerateRandomBytes+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ location = location,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsGenerateRandomBytes+ where+ type+ Rs CloudKMSProjectsLocationsGenerateRandomBytes =+ GenerateRandomBytesResponse+ type+ Scopes CloudKMSProjectsLocationsGenerateRandomBytes =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsGenerateRandomBytes {..} =+ go+ location+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsGenerateRandomBytesResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/Get.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 : Gogol.CloudKMS.Projects.Locations.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.get@.+module Gogol.CloudKMS.Projects.Locations.Get+ ( -- * Resource+ CloudKMSProjectsLocationsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsGet (..),+ newCloudKMSProjectsLocationsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.get@ method which the+-- 'CloudKMSProjectsLocationsGet' request conforms to.+type CloudKMSProjectsLocationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Location++-- | Gets information about a location.+--+-- /See:/ 'newCloudKMSProjectsLocationsGet' smart constructor.+data CloudKMSProjectsLocationsGet = CloudKMSProjectsLocationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Resource name for the location.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsGet ::+ -- | Resource name for the location. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsGet+newCloudKMSProjectsLocationsGet name =+ CloudKMSProjectsLocationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsGet where+ type Rs CloudKMSProjectsLocationsGet = Location+ type+ Scopes CloudKMSProjectsLocationsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudKMSProjectsLocationsGetResource)+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/GetEkmConfig.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 : Gogol.CloudKMS.Projects.Locations.GetEkmConfig+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the EkmConfig singleton resource for a given project and location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.getEkmConfig@.+module Gogol.CloudKMS.Projects.Locations.GetEkmConfig+ ( -- * Resource+ CloudKMSProjectsLocationsGetEkmConfigResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsGetEkmConfig (..),+ newCloudKMSProjectsLocationsGetEkmConfig,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.getEkmConfig@ method which the+-- 'CloudKMSProjectsLocationsGetEkmConfig' request conforms to.+type CloudKMSProjectsLocationsGetEkmConfigResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] EkmConfig++-- | Returns the EkmConfig singleton resource for a given project and location.+--+-- /See:/ 'newCloudKMSProjectsLocationsGetEkmConfig' smart constructor.+data CloudKMSProjectsLocationsGetEkmConfig = CloudKMSProjectsLocationsGetEkmConfig+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the EkmConfig to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsGetEkmConfig' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsGetEkmConfig ::+ -- | Required. The name of the EkmConfig to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsGetEkmConfig+newCloudKMSProjectsLocationsGetEkmConfig name =+ CloudKMSProjectsLocationsGetEkmConfig+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsGetEkmConfig where+ type Rs CloudKMSProjectsLocationsGetEkmConfig = EkmConfig+ type+ Scopes CloudKMSProjectsLocationsGetEkmConfig =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsGetEkmConfig {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsGetEkmConfigResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/Create.hs view
@@ -0,0 +1,127 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyHandles.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long-running operation and get the resulting KeyHandle and CryptoKey.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyHandles.create@.+module Gogol.CloudKMS.Projects.Locations.KeyHandles.Create+ ( -- * Resource+ CloudKMSProjectsLocationsKeyHandlesCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyHandlesCreate (..),+ newCloudKMSProjectsLocationsKeyHandlesCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyHandles.create@ method which the+-- 'CloudKMSProjectsLocationsKeyHandlesCreate' request conforms to.+type CloudKMSProjectsLocationsKeyHandlesCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "keyHandles"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "keyHandleId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] KeyHandle+ Core.:> Core.Post '[Core.JSON] Operation++-- | Creates a new KeyHandle, triggering the provisioning of a new CryptoKey for CMEK use with the given resource type in the configured key project and the same location. GetOperation should be used to resolve the resulting long-running operation and get the resulting KeyHandle and CryptoKey.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyHandlesCreate' smart constructor.+data CloudKMSProjectsLocationsKeyHandlesCreate = CloudKMSProjectsLocationsKeyHandlesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Id of the KeyHandle. Must be unique to the resource project and location. If not provided by the caller, a new UUID is used.+ keyHandleId :: (Core.Maybe Core.Text),+ -- | Required. Name of the resource project and location to create the KeyHandle in, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: KeyHandle,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyHandlesCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyHandlesCreate ::+ -- | Required. Name of the resource project and location to create the KeyHandle in, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ KeyHandle ->+ CloudKMSProjectsLocationsKeyHandlesCreate+newCloudKMSProjectsLocationsKeyHandlesCreate parent payload =+ CloudKMSProjectsLocationsKeyHandlesCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ keyHandleId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyHandlesCreate+ where+ type Rs CloudKMSProjectsLocationsKeyHandlesCreate = Operation+ type+ Scopes CloudKMSProjectsLocationsKeyHandlesCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyHandlesCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ keyHandleId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyHandlesCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/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 : Gogol.CloudKMS.Projects.Locations.KeyHandles.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the KeyHandle.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyHandles.get@.+module Gogol.CloudKMS.Projects.Locations.KeyHandles.Get+ ( -- * Resource+ CloudKMSProjectsLocationsKeyHandlesGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyHandlesGet (..),+ newCloudKMSProjectsLocationsKeyHandlesGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyHandles.get@ method which the+-- 'CloudKMSProjectsLocationsKeyHandlesGet' request conforms to.+type CloudKMSProjectsLocationsKeyHandlesGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] KeyHandle++-- | Returns the KeyHandle.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyHandlesGet' smart constructor.+data CloudKMSProjectsLocationsKeyHandlesGet = CloudKMSProjectsLocationsKeyHandlesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Name of the KeyHandle resource, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}\/keyHandles\/{KEY_HANDLE_ID}@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyHandlesGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyHandlesGet ::+ -- | Required. Name of the KeyHandle resource, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}\/keyHandles\/{KEY_HANDLE_ID}@. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyHandlesGet+newCloudKMSProjectsLocationsKeyHandlesGet name =+ CloudKMSProjectsLocationsKeyHandlesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsKeyHandlesGet where+ type Rs CloudKMSProjectsLocationsKeyHandlesGet = KeyHandle+ type+ Scopes CloudKMSProjectsLocationsKeyHandlesGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyHandlesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyHandlesGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyHandles/List.hs view
@@ -0,0 +1,129 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyHandles.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists KeyHandles.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyHandles.list@.+module Gogol.CloudKMS.Projects.Locations.KeyHandles.List+ ( -- * Resource+ CloudKMSProjectsLocationsKeyHandlesListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyHandlesList (..),+ newCloudKMSProjectsLocationsKeyHandlesList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyHandles.list@ method which the+-- 'CloudKMSProjectsLocationsKeyHandlesList' request conforms to.+type CloudKMSProjectsLocationsKeyHandlesListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "keyHandles"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListKeyHandlesResponse++-- | Lists KeyHandles.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyHandlesList' smart constructor.+data CloudKMSProjectsLocationsKeyHandlesList = CloudKMSProjectsLocationsKeyHandlesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Filter to apply when listing KeyHandles, e.g. @resource_type_selector=\"{SERVICE}.googleapis.com\/{TYPE}\"@.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of KeyHandles to include in the response. The service may return fewer than this value. Further KeyHandles can subsequently be obtained by including the ListKeyHandlesResponse.next/page/token in a subsequent request. If unspecified, at most 100 KeyHandles will be returned.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListKeyHandlesResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. Name of the resource project and location from which to list KeyHandles, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyHandlesList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyHandlesList ::+ -- | Required. Name of the resource project and location from which to list KeyHandles, e.g. @projects\/{PROJECT_ID}\/locations\/{LOCATION}@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyHandlesList+newCloudKMSProjectsLocationsKeyHandlesList parent =+ CloudKMSProjectsLocationsKeyHandlesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsKeyHandlesList where+ type+ Rs CloudKMSProjectsLocationsKeyHandlesList =+ ListKeyHandlesResponse+ type+ Scopes CloudKMSProjectsLocationsKeyHandlesList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyHandlesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyHandlesListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/Create.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new KeyRing in a given Project and Location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.create@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.Create+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.create@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCreate' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "keyRings"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "keyRingId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] KeyRing+ Core.:> Core.Post '[Core.JSON] KeyRing++-- | Create a new KeyRing in a given Project and Location.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCreate' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCreate = CloudKMSProjectsLocationsKeyRingsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. It must be unique within a location and match the regular expression @[a-zA-Z0-9_-]{1,63}@+ keyRingId :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the location associated with the KeyRings, in the format @projects\/*\/locations\/*@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: KeyRing,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCreate ::+ -- | Required. The resource name of the location associated with the KeyRings, in the format @projects\/*\/locations\/*@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ KeyRing ->+ CloudKMSProjectsLocationsKeyRingsCreate+newCloudKMSProjectsLocationsKeyRingsCreate parent payload =+ CloudKMSProjectsLocationsKeyRingsCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ keyRingId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsKeyRingsCreate where+ type Rs CloudKMSProjectsLocationsKeyRingsCreate = KeyRing+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ keyRingId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Create.hs view
@@ -0,0 +1,136 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey.version_template.algorithm are required.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.create@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.create@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "cryptoKeys"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "cryptoKeyId" Core.Text+ Core.:> Core.QueryParam "skipInitialVersionCreation" Core.Bool+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] CryptoKey+ Core.:> Core.Post '[Core.JSON] CryptoKey++-- | Create a new CryptoKey within a KeyRing. CryptoKey.purpose and CryptoKey.version_template.algorithm are required.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCreate' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate = CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. It must be unique within a KeyRing and match the regular expression @[a-zA-Z0-9_-]{1,63}@+ cryptoKeyId :: (Core.Maybe Core.Text),+ -- | Required. The name of the KeyRing associated with the CryptoKeys.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: CryptoKey,+ -- | If set to true, the request will create a CryptoKey without any CryptoKeyVersions. You must manually call CreateCryptoKeyVersion or ImportCryptoKeyVersion before you can use this CryptoKey.+ skipInitialVersionCreation :: (Core.Maybe Core.Bool),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCreate ::+ -- | Required. The name of the KeyRing associated with the CryptoKeys. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CryptoKey ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCreate parent payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ cryptoKeyId = Core.Nothing,+ parent = parent,+ payload = payload,+ skipInitialVersionCreation = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate =+ CryptoKey+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsCryptoKeysCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ cryptoKeyId+ skipInitialVersionCreation+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricDecrypt.hs view
@@ -0,0 +1,134 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource =+ "v1"+ Core.:> Core.CaptureMode "name" "asymmetricDecrypt" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] AsymmetricDecryptRequest+ Core.:> Core.Post '[Core.JSON] AsymmetricDecryptResponse++-- | Decrypts data that was encrypted with a public key retrieved from GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for decryption.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: AsymmetricDecryptRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt ::+ -- | Required. The resource name of the CryptoKeyVersion to use for decryption. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ AsymmetricDecryptRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback =+ Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt =+ AsymmetricDecryptResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricSign.hs view
@@ -0,0 +1,134 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from GetPublicKey.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource =+ "v1"+ Core.:> Core.CaptureMode "name" "asymmetricSign" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] AsymmetricSignRequest+ Core.:> Core.Post '[Core.JSON] AsymmetricSignResponse++-- | Signs data using a CryptoKeyVersion with CryptoKey.purpose ASYMMETRIC_SIGN, producing a signature that can be verified with the public key retrieved from GetPublicKey.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for signing.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: AsymmetricSignRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign ::+ -- | Required. The resource name of the CryptoKeyVersion to use for signing. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ AsymmetricSignRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback =+ Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign =+ AsymmetricSignResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Create.hs view
@@ -0,0 +1,132 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "cryptoKeyVersions"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] CryptoKeyVersion+ Core.:> Core.Post '[Core.JSON] CryptoKeyVersion++-- | Create a new CryptoKeyVersion in a CryptoKey. The server will assign the next sequential id. If unset, state will be set to ENABLED.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the CryptoKey associated with the CryptoKeyVersions.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: CryptoKeyVersion,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate ::+ -- | Required. The name of the CryptoKey associated with the CryptoKeyVersions. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CryptoKeyVersion ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate+ parent+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Destroy.hs view
@@ -0,0 +1,131 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Schedule a CryptoKeyVersion for destruction. Upon calling this method, CryptoKeyVersion.state will be set to DESTROY/SCHEDULED, and destroy/time will be set to the time destroy/scheduled/duration in the future. At that time, the state will automatically change to DESTROYED, and the key material will be irrevocably destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to reverse the process.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource =+ "v1"+ Core.:> Core.CaptureMode "name" "destroy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] DestroyCryptoKeyVersionRequest+ Core.:> Core.Post '[Core.JSON] CryptoKeyVersion++-- | Schedule a CryptoKeyVersion for destruction. Upon calling this method, CryptoKeyVersion.state will be set to DESTROY/SCHEDULED, and destroy/time will be set to the time destroy/scheduled/duration in the future. At that time, the state will automatically change to DESTROYED, and the key material will be irrevocably destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion may be called to reverse the process.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to destroy.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: DestroyCryptoKeyVersionRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy ::+ -- | Required. The resource name of the CryptoKeyVersion to destroy. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ DestroyCryptoKeyVersionRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Get.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for a given CryptoKeyVersion.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] CryptoKeyVersion++-- | Returns metadata for a given CryptoKeyVersion.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the CryptoKeyVersion to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet ::+ -- | Required. The name of the CryptoKeyVersion to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet+ name =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/GetPublicKey.hs view
@@ -0,0 +1,138 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose must be ASYMMETRIC/SIGN or ASYMMETRIC/DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "publicKey"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam+ "publicKeyFormat"+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] PublicKey++-- | Returns the public key for the given CryptoKeyVersion. The CryptoKey.purpose must be ASYMMETRIC/SIGN or ASYMMETRIC/DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the CryptoKeyVersion public key to get.+ name :: Core.Text,+ -- | Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.+ publicKeyFormat ::+ ( Core.Maybe+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ ),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey ::+ -- | Required. The name of the CryptoKeyVersion public key to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey+ name =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback =+ Core.Nothing,+ name = name,+ publicKeyFormat =+ Core.Nothing,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey =+ PublicKey+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey {..} =+ go+ name+ xgafv+ accessToken+ callback+ publicKeyFormat+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Import.hs view
@@ -0,0 +1,132 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Import+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Import wrapped key material into a CryptoKeyVersion. All requests must specify a CryptoKey. If a CryptoKeyVersion is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the CryptoKey.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.import@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Import+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.import@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "cryptoKeyVersions:import"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ImportCryptoKeyVersionRequest+ Core.:> Core.Post '[Core.JSON] CryptoKeyVersion++-- | Import wrapped key material into a CryptoKeyVersion. All requests must specify a CryptoKey. If a CryptoKeyVersion is additionally specified in the request, key material will be reimported into that version. Otherwise, a new version will be created, and will be assigned the next sequential id within the CryptoKey.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the CryptoKey to be imported into. The create permission is only required on this key when creating a new CryptoKeyVersion.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: ImportCryptoKeyVersionRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport ::+ -- | Required. The name of the CryptoKey to be imported into. The create permission is only required on this key when creating a new CryptoKeyVersion. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ImportCryptoKeyVersionRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport+ parent+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImport {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsImportResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/List.hs view
@@ -0,0 +1,153 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists CryptoKeyVersions.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "cryptoKeyVersions"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam+ "view"+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListCryptoKeyVersionsResponse++-- | Lists CryptoKeyVersions.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Only include resources that match the filter in the response. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of CryptoKeyVersions to include in the response. Further CryptoKeyVersions can subsequently be obtained by including the ListCryptoKeyVersionsResponse.next/page/token in a subsequent request. If unspecified, the server will pick an appropriate default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListCryptoKeyVersionsResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKey to list, in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The fields to include in the response.+ view ::+ ( Core.Maybe+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ )+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList ::+ -- | Required. The resource name of the CryptoKey to list, in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList+ parent =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ view = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList =+ ListCryptoKeyVersionsResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ view+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/MacSign.hs view
@@ -0,0 +1,131 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacSign+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a tag that can be verified by another source with the same key.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macSign@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacSign+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSignResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macSign@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSignResource =+ "v1"+ Core.:> Core.CaptureMode "name" "macSign" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] MacSignRequest+ Core.:> Core.Post '[Core.JSON] MacSignResponse++-- | Signs data using a CryptoKeyVersion with CryptoKey.purpose MAC, producing a tag that can be verified by another source with the same key.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for signing.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: MacSignRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign ::+ -- | Required. The resource name of the CryptoKeyVersion to use for signing. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ MacSignRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign =+ MacSignResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSign {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacSignResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/MacVerify.hs view
@@ -0,0 +1,132 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacVerify+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and returns a response that indicates whether or not the verification was successful.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macVerify@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacVerify+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerifyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.macVerify@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerifyResource =+ "v1"+ Core.:> Core.CaptureMode "name" "macVerify" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] MacVerifyRequest+ Core.:> Core.Post '[Core.JSON] MacVerifyResponse++-- | Verifies MAC tag using a CryptoKeyVersion with CryptoKey.purpose MAC, and returns a response that indicates whether or not the verification was successful.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for verification.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: MacVerifyRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify ::+ -- | Required. The resource name of the CryptoKeyVersion to use for verification. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ MacVerifyRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify =+ MacVerifyResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerify {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsMacVerifyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Patch.hs view
@@ -0,0 +1,135 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Update a CryptoKeyVersion\'s metadata. state may be changed between ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to move between other states.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] CryptoKeyVersion+ Core.:> Core.Patch '[Core.JSON] CryptoKeyVersion++-- | Update a CryptoKeyVersion\'s metadata. state may be changed between ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to move between other states.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. The resource name for this CryptoKeyVersion in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\/cryptoKeyVersions\/*@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: CryptoKeyVersion,+ -- | Required. List of fields to be updated in this request.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch ::+ -- | Output only. The resource name for this CryptoKeyVersion in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\/cryptoKeyVersions\/*@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CryptoKeyVersion ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/RawDecrypt.hs view
@@ -0,0 +1,133 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawDecrypt+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Decrypts data that was originally encrypted using a raw cryptographic mechanism. The CryptoKey.purpose must be RAW/ENCRYPT/DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawDecrypt@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawDecrypt+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecryptResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawDecrypt@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecryptResource =+ "v1"+ Core.:> Core.CaptureMode "name" "rawDecrypt" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RawDecryptRequest+ Core.:> Core.Post '[Core.JSON] RawDecryptResponse++-- | Decrypts data that was originally encrypted using a raw cryptographic mechanism. The CryptoKey.purpose must be RAW/ENCRYPT/DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for decryption.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RawDecryptRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt ::+ -- | Required. The resource name of the CryptoKeyVersion to use for decryption. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RawDecryptRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt =+ RawDecryptResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecrypt {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawDecryptResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/RawEncrypt.hs view
@@ -0,0 +1,133 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawEncrypt+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Encrypts data using portable cryptographic primitives. Most users should choose Encrypt and Decrypt rather than their raw counterparts. The CryptoKey.purpose must be RAW/ENCRYPT/DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawEncrypt@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawEncrypt+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncryptResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.rawEncrypt@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncryptResource =+ "v1"+ Core.:> Core.CaptureMode "name" "rawEncrypt" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RawEncryptRequest+ Core.:> Core.Post '[Core.JSON] RawEncryptResponse++-- | Encrypts data using portable cryptographic primitives. Most users should choose Encrypt and Decrypt rather than their raw counterparts. The CryptoKey.purpose must be RAW/ENCRYPT/DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to use for encryption.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RawEncryptRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt ::+ -- | Required. The resource name of the CryptoKeyVersion to use for encryption. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RawEncryptRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt =+ RawEncryptResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncrypt {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRawEncryptResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Restore.hs view
@@ -0,0 +1,131 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Restore a CryptoKeyVersion in the DESTROY/SCHEDULED state. Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and destroy/time will be cleared.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource =+ "v1"+ Core.:> Core.CaptureMode "name" "restore" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] RestoreCryptoKeyVersionRequest+ Core.:> Core.Post '[Core.JSON] CryptoKeyVersion++-- | Restore a CryptoKeyVersion in the DESTROY/SCHEDULED state. Upon restoration of the CryptoKeyVersion, state will be set to DISABLED, and destroy/time will be cleared.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore = CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKeyVersion to restore.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RestoreCryptoKeyVersionRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore ::+ -- | Required. The resource name of the CryptoKeyVersion to restore. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RestoreCryptoKeyVersionRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore+newCloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore =+ CryptoKeyVersion+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Decrypt.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.decrypt@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecryptResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.decrypt@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysDecryptResource =+ "v1"+ Core.:> Core.CaptureMode "name" "decrypt" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] DecryptRequest+ Core.:> Core.Post '[Core.JSON] DecryptResponse++-- | Decrypts data that was protected by Encrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt = CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKey to use for decryption. The server will choose the appropriate version.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: DecryptRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt ::+ -- | Required. The resource name of the CryptoKey to use for decryption. The server will choose the appropriate version. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ DecryptRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt+newCloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt name payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt =+ DecryptResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecrypt {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysDecryptResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Encrypt.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.encrypt@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncryptResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.encrypt@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysEncryptResource =+ "v1"+ Core.:> Core.CaptureMode "name" "encrypt" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EncryptRequest+ Core.:> Core.Post '[Core.JSON] EncryptResponse++-- | Encrypts data, so that it can only be recovered by a call to Decrypt. The CryptoKey.purpose must be ENCRYPT_DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt = CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKey or CryptoKeyVersion to use for encryption. If a CryptoKey is specified, the server will use its primary version.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: EncryptRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt ::+ -- | Required. The resource name of the CryptoKey or CryptoKeyVersion to use for encryption. If a CryptoKey is specified, the server will use its primary version. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EncryptRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt+newCloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt name payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt =+ EncryptResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncrypt {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysEncryptResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Get.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.get@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGet (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.get@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysGet' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] CryptoKey++-- | Returns metadata for a given CryptoKey, as well as its primary CryptoKeyVersion.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysGet' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysGet = CloudKMSProjectsLocationsKeyRingsCryptoKeysGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the CryptoKey to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysGet ::+ -- | Required. The name of the CryptoKey to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGet+newCloudKMSProjectsLocationsKeyRingsCryptoKeysGet name =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGet+ where+ type Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysGet = CryptoKey+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsCryptoKeysGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsCryptoKeysGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/GetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "getIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "options.requestedPolicyVersion" Core.Int32+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Policy++-- | Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy = CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy ::+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy+newCloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy resource =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion =+ Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/List.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists CryptoKeys.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.list@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysList (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.list@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysList' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "cryptoKeys"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam+ "versionView"+ ProjectsLocationsKeyRingsCryptoKeysListVersionView+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListCryptoKeysResponse++-- | Lists CryptoKeys.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysList' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysList = CloudKMSProjectsLocationsKeyRingsCryptoKeysList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Only include resources that match the filter in the response. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of CryptoKeys to include in the response. Further CryptoKeys can subsequently be obtained by including the ListCryptoKeysResponse.next/page/token in a subsequent request. If unspecified, the server will pick an appropriate default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListCryptoKeysResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the KeyRing to list, in the format @projects\/*\/locations\/*\/keyRings\/*@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The fields of the primary version to include in the response.+ versionView :: (Core.Maybe ProjectsLocationsKeyRingsCryptoKeysListVersionView)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysList ::+ -- | Required. The resource name of the KeyRing to list, in the format @projects\/*\/locations\/*\/keyRings\/*@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysList+newCloudKMSProjectsLocationsKeyRingsCryptoKeysList parent =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ versionView = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysList+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysList =+ ListCryptoKeysResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsCryptoKeysList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ versionView+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsCryptoKeysListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Patch.hs view
@@ -0,0 +1,130 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Update a CryptoKey.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.patch@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatchResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysPatch,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.patch@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] CryptoKey+ Core.:> Core.Patch '[Core.JSON] CryptoKey++-- | Update a CryptoKey.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysPatch' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch = CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. The resource name for this CryptoKey in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: CryptoKey,+ -- | Required. List of fields to be updated in this request.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysPatch ::+ -- | Output only. The resource name for this CryptoKey in the format @projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CryptoKey ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch+newCloudKMSProjectsLocationsKeyRingsCryptoKeysPatch name payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch =+ CryptoKey+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsCryptoKeysPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/SetIamPolicy.hs view
@@ -0,0 +1,128 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "setIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] SetIamPolicyRequest+ Core.:> Core.Post '[Core.JSON] Policy++-- | Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy = CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: SetIamPolicyRequest,+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy ::+ -- | Multipart request metadata. See 'payload'.+ SetIamPolicyRequest ->+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy+newCloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy+ payload+ resource =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/TestIamPermissions.hs view
@@ -0,0 +1,130 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "testIamPermissions" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] TestIamPermissionsRequest+ Core.:> Core.Post '[Core.JSON] TestIamPermissionsResponse++-- | Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions = CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: TestIamPermissionsRequest,+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions ::+ -- | Multipart request metadata. See 'payload'.+ TestIamPermissionsRequest ->+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions+newCloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions+ payload+ resource =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/UpdatePrimaryVersion.hs view
@@ -0,0 +1,130 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Update the version of a CryptoKey that will be used in Encrypt. Returns an error if called on a key whose purpose is not ENCRYPT_DECRYPT.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (..),+ newCloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' request conforms to.+type CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource =+ "v1"+ Core.:> Core.CaptureMode "name" "updatePrimaryVersion" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] UpdateCryptoKeyPrimaryVersionRequest+ Core.:> Core.Post '[Core.JSON] CryptoKey++-- | Update the version of a CryptoKey that will be used in Encrypt. Returns an error if called on a key whose purpose is not ENCRYPT_DECRYPT.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' smart constructor.+data CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion = CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the CryptoKey to update.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: UpdateCryptoKeyPrimaryVersionRequest,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion ::+ -- | Required. The resource name of the CryptoKey to update. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ UpdateCryptoKeyPrimaryVersionRequest ->+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion+newCloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion+ name+ payload =+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion =+ CryptoKey+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/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 : Gogol.CloudKMS.Projects.Locations.KeyRings.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for a given KeyRing.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.get@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.Get+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsGet (..),+ newCloudKMSProjectsLocationsKeyRingsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.get@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsGet' request conforms to.+type CloudKMSProjectsLocationsKeyRingsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] KeyRing++-- | Returns metadata for a given KeyRing.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsGet' smart constructor.+data CloudKMSProjectsLocationsKeyRingsGet = CloudKMSProjectsLocationsKeyRingsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the KeyRing to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsGet ::+ -- | Required. The name of the KeyRing to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsGet+newCloudKMSProjectsLocationsKeyRingsGet name =+ CloudKMSProjectsLocationsKeyRingsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsKeyRingsGet where+ type Rs CloudKMSProjectsLocationsKeyRingsGet = KeyRing+ type+ Scopes CloudKMSProjectsLocationsKeyRingsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/GetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.GetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.getIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.GetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsGetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsGetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.getIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsGetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsGetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "getIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "options.requestedPolicyVersion" Core.Int32+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Policy++-- | Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsGetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsGetIamPolicy = CloudKMSProjectsLocationsKeyRingsGetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsGetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsGetIamPolicy ::+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsGetIamPolicy+newCloudKMSProjectsLocationsKeyRingsGetIamPolicy resource =+ CloudKMSProjectsLocationsKeyRingsGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion = Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsGetIamPolicy+ where+ type Rs CloudKMSProjectsLocationsKeyRingsGetIamPolicy = Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsGetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/Create.hs view
@@ -0,0 +1,131 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Create a new ImportJob within a KeyRing. ImportJob.import_method is required.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.create@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Create+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsCreateResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsCreate (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsCreate,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.create@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsCreate' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "importJobs"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "importJobId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ImportJob+ Core.:> Core.Post '[Core.JSON] ImportJob++-- | Create a new ImportJob within a KeyRing. ImportJob.import_method is required.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsCreate' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsCreate = CloudKMSProjectsLocationsKeyRingsImportJobsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. It must be unique within a KeyRing and match the regular expression @[a-zA-Z0-9_-]{1,63}@+ importJobId :: (Core.Maybe Core.Text),+ -- | Required. The name of the KeyRing associated with the ImportJobs.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: ImportJob,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsCreate' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsCreate ::+ -- | Required. The name of the KeyRing associated with the ImportJobs. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ImportJob ->+ CloudKMSProjectsLocationsKeyRingsImportJobsCreate+newCloudKMSProjectsLocationsKeyRingsImportJobsCreate parent payload =+ CloudKMSProjectsLocationsKeyRingsImportJobsCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ importJobId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsCreate+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsImportJobsCreate =+ ImportJob+ type+ Scopes CloudKMSProjectsLocationsKeyRingsImportJobsCreate =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsImportJobsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ importJobId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsImportJobsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/Get.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns metadata for a given ImportJob.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.get@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Get+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsGet (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.get@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsGet' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ImportJob++-- | Returns metadata for a given ImportJob.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsGet' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsGet = CloudKMSProjectsLocationsKeyRingsImportJobsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the ImportJob to get.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsGet ::+ -- | Required. The name of the ImportJob to get. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsImportJobsGet+newCloudKMSProjectsLocationsKeyRingsImportJobsGet name =+ CloudKMSProjectsLocationsKeyRingsImportJobsGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsGet+ where+ type Rs CloudKMSProjectsLocationsKeyRingsImportJobsGet = ImportJob+ type+ Scopes CloudKMSProjectsLocationsKeyRingsImportJobsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsImportJobsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsImportJobsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/GetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.getIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.getIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "getIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "options.requestedPolicyVersion" Core.Int32+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Policy++-- | Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy = CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the <https://cloud.google.com/iam/help/conditions/resource-policies IAM documentation>.+ optionsRequestedPolicyVersion :: (Core.Maybe Core.Int32),+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy ::+ -- | REQUIRED: The resource for which the policy is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy+newCloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy resource =+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion =+ Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsImportJobsGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/List.hs view
@@ -0,0 +1,138 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists ImportJobs.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.list@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.List+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsList (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.list@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsList' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "importJobs"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListImportJobsResponse++-- | Lists ImportJobs.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsList' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsList = CloudKMSProjectsLocationsKeyRingsImportJobsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Only include resources that match the filter in the response. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of ImportJobs to include in the response. Further ImportJobs can subsequently be obtained by including the ListImportJobsResponse.next/page/token in a subsequent request. If unspecified, the server will pick an appropriate default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListImportJobsResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the KeyRing to list, in the format @projects\/*\/locations\/*\/keyRings\/*@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsList ::+ -- | Required. The resource name of the KeyRing to list, in the format @projects\/*\/locations\/*\/keyRings\/*@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsImportJobsList+newCloudKMSProjectsLocationsKeyRingsImportJobsList parent =+ CloudKMSProjectsLocationsKeyRingsImportJobsList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsList+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsImportJobsList =+ ListImportJobsResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsImportJobsList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsImportJobsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsImportJobsListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/SetIamPolicy.hs view
@@ -0,0 +1,128 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.setIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.setIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "setIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] SetIamPolicyRequest+ Core.:> Core.Post '[Core.JSON] Policy++-- | Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy = CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: SetIamPolicyRequest,+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy ::+ -- | Multipart request metadata. See 'payload'.+ SetIamPolicyRequest ->+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy+newCloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy+ payload+ resource =+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy =+ Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsImportJobsSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/ImportJobs/TestIamPermissions.hs view
@@ -0,0 +1,130 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIamPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.testIamPermissions@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIamPermissions+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.testIamPermissions@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions' request conforms to.+type CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissionsResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "testIamPermissions" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] TestIamPermissionsRequest+ Core.:> Core.Post '[Core.JSON] TestIamPermissionsResponse++-- | Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions' smart constructor.+data CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions = CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: TestIamPermissionsRequest,+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions ::+ -- | Multipart request metadata. See 'payload'.+ TestIamPermissionsRequest ->+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions+newCloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions+ payload+ resource =+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions+ where+ type+ Rs+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsImportJobsTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/List.hs view
@@ -0,0 +1,134 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists KeyRings.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.list@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.List+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsList (..),+ newCloudKMSProjectsLocationsKeyRingsList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.list@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsList' request conforms to.+type CloudKMSProjectsLocationsKeyRingsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "keyRings"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "orderBy" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListKeyRingsResponse++-- | Lists KeyRings.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsList' smart constructor.+data CloudKMSProjectsLocationsKeyRingsList = CloudKMSProjectsLocationsKeyRingsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. Only include resources that match the filter in the response. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ filter :: (Core.Maybe Core.Text),+ -- | Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, see <https://cloud.google.com/kms/docs/sorting-and-filtering Sorting and filtering list results>.+ orderBy :: (Core.Maybe Core.Text),+ -- | Optional. Optional limit on the number of KeyRings to include in the response. Further KeyRings can subsequently be obtained by including the ListKeyRingsResponse.next/page/token in a subsequent request. If unspecified, the server will pick an appropriate default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. Optional pagination token, returned earlier via ListKeyRingsResponse.next/page/token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The resource name of the location associated with the KeyRings, in the format @projects\/*\/locations\/*@.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsList ::+ -- | Required. The resource name of the location associated with the KeyRings, in the format @projects\/*\/locations\/*@. See 'parent'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsList+newCloudKMSProjectsLocationsKeyRingsList parent =+ CloudKMSProjectsLocationsKeyRingsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ orderBy = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsKeyRingsList where+ type+ Rs CloudKMSProjectsLocationsKeyRingsList =+ ListKeyRingsResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsListResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/SetIamPolicy.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 : Gogol.CloudKMS.Projects.Locations.KeyRings.SetIamPolicy+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.setIamPolicy@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.SetIamPolicy+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsSetIamPolicyResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsSetIamPolicy (..),+ newCloudKMSProjectsLocationsKeyRingsSetIamPolicy,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.setIamPolicy@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsSetIamPolicy' request conforms to.+type CloudKMSProjectsLocationsKeyRingsSetIamPolicyResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "setIamPolicy" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] SetIamPolicyRequest+ Core.:> Core.Post '[Core.JSON] Policy++-- | Sets the access control policy on the specified resource. Replaces any existing policy. Can return @NOT_FOUND@, @INVALID_ARGUMENT@, and @PERMISSION_DENIED@ errors.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsSetIamPolicy' smart constructor.+data CloudKMSProjectsLocationsKeyRingsSetIamPolicy = CloudKMSProjectsLocationsKeyRingsSetIamPolicy+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: SetIamPolicyRequest,+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsSetIamPolicy' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsSetIamPolicy ::+ -- | Multipart request metadata. See 'payload'.+ SetIamPolicyRequest ->+ -- | REQUIRED: The resource for which the policy is being specified. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsSetIamPolicy+newCloudKMSProjectsLocationsKeyRingsSetIamPolicy payload resource =+ CloudKMSProjectsLocationsKeyRingsSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsSetIamPolicy+ where+ type Rs CloudKMSProjectsLocationsKeyRingsSetIamPolicy = Policy+ type+ Scopes CloudKMSProjectsLocationsKeyRingsSetIamPolicy =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsKeyRingsSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsKeyRingsSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/KeyRings/TestIamPermissions.hs view
@@ -0,0 +1,128 @@+{-# 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 : Gogol.CloudKMS.Projects.Locations.KeyRings.TestIamPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.testIamPermissions@.+module Gogol.CloudKMS.Projects.Locations.KeyRings.TestIamPermissions+ ( -- * Resource+ CloudKMSProjectsLocationsKeyRingsTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions (..),+ newCloudKMSProjectsLocationsKeyRingsTestIamPermissions,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.keyRings.testIamPermissions@ method which the+-- 'CloudKMSProjectsLocationsKeyRingsTestIamPermissions' request conforms to.+type CloudKMSProjectsLocationsKeyRingsTestIamPermissionsResource =+ "v1"+ Core.:> Core.CaptureMode "resource" "testIamPermissions" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] TestIamPermissionsRequest+ Core.:> Core.Post '[Core.JSON] TestIamPermissionsResponse++-- | Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a @NOT_FOUND@ error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may \"fail open\" without warning.+--+-- /See:/ 'newCloudKMSProjectsLocationsKeyRingsTestIamPermissions' smart constructor.+data CloudKMSProjectsLocationsKeyRingsTestIamPermissions = CloudKMSProjectsLocationsKeyRingsTestIamPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: TestIamPermissionsRequest,+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field.+ resource :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsKeyRingsTestIamPermissions' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsKeyRingsTestIamPermissions ::+ -- | Multipart request metadata. See 'payload'.+ TestIamPermissionsRequest ->+ -- | REQUIRED: The resource for which the policy detail is being requested. See <https://cloud.google.com/apis/design/resource_names Resource names> for the appropriate value for this field. See 'resource'.+ Core.Text ->+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions+newCloudKMSProjectsLocationsKeyRingsTestIamPermissions+ payload+ resource =+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions+ where+ type+ Rs CloudKMSProjectsLocationsKeyRingsTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes CloudKMSProjectsLocationsKeyRingsTestIamPermissions =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient+ CloudKMSProjectsLocationsKeyRingsTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudKMSProjectsLocationsKeyRingsTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/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 : Gogol.CloudKMS.Projects.Locations.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists information about the supported locations for this service.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.list@.+module Gogol.CloudKMS.Projects.Locations.List+ ( -- * Resource+ CloudKMSProjectsLocationsListResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsList (..),+ newCloudKMSProjectsLocationsList,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.list@ method which the+-- 'CloudKMSProjectsLocationsList' request conforms to.+type CloudKMSProjectsLocationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "locations"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListLocationsResponse++-- | Lists information about the supported locations for this service.+--+-- /See:/ 'newCloudKMSProjectsLocationsList' smart constructor.+data CloudKMSProjectsLocationsList = CloudKMSProjectsLocationsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | A filter to narrow down results to a preferred subset. The filtering language accepts strings like @\"displayName=tokyo\"@, and is documented in more detail in <https://google.aip.dev/160 AIP-160>.+ filter :: (Core.Maybe Core.Text),+ -- | The resource that owns the locations collection, if applicable.+ name :: Core.Text,+ -- | The maximum number of results to return. If not set, the service selects a default.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token received from the @next_page_token@ field in the response. Send that page token to receive the subsequent page.+ pageToken :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsList' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsList ::+ -- | The resource that owns the locations collection, if applicable. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsList+newCloudKMSProjectsLocationsList name =+ CloudKMSProjectsLocationsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ name = name,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsList where+ type Rs CloudKMSProjectsLocationsList = ListLocationsResponse+ type+ Scopes CloudKMSProjectsLocationsList =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudKMSProjectsLocationsListResource)+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/Operations/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 : Gogol.CloudKMS.Projects.Locations.Operations.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.operations.get@.+module Gogol.CloudKMS.Projects.Locations.Operations.Get+ ( -- * Resource+ CloudKMSProjectsLocationsOperationsGetResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsOperationsGet (..),+ newCloudKMSProjectsLocationsOperationsGet,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.operations.get@ method which the+-- 'CloudKMSProjectsLocationsOperationsGet' request conforms to.+type CloudKMSProjectsLocationsOperationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Operation++-- | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ 'newCloudKMSProjectsLocationsOperationsGet' smart constructor.+data CloudKMSProjectsLocationsOperationsGet = CloudKMSProjectsLocationsOperationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsOperationsGet' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsOperationsGet ::+ -- | The name of the operation resource. See 'name'.+ Core.Text ->+ CloudKMSProjectsLocationsOperationsGet+newCloudKMSProjectsLocationsOperationsGet name =+ CloudKMSProjectsLocationsOperationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudKMSProjectsLocationsOperationsGet where+ type Rs CloudKMSProjectsLocationsOperationsGet = Operation+ type+ Scopes CloudKMSProjectsLocationsOperationsGet =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsOperationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsOperationsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/Locations/UpdateEkmConfig.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 : Gogol.CloudKMS.Projects.Locations.UpdateEkmConfig+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the EkmConfig singleton resource for a given project and location.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.updateEkmConfig@.+module Gogol.CloudKMS.Projects.Locations.UpdateEkmConfig+ ( -- * Resource+ CloudKMSProjectsLocationsUpdateEkmConfigResource,++ -- ** Constructing a Request+ CloudKMSProjectsLocationsUpdateEkmConfig (..),+ newCloudKMSProjectsLocationsUpdateEkmConfig,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.locations.updateEkmConfig@ method which the+-- 'CloudKMSProjectsLocationsUpdateEkmConfig' request conforms to.+type CloudKMSProjectsLocationsUpdateEkmConfigResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EkmConfig+ Core.:> Core.Patch '[Core.JSON] EkmConfig++-- | Updates the EkmConfig singleton resource for a given project and location.+--+-- /See:/ 'newCloudKMSProjectsLocationsUpdateEkmConfig' smart constructor.+data CloudKMSProjectsLocationsUpdateEkmConfig = CloudKMSProjectsLocationsUpdateEkmConfig+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. The resource name for the EkmConfig in the format @projects\/*\/locations\/*\/ekmConfig@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: EkmConfig,+ -- | Required. List of fields to be updated in this request.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsLocationsUpdateEkmConfig' with the minimum fields required to make a request.+newCloudKMSProjectsLocationsUpdateEkmConfig ::+ -- | Output only. The resource name for the EkmConfig in the format @projects\/*\/locations\/*\/ekmConfig@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EkmConfig ->+ CloudKMSProjectsLocationsUpdateEkmConfig+newCloudKMSProjectsLocationsUpdateEkmConfig name payload =+ CloudKMSProjectsLocationsUpdateEkmConfig+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsLocationsUpdateEkmConfig+ where+ type Rs CloudKMSProjectsLocationsUpdateEkmConfig = EkmConfig+ type+ Scopes CloudKMSProjectsLocationsUpdateEkmConfig =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsLocationsUpdateEkmConfig {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsLocationsUpdateEkmConfigResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Projects/ShowEffectiveAutokeyConfig.hs view
@@ -0,0 +1,116 @@+{-# 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 : Gogol.CloudKMS.Projects.ShowEffectiveAutokeyConfig+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the effective Cloud KMS Autokey configuration for a given project.+--+-- /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.showEffectiveAutokeyConfig@.+module Gogol.CloudKMS.Projects.ShowEffectiveAutokeyConfig+ ( -- * Resource+ CloudKMSProjectsShowEffectiveAutokeyConfigResource,++ -- ** Constructing a Request+ CloudKMSProjectsShowEffectiveAutokeyConfig (..),+ newCloudKMSProjectsShowEffectiveAutokeyConfig,+ )+where++import Gogol.CloudKMS.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudkms.projects.showEffectiveAutokeyConfig@ method which the+-- 'CloudKMSProjectsShowEffectiveAutokeyConfig' request conforms to.+type CloudKMSProjectsShowEffectiveAutokeyConfigResource =+ "v1"+ Core.:> Core.CaptureMode "parent" "showEffectiveAutokeyConfig" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ShowEffectiveAutokeyConfigResponse++-- | Returns the effective Cloud KMS Autokey configuration for a given project.+--+-- /See:/ 'newCloudKMSProjectsShowEffectiveAutokeyConfig' smart constructor.+data CloudKMSProjectsShowEffectiveAutokeyConfig = CloudKMSProjectsShowEffectiveAutokeyConfig+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. This may be helpful for interrogating the effect of nested folder configurations on a given resource project.+ parent :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudKMSProjectsShowEffectiveAutokeyConfig' with the minimum fields required to make a request.+newCloudKMSProjectsShowEffectiveAutokeyConfig ::+ -- | Required. Name of the resource project to the show effective Cloud KMS Autokey configuration for. This may be helpful for interrogating the effect of nested folder configurations on a given resource project. See 'parent'.+ Core.Text ->+ CloudKMSProjectsShowEffectiveAutokeyConfig+newCloudKMSProjectsShowEffectiveAutokeyConfig parent =+ CloudKMSProjectsShowEffectiveAutokeyConfig+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudKMSProjectsShowEffectiveAutokeyConfig+ where+ type+ Rs CloudKMSProjectsShowEffectiveAutokeyConfig =+ ShowEffectiveAutokeyConfigResponse+ type+ Scopes CloudKMSProjectsShowEffectiveAutokeyConfig =+ '[CloudPlatform'FullControl, Cloudkms'FullControl]+ requestClient CloudKMSProjectsShowEffectiveAutokeyConfig {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudKMSService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudKMSProjectsShowEffectiveAutokeyConfigResource+ )+ Core.mempty
+ gen/Gogol/CloudKMS/Types.hs view
@@ -0,0 +1,420 @@+{-# 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 : Gogol.CloudKMS.Types+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.CloudKMS.Types+ ( -- * Configuration+ cloudKMSService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Cloudkms'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AsymmetricDecryptRequest+ AsymmetricDecryptRequest (..),+ newAsymmetricDecryptRequest,++ -- ** AsymmetricDecryptResponse+ AsymmetricDecryptResponse (..),+ newAsymmetricDecryptResponse,++ -- ** AsymmetricDecryptResponse_ProtectionLevel+ AsymmetricDecryptResponse_ProtectionLevel (..),++ -- ** AsymmetricSignRequest+ AsymmetricSignRequest (..),+ newAsymmetricSignRequest,++ -- ** AsymmetricSignResponse+ AsymmetricSignResponse (..),+ newAsymmetricSignResponse,++ -- ** AsymmetricSignResponse_ProtectionLevel+ AsymmetricSignResponse_ProtectionLevel (..),++ -- ** AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- ** AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- ** AuditLogConfig_LogType+ AuditLogConfig_LogType (..),++ -- ** AutokeyConfig+ AutokeyConfig (..),+ newAutokeyConfig,++ -- ** AutokeyConfig_State+ AutokeyConfig_State (..),++ -- ** Binding+ Binding (..),+ newBinding,++ -- ** Certificate+ Certificate (..),+ newCertificate,++ -- ** CertificateChains+ CertificateChains (..),+ newCertificateChains,++ -- ** ChecksummedData+ ChecksummedData (..),+ newChecksummedData,++ -- ** CryptoKey+ CryptoKey (..),+ newCryptoKey,++ -- ** CryptoKey_Labels+ CryptoKey_Labels (..),+ newCryptoKey_Labels,++ -- ** CryptoKey_Purpose+ CryptoKey_Purpose (..),++ -- ** CryptoKeyVersion+ CryptoKeyVersion (..),+ newCryptoKeyVersion,++ -- ** CryptoKeyVersion_Algorithm+ CryptoKeyVersion_Algorithm (..),++ -- ** CryptoKeyVersion_ProtectionLevel+ CryptoKeyVersion_ProtectionLevel (..),++ -- ** CryptoKeyVersion_State+ CryptoKeyVersion_State (..),++ -- ** CryptoKeyVersionTemplate+ CryptoKeyVersionTemplate (..),+ newCryptoKeyVersionTemplate,++ -- ** CryptoKeyVersionTemplate_Algorithm+ CryptoKeyVersionTemplate_Algorithm (..),++ -- ** CryptoKeyVersionTemplate_ProtectionLevel+ CryptoKeyVersionTemplate_ProtectionLevel (..),++ -- ** DecryptRequest+ DecryptRequest (..),+ newDecryptRequest,++ -- ** DecryptResponse+ DecryptResponse (..),+ newDecryptResponse,++ -- ** DecryptResponse_ProtectionLevel+ DecryptResponse_ProtectionLevel (..),++ -- ** DestroyCryptoKeyVersionRequest+ DestroyCryptoKeyVersionRequest (..),+ newDestroyCryptoKeyVersionRequest,++ -- ** Digest+ Digest (..),+ newDigest,++ -- ** EkmConfig+ EkmConfig (..),+ newEkmConfig,++ -- ** EkmConnection+ EkmConnection (..),+ newEkmConnection,++ -- ** EkmConnection_KeyManagementMode+ EkmConnection_KeyManagementMode (..),++ -- ** EncryptRequest+ EncryptRequest (..),+ newEncryptRequest,++ -- ** EncryptResponse+ EncryptResponse (..),+ newEncryptResponse,++ -- ** EncryptResponse_ProtectionLevel+ EncryptResponse_ProtectionLevel (..),++ -- ** Expr+ Expr (..),+ newExpr,++ -- ** ExternalProtectionLevelOptions+ ExternalProtectionLevelOptions (..),+ newExternalProtectionLevelOptions,++ -- ** GenerateRandomBytesRequest+ GenerateRandomBytesRequest (..),+ newGenerateRandomBytesRequest,++ -- ** GenerateRandomBytesRequest_ProtectionLevel+ GenerateRandomBytesRequest_ProtectionLevel (..),++ -- ** GenerateRandomBytesResponse+ GenerateRandomBytesResponse (..),+ newGenerateRandomBytesResponse,++ -- ** ImportCryptoKeyVersionRequest+ ImportCryptoKeyVersionRequest (..),+ newImportCryptoKeyVersionRequest,++ -- ** ImportCryptoKeyVersionRequest_Algorithm+ ImportCryptoKeyVersionRequest_Algorithm (..),++ -- ** ImportJob+ ImportJob (..),+ newImportJob,++ -- ** ImportJob_ImportMethod+ ImportJob_ImportMethod (..),++ -- ** ImportJob_ProtectionLevel+ ImportJob_ProtectionLevel (..),++ -- ** ImportJob_State+ ImportJob_State (..),++ -- ** KeyAccessJustificationsPolicy+ KeyAccessJustificationsPolicy (..),+ newKeyAccessJustificationsPolicy,++ -- ** KeyAccessJustificationsPolicy_AllowedAccessReasonsItem+ KeyAccessJustificationsPolicy_AllowedAccessReasonsItem (..),++ -- ** KeyHandle+ KeyHandle (..),+ newKeyHandle,++ -- ** KeyOperationAttestation+ KeyOperationAttestation (..),+ newKeyOperationAttestation,++ -- ** KeyOperationAttestation_Format+ KeyOperationAttestation_Format (..),++ -- ** KeyRing+ KeyRing (..),+ newKeyRing,++ -- ** ListCryptoKeyVersionsResponse+ ListCryptoKeyVersionsResponse (..),+ newListCryptoKeyVersionsResponse,++ -- ** ListCryptoKeysResponse+ ListCryptoKeysResponse (..),+ newListCryptoKeysResponse,++ -- ** ListEkmConnectionsResponse+ ListEkmConnectionsResponse (..),+ newListEkmConnectionsResponse,++ -- ** ListImportJobsResponse+ ListImportJobsResponse (..),+ newListImportJobsResponse,++ -- ** ListKeyHandlesResponse+ ListKeyHandlesResponse (..),+ newListKeyHandlesResponse,++ -- ** ListKeyRingsResponse+ ListKeyRingsResponse (..),+ newListKeyRingsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** LocationMetadata+ LocationMetadata (..),+ newLocationMetadata,++ -- ** MacSignRequest+ MacSignRequest (..),+ newMacSignRequest,++ -- ** MacSignResponse+ MacSignResponse (..),+ newMacSignResponse,++ -- ** MacSignResponse_ProtectionLevel+ MacSignResponse_ProtectionLevel (..),++ -- ** MacVerifyRequest+ MacVerifyRequest (..),+ newMacVerifyRequest,++ -- ** MacVerifyResponse+ MacVerifyResponse (..),+ newMacVerifyResponse,++ -- ** MacVerifyResponse_ProtectionLevel+ MacVerifyResponse_ProtectionLevel (..),++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** PublicKey+ PublicKey (..),+ newPublicKey,++ -- ** PublicKey_Algorithm+ PublicKey_Algorithm (..),++ -- ** PublicKey_ProtectionLevel+ PublicKey_ProtectionLevel (..),++ -- ** PublicKey_PublicKeyFormat+ PublicKey_PublicKeyFormat (..),++ -- ** RawDecryptRequest+ RawDecryptRequest (..),+ newRawDecryptRequest,++ -- ** RawDecryptResponse+ RawDecryptResponse (..),+ newRawDecryptResponse,++ -- ** RawDecryptResponse_ProtectionLevel+ RawDecryptResponse_ProtectionLevel (..),++ -- ** RawEncryptRequest+ RawEncryptRequest (..),+ newRawEncryptRequest,++ -- ** RawEncryptResponse+ RawEncryptResponse (..),+ newRawEncryptResponse,++ -- ** RawEncryptResponse_ProtectionLevel+ RawEncryptResponse_ProtectionLevel (..),++ -- ** RestoreCryptoKeyVersionRequest+ RestoreCryptoKeyVersionRequest (..),+ newRestoreCryptoKeyVersionRequest,++ -- ** ServiceResolver+ ServiceResolver (..),+ newServiceResolver,++ -- ** SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- ** ShowEffectiveAutokeyConfigResponse+ ShowEffectiveAutokeyConfigResponse (..),+ newShowEffectiveAutokeyConfigResponse,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- ** TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- ** UpdateCryptoKeyPrimaryVersionRequest+ UpdateCryptoKeyPrimaryVersionRequest (..),+ newUpdateCryptoKeyPrimaryVersionRequest,++ -- ** VerifyConnectivityResponse+ VerifyConnectivityResponse (..),+ newVerifyConnectivityResponse,++ -- ** WrappingPublicKey+ WrappingPublicKey (..),+ newWrappingPublicKey,++ -- ** ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyPublicKeyFormat (..),++ -- ** ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView+ ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListView (..),++ -- ** ProjectsLocationsKeyRingsCryptoKeysListVersionView+ ProjectsLocationsKeyRingsCryptoKeysListVersionView (..),+ )+where++import Gogol.CloudKMS.Internal.Product+import Gogol.CloudKMS.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v1@ of the Cloud Key Management Service (KMS) API. This contains the host and root path used as a starting point for constructing service requests.+cloudKMSService :: Core.ServiceConfig+cloudKMSService =+ Core.defaultService+ (Core.ServiceId "cloudkms:v1")+ "cloudkms.googleapis.com"++-- | See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.+type CloudPlatform'FullControl =+ "https://www.googleapis.com/auth/cloud-platform"++-- | View and manage your keys and secrets stored in Cloud Key Management Service+type Cloudkms'FullControl =+ "https://www.googleapis.com/auth/cloudkms"
− gen/Network/Google/CloudKMS.hs
@@ -1,463 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.CloudKMS--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Manages keys and performs cryptographic operations in a central cloud--- service, for direct use by other cloud resources and applications.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference>-module Network.Google.CloudKMS- (- -- * Service Configuration- cloudKMSService-- -- * OAuth Scopes- , cloudPlatformScope- , cloudKMSScope-- -- * API Declaration- , CloudKMSAPI-- -- * Resources-- -- ** cloudkms.projects.locations.get- , module Network.Google.Resource.CloudKMS.Projects.Locations.Get-- -- ** cloudkms.projects.locations.keyRings.create- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Create-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.create- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.decrypt- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.encrypt- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.get- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.list- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.patch- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIAMPermissions-- -- ** cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion-- -- ** cloudkms.projects.locations.keyRings.get- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Get-- -- ** cloudkms.projects.locations.keyRings.getIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.GetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.importJobs.getIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.importJobs.setIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.importJobs.testIamPermissions- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIAMPermissions-- -- ** cloudkms.projects.locations.keyRings.list- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.List-- -- ** cloudkms.projects.locations.keyRings.setIamPolicy- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.SetIAMPolicy-- -- ** cloudkms.projects.locations.keyRings.testIamPermissions- , module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.TestIAMPermissions-- -- ** cloudkms.projects.locations.list- , module Network.Google.Resource.CloudKMS.Projects.Locations.List-- -- * Types-- -- ** AsymmetricDecryptResponse- , AsymmetricDecryptResponse- , asymmetricDecryptResponse- , adrPlaintext-- -- ** EncryptResponse- , EncryptResponse- , encryptResponse- , erName- , erCiphertext-- -- ** LocationSchema- , LocationSchema- , locationSchema- , lsAddtional-- -- ** AuditConfig- , AuditConfig- , auditConfig- , acService- , acAuditLogConfigs-- -- ** Expr- , Expr- , expr- , eLocation- , eExpression- , eTitle- , eDescription-- -- ** ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- ** ListKeyRingsResponse- , ListKeyRingsResponse- , listKeyRingsResponse- , lkrrNextPageToken- , lkrrTotalSize- , lkrrKeyRings-- -- ** AsymmetricSignResponse- , AsymmetricSignResponse- , asymmetricSignResponse- , asrSignature-- -- ** CryptoKeyPurpose- , CryptoKeyPurpose (..)-- -- ** KeyRing- , KeyRing- , keyRing- , krName- , krCreateTime-- -- ** DestroyCryptoKeyVersionRequest- , DestroyCryptoKeyVersionRequest- , destroyCryptoKeyVersionRequest-- -- ** Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- ** AsymmetricSignRequest- , AsymmetricSignRequest- , asymmetricSignRequest- , asrDigest-- -- ** CryptoKeyVersionTemplateProtectionLevel- , CryptoKeyVersionTemplateProtectionLevel (..)-- -- ** PublicKey- , PublicKey- , publicKey- , pkPem- , pkAlgorithm-- -- ** DecryptResponse- , DecryptResponse- , decryptResponse- , drPlaintext-- -- ** CryptoKeyVersionTemplate- , CryptoKeyVersionTemplate- , cryptoKeyVersionTemplate- , ckvtAlgorithm- , ckvtProtectionLevel-- -- ** SetIAMPolicyRequest- , SetIAMPolicyRequest- , setIAMPolicyRequest- , siprUpdateMask- , siprPolicy-- -- ** CryptoKeyLabels- , CryptoKeyLabels- , cryptoKeyLabels- , cklAddtional-- -- ** CryptoKeyVersionTemplateAlgorithm- , CryptoKeyVersionTemplateAlgorithm (..)-- -- ** PublicKeyAlgorithm- , PublicKeyAlgorithm (..)-- -- ** CryptoKeyVersionState- , CryptoKeyVersionState (..)-- -- ** CryptoKey- , CryptoKey- , cryptoKey- , ckVersionTemplate- , ckPurpose- , ckRotationPeriod- , ckPrimary- , ckName- , ckLabels- , ckNextRotationTime- , ckCreateTime-- -- ** DecryptRequest- , DecryptRequest- , decryptRequest- , drAdditionalAuthenticatedData- , drCiphertext-- -- ** KeyOperationAttestation- , KeyOperationAttestation- , keyOperationAttestation- , koaFormat- , koaContent-- -- ** ListCryptoKeyVersionsResponse- , ListCryptoKeyVersionsResponse- , listCryptoKeyVersionsResponse- , lckvrNextPageToken- , lckvrTotalSize- , lckvrCryptoKeyVersions-- -- ** KeyOperationAttestationFormat- , KeyOperationAttestationFormat (..)-- -- ** RestoreCryptoKeyVersionRequest- , RestoreCryptoKeyVersionRequest- , restoreCryptoKeyVersionRequest-- -- ** AuditLogConfigLogType- , AuditLogConfigLogType (..)-- -- ** UpdateCryptoKeyPrimaryVersionRequest- , UpdateCryptoKeyPrimaryVersionRequest- , updateCryptoKeyPrimaryVersionRequest- , uckpvrCryptoKeyVersionId-- -- ** Xgafv- , Xgafv (..)-- -- ** TestIAMPermissionsRequest- , TestIAMPermissionsRequest- , testIAMPermissionsRequest- , tiprPermissions-- -- ** TestIAMPermissionsResponse- , TestIAMPermissionsResponse- , testIAMPermissionsResponse- , tiamprPermissions-- -- ** Digest- , Digest- , digest- , dSha512- , dSha384- , dSha256-- -- ** Policy- , Policy- , policy- , pAuditConfigs- , pEtag- , pVersion- , pBindings-- -- ** LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- ** LocationMetadata- , LocationMetadata- , locationMetadata- , lmHSMAvailable-- -- ** AuditLogConfig- , AuditLogConfig- , auditLogConfig- , alcLogType- , alcExemptedMembers-- -- ** CryptoKeyVersionProtectionLevel- , CryptoKeyVersionProtectionLevel (..)-- -- ** ListCryptoKeysResponse- , ListCryptoKeysResponse- , listCryptoKeysResponse- , lckrCryptoKeys- , lckrNextPageToken- , lckrTotalSize-- -- ** AsymmetricDecryptRequest- , AsymmetricDecryptRequest- , asymmetricDecryptRequest- , adrCiphertext-- -- ** CryptoKeyVersion- , CryptoKeyVersion- , cryptoKeyVersion- , ckvState- , ckvAttestation- , ckvGenerateTime- , ckvName- , ckvAlgorithm- , ckvDestroyTime- , ckvProtectionLevel- , ckvDestroyEventTime- , ckvCreateTime-- -- ** EncryptRequest- , EncryptRequest- , encryptRequest- , erAdditionalAuthenticatedData- , erPlaintext-- -- ** CryptoKeyVersionAlgorithm- , CryptoKeyVersionAlgorithm (..)-- -- ** Binding- , Binding- , binding- , bMembers- , bRole- , bCondition- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude-import Network.Google.Resource.CloudKMS.Projects.Locations.Get-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Create-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIAMPermissions-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Get-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.GetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIAMPermissions-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.List-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.SetIAMPolicy-import Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.TestIAMPermissions-import Network.Google.Resource.CloudKMS.Projects.Locations.List--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Cloud Key Management Service (KMS) API service.-type CloudKMSAPI =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysEncryptResource- :<|> ProjectsLocationsKeyRingsCryptoKeysListResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicyResource- :<|> ProjectsLocationsKeyRingsCryptoKeysPatchResource- :<|> ProjectsLocationsKeyRingsCryptoKeysGetResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysCreateResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicyResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysDecryptResource- :<|>- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissionsResource- :<|>- ProjectsLocationsKeyRingsImportJobsGetIAMPolicyResource- :<|>- ProjectsLocationsKeyRingsImportJobsSetIAMPolicyResource- :<|>- ProjectsLocationsKeyRingsImportJobsTestIAMPermissionsResource- :<|> ProjectsLocationsKeyRingsListResource- :<|> ProjectsLocationsKeyRingsGetIAMPolicyResource- :<|> ProjectsLocationsKeyRingsGetResource- :<|> ProjectsLocationsKeyRingsCreateResource- :<|> ProjectsLocationsKeyRingsSetIAMPolicyResource- :<|>- ProjectsLocationsKeyRingsTestIAMPermissionsResource- :<|> ProjectsLocationsListResource- :<|> ProjectsLocationsGetResource
− gen/Network/Google/CloudKMS/Types.hs
@@ -1,293 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudKMS.Types--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.CloudKMS.Types- (- -- * Service Configuration- cloudKMSService-- -- * OAuth Scopes- , cloudPlatformScope- , cloudKMSScope-- -- * AsymmetricDecryptResponse- , AsymmetricDecryptResponse- , asymmetricDecryptResponse- , adrPlaintext-- -- * EncryptResponse- , EncryptResponse- , encryptResponse- , erName- , erCiphertext-- -- * LocationSchema- , LocationSchema- , locationSchema- , lsAddtional-- -- * AuditConfig- , AuditConfig- , auditConfig- , acService- , acAuditLogConfigs-- -- * Expr- , Expr- , expr- , eLocation- , eExpression- , eTitle- , eDescription-- -- * ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- * ListKeyRingsResponse- , ListKeyRingsResponse- , listKeyRingsResponse- , lkrrNextPageToken- , lkrrTotalSize- , lkrrKeyRings-- -- * AsymmetricSignResponse- , AsymmetricSignResponse- , asymmetricSignResponse- , asrSignature-- -- * CryptoKeyPurpose- , CryptoKeyPurpose (..)-- -- * KeyRing- , KeyRing- , keyRing- , krName- , krCreateTime-- -- * DestroyCryptoKeyVersionRequest- , DestroyCryptoKeyVersionRequest- , destroyCryptoKeyVersionRequest-- -- * Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- * AsymmetricSignRequest- , AsymmetricSignRequest- , asymmetricSignRequest- , asrDigest-- -- * CryptoKeyVersionTemplateProtectionLevel- , CryptoKeyVersionTemplateProtectionLevel (..)-- -- * PublicKey- , PublicKey- , publicKey- , pkPem- , pkAlgorithm-- -- * DecryptResponse- , DecryptResponse- , decryptResponse- , drPlaintext-- -- * CryptoKeyVersionTemplate- , CryptoKeyVersionTemplate- , cryptoKeyVersionTemplate- , ckvtAlgorithm- , ckvtProtectionLevel-- -- * SetIAMPolicyRequest- , SetIAMPolicyRequest- , setIAMPolicyRequest- , siprUpdateMask- , siprPolicy-- -- * CryptoKeyLabels- , CryptoKeyLabels- , cryptoKeyLabels- , cklAddtional-- -- * CryptoKeyVersionTemplateAlgorithm- , CryptoKeyVersionTemplateAlgorithm (..)-- -- * PublicKeyAlgorithm- , PublicKeyAlgorithm (..)-- -- * CryptoKeyVersionState- , CryptoKeyVersionState (..)-- -- * CryptoKey- , CryptoKey- , cryptoKey- , ckVersionTemplate- , ckPurpose- , ckRotationPeriod- , ckPrimary- , ckName- , ckLabels- , ckNextRotationTime- , ckCreateTime-- -- * DecryptRequest- , DecryptRequest- , decryptRequest- , drAdditionalAuthenticatedData- , drCiphertext-- -- * KeyOperationAttestation- , KeyOperationAttestation- , keyOperationAttestation- , koaFormat- , koaContent-- -- * ListCryptoKeyVersionsResponse- , ListCryptoKeyVersionsResponse- , listCryptoKeyVersionsResponse- , lckvrNextPageToken- , lckvrTotalSize- , lckvrCryptoKeyVersions-- -- * KeyOperationAttestationFormat- , KeyOperationAttestationFormat (..)-- -- * RestoreCryptoKeyVersionRequest- , RestoreCryptoKeyVersionRequest- , restoreCryptoKeyVersionRequest-- -- * AuditLogConfigLogType- , AuditLogConfigLogType (..)-- -- * UpdateCryptoKeyPrimaryVersionRequest- , UpdateCryptoKeyPrimaryVersionRequest- , updateCryptoKeyPrimaryVersionRequest- , uckpvrCryptoKeyVersionId-- -- * Xgafv- , Xgafv (..)-- -- * TestIAMPermissionsRequest- , TestIAMPermissionsRequest- , testIAMPermissionsRequest- , tiprPermissions-- -- * TestIAMPermissionsResponse- , TestIAMPermissionsResponse- , testIAMPermissionsResponse- , tiamprPermissions-- -- * Digest- , Digest- , digest- , dSha512- , dSha384- , dSha256-- -- * Policy- , Policy- , policy- , pAuditConfigs- , pEtag- , pVersion- , pBindings-- -- * LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- * LocationMetadata- , LocationMetadata- , locationMetadata- , lmHSMAvailable-- -- * AuditLogConfig- , AuditLogConfig- , auditLogConfig- , alcLogType- , alcExemptedMembers-- -- * CryptoKeyVersionProtectionLevel- , CryptoKeyVersionProtectionLevel (..)-- -- * ListCryptoKeysResponse- , ListCryptoKeysResponse- , listCryptoKeysResponse- , lckrCryptoKeys- , lckrNextPageToken- , lckrTotalSize-- -- * AsymmetricDecryptRequest- , AsymmetricDecryptRequest- , asymmetricDecryptRequest- , adrCiphertext-- -- * CryptoKeyVersion- , CryptoKeyVersion- , cryptoKeyVersion- , ckvState- , ckvAttestation- , ckvGenerateTime- , ckvName- , ckvAlgorithm- , ckvDestroyTime- , ckvProtectionLevel- , ckvDestroyEventTime- , ckvCreateTime-- -- * EncryptRequest- , EncryptRequest- , encryptRequest- , erAdditionalAuthenticatedData- , erPlaintext-- -- * CryptoKeyVersionAlgorithm- , CryptoKeyVersionAlgorithm (..)-- -- * Binding- , Binding- , binding- , bMembers- , bRole- , bCondition- ) where--import Network.Google.CloudKMS.Types.Product-import Network.Google.CloudKMS.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Cloud Key Management Service (KMS) API. This contains the host and root path used as a starting point for constructing service requests.-cloudKMSService :: ServiceConfig-cloudKMSService- = defaultService (ServiceId "cloudkms:v1")- "cloudkms.googleapis.com"---- | View and manage your data across Google Cloud Platform services-cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]-cloudPlatformScope = Proxy---- | View and manage your keys and secrets stored in Cloud Key Management--- Service-cloudKMSScope :: Proxy '["https://www.googleapis.com/auth/cloudkms"]-cloudKMSScope = Proxy
− gen/Network/Google/CloudKMS/Types/Product.hs
@@ -1,2039 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}--{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudKMS.Types.Product--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.CloudKMS.Types.Product where--import Network.Google.CloudKMS.Types.Sum-import Network.Google.Prelude---- | Response message for KeyManagementService.AsymmetricDecrypt.------ /See:/ 'asymmetricDecryptResponse' smart constructor.-newtype AsymmetricDecryptResponse =- AsymmetricDecryptResponse'- { _adrPlaintext :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AsymmetricDecryptResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'adrPlaintext'-asymmetricDecryptResponse- :: AsymmetricDecryptResponse-asymmetricDecryptResponse = AsymmetricDecryptResponse' {_adrPlaintext = Nothing}----- | The decrypted data originally encrypted with the matching public key.-adrPlaintext :: Lens' AsymmetricDecryptResponse (Maybe ByteString)-adrPlaintext- = lens _adrPlaintext (\ s a -> s{_adrPlaintext = a})- . mapping _Bytes--instance FromJSON AsymmetricDecryptResponse where- parseJSON- = withObject "AsymmetricDecryptResponse"- (\ o ->- AsymmetricDecryptResponse' <$> (o .:? "plaintext"))--instance ToJSON AsymmetricDecryptResponse where- toJSON AsymmetricDecryptResponse'{..}- = object- (catMaybes [("plaintext" .=) <$> _adrPlaintext])---- | Response message for KeyManagementService.Encrypt.------ /See:/ 'encryptResponse' smart constructor.-data EncryptResponse =- EncryptResponse'- { _erName :: !(Maybe Text)- , _erCiphertext :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EncryptResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'erName'------ * 'erCiphertext'-encryptResponse- :: EncryptResponse-encryptResponse = EncryptResponse' {_erName = Nothing, _erCiphertext = Nothing}----- | The resource name of the CryptoKeyVersion used in encryption.-erName :: Lens' EncryptResponse (Maybe Text)-erName = lens _erName (\ s a -> s{_erName = a})---- | The encrypted data.-erCiphertext :: Lens' EncryptResponse (Maybe ByteString)-erCiphertext- = lens _erCiphertext (\ s a -> s{_erCiphertext = a})- . mapping _Bytes--instance FromJSON EncryptResponse where- parseJSON- = withObject "EncryptResponse"- (\ o ->- EncryptResponse' <$>- (o .:? "name") <*> (o .:? "ciphertext"))--instance ToJSON EncryptResponse where- toJSON EncryptResponse'{..}- = object- (catMaybes- [("name" .=) <$> _erName,- ("ciphertext" .=) <$> _erCiphertext])---- | Service-specific metadata. For example the available capacity at the--- given location.------ /See:/ 'locationSchema' smart constructor.-newtype LocationSchema =- LocationSchema'- { _lsAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocationSchema' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lsAddtional'-locationSchema- :: HashMap Text JSONValue -- ^ 'lsAddtional'- -> LocationSchema-locationSchema pLsAddtional_ =- LocationSchema' {_lsAddtional = _Coerce # pLsAddtional_}----- | Properties of the object. Contains field \'type with type URL.-lsAddtional :: Lens' LocationSchema (HashMap Text JSONValue)-lsAddtional- = lens _lsAddtional (\ s a -> s{_lsAddtional = a}) .- _Coerce--instance FromJSON LocationSchema where- parseJSON- = withObject "LocationSchema"- (\ o -> LocationSchema' <$> (parseJSONObject o))--instance ToJSON LocationSchema where- toJSON = toJSON . _lsAddtional---- | Specifies the audit configuration for a service. The configuration--- determines which permission types are logged, and what identities, if--- any, are exempted from logging. An AuditConfig must have one or more--- AuditLogConfigs. If there are AuditConfigs for both \`allServices\` and--- a specific service, the union of the two AuditConfigs is used for that--- service: the log_types specified in each AuditConfig are enabled, and--- the exempted_members in each AuditLogConfig are exempted. Example Policy--- with multiple AuditConfigs: { \"audit_configs\": [ { \"service\":--- \"allServices\" \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\",--- \"exempted_members\": [ \"user:foo\'gmail.com\" ] }, { \"log_type\":--- \"DATA_WRITE\", }, { \"log_type\": \"ADMIN_READ\", } ] }, { \"service\":--- \"fooservice.googleapis.com\" \"audit_log_configs\": [ { \"log_type\":--- \"DATA_READ\", }, { \"log_type\": \"DATA_WRITE\", \"exempted_members\":--- [ \"user:bar\'gmail.com\" ] } ] } ] } For fooservice, this policy--- enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also exempts--- foo\'gmail.com from DATA_READ logging, and bar\'gmail.com from--- DATA_WRITE logging.------ /See:/ 'auditConfig' smart constructor.-data AuditConfig =- AuditConfig'- { _acService :: !(Maybe Text)- , _acAuditLogConfigs :: !(Maybe [AuditLogConfig])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AuditConfig' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'acService'------ * 'acAuditLogConfigs'-auditConfig- :: AuditConfig-auditConfig = AuditConfig' {_acService = Nothing, _acAuditLogConfigs = Nothing}----- | Specifies a service that will be enabled for audit logging. For example,--- \`storage.googleapis.com\`, \`cloudsql.googleapis.com\`. \`allServices\`--- is a special value that covers all services.-acService :: Lens' AuditConfig (Maybe Text)-acService- = lens _acService (\ s a -> s{_acService = a})---- | The configuration for logging of each type of permission.-acAuditLogConfigs :: Lens' AuditConfig [AuditLogConfig]-acAuditLogConfigs- = lens _acAuditLogConfigs- (\ s a -> s{_acAuditLogConfigs = a})- . _Default- . _Coerce--instance FromJSON AuditConfig where- parseJSON- = withObject "AuditConfig"- (\ o ->- AuditConfig' <$>- (o .:? "service") <*>- (o .:? "auditLogConfigs" .!= mempty))--instance ToJSON AuditConfig where- toJSON AuditConfig'{..}- = object- (catMaybes- [("service" .=) <$> _acService,- ("auditLogConfigs" .=) <$> _acAuditLogConfigs])---- | Represents an expression text. Example: title: \"User account presence\"--- description: \"Determines whether the request has a user account\"--- expression: \"size(request.user) > 0\"------ /See:/ 'expr' smart constructor.-data Expr =- Expr'- { _eLocation :: !(Maybe Text)- , _eExpression :: !(Maybe Text)- , _eTitle :: !(Maybe Text)- , _eDescription :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Expr' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eLocation'------ * 'eExpression'------ * 'eTitle'------ * 'eDescription'-expr- :: Expr-expr =- Expr'- { _eLocation = Nothing- , _eExpression = Nothing- , _eTitle = Nothing- , _eDescription = Nothing- }----- | An optional string indicating the location of the expression for error--- reporting, e.g. a file name and a position in the file.-eLocation :: Lens' Expr (Maybe Text)-eLocation- = lens _eLocation (\ s a -> s{_eLocation = a})---- | 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.-eExpression :: Lens' Expr (Maybe Text)-eExpression- = lens _eExpression (\ s a -> s{_eExpression = a})---- | 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.-eTitle :: Lens' Expr (Maybe Text)-eTitle = lens _eTitle (\ s a -> s{_eTitle = a})---- | An optional description of the expression. This is a longer text which--- describes the expression, e.g. when hovered over it in a UI.-eDescription :: Lens' Expr (Maybe Text)-eDescription- = lens _eDescription (\ s a -> s{_eDescription = a})--instance FromJSON Expr where- parseJSON- = withObject "Expr"- (\ o ->- Expr' <$>- (o .:? "location") <*> (o .:? "expression") <*>- (o .:? "title")- <*> (o .:? "description"))--instance ToJSON Expr where- toJSON Expr'{..}- = object- (catMaybes- [("location" .=) <$> _eLocation,- ("expression" .=) <$> _eExpression,- ("title" .=) <$> _eTitle,- ("description" .=) <$> _eDescription])---- | The response message for Locations.ListLocations.------ /See:/ 'listLocationsResponse' smart constructor.-data ListLocationsResponse =- ListLocationsResponse'- { _llrNextPageToken :: !(Maybe Text)- , _llrLocations :: !(Maybe [Location])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListLocationsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'llrNextPageToken'------ * 'llrLocations'-listLocationsResponse- :: ListLocationsResponse-listLocationsResponse =- ListLocationsResponse' {_llrNextPageToken = Nothing, _llrLocations = Nothing}----- | The standard List next-page token.-llrNextPageToken :: Lens' ListLocationsResponse (Maybe Text)-llrNextPageToken- = lens _llrNextPageToken- (\ s a -> s{_llrNextPageToken = a})---- | A list of locations that matches the specified filter in the request.-llrLocations :: Lens' ListLocationsResponse [Location]-llrLocations- = lens _llrLocations (\ s a -> s{_llrLocations = a})- . _Default- . _Coerce--instance FromJSON ListLocationsResponse where- parseJSON- = withObject "ListLocationsResponse"- (\ o ->- ListLocationsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "locations" .!= mempty))--instance ToJSON ListLocationsResponse where- toJSON ListLocationsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _llrNextPageToken,- ("locations" .=) <$> _llrLocations])---- | Response message for KeyManagementService.ListKeyRings.------ /See:/ 'listKeyRingsResponse' smart constructor.-data ListKeyRingsResponse =- ListKeyRingsResponse'- { _lkrrNextPageToken :: !(Maybe Text)- , _lkrrTotalSize :: !(Maybe (Textual Int32))- , _lkrrKeyRings :: !(Maybe [KeyRing])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListKeyRingsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lkrrNextPageToken'------ * 'lkrrTotalSize'------ * 'lkrrKeyRings'-listKeyRingsResponse- :: ListKeyRingsResponse-listKeyRingsResponse =- ListKeyRingsResponse'- { _lkrrNextPageToken = Nothing- , _lkrrTotalSize = Nothing- , _lkrrKeyRings = Nothing- }----- | A token to retrieve next page of results. Pass this value in--- ListKeyRingsRequest.page_token to retrieve the next page of results.-lkrrNextPageToken :: Lens' ListKeyRingsResponse (Maybe Text)-lkrrNextPageToken- = lens _lkrrNextPageToken- (\ s a -> s{_lkrrNextPageToken = a})---- | The total number of KeyRings that matched the query.-lkrrTotalSize :: Lens' ListKeyRingsResponse (Maybe Int32)-lkrrTotalSize- = lens _lkrrTotalSize- (\ s a -> s{_lkrrTotalSize = a})- . mapping _Coerce---- | The list of KeyRings.-lkrrKeyRings :: Lens' ListKeyRingsResponse [KeyRing]-lkrrKeyRings- = lens _lkrrKeyRings (\ s a -> s{_lkrrKeyRings = a})- . _Default- . _Coerce--instance FromJSON ListKeyRingsResponse where- parseJSON- = withObject "ListKeyRingsResponse"- (\ o ->- ListKeyRingsResponse' <$>- (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>- (o .:? "keyRings" .!= mempty))--instance ToJSON ListKeyRingsResponse where- toJSON ListKeyRingsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lkrrNextPageToken,- ("totalSize" .=) <$> _lkrrTotalSize,- ("keyRings" .=) <$> _lkrrKeyRings])---- | Response message for KeyManagementService.AsymmetricSign.------ /See:/ 'asymmetricSignResponse' smart constructor.-newtype AsymmetricSignResponse =- AsymmetricSignResponse'- { _asrSignature :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AsymmetricSignResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'asrSignature'-asymmetricSignResponse- :: AsymmetricSignResponse-asymmetricSignResponse = AsymmetricSignResponse' {_asrSignature = Nothing}----- | The created signature.-asrSignature :: Lens' AsymmetricSignResponse (Maybe ByteString)-asrSignature- = lens _asrSignature (\ s a -> s{_asrSignature = a})- . mapping _Bytes--instance FromJSON AsymmetricSignResponse where- parseJSON- = withObject "AsymmetricSignResponse"- (\ o ->- AsymmetricSignResponse' <$> (o .:? "signature"))--instance ToJSON AsymmetricSignResponse where- toJSON AsymmetricSignResponse'{..}- = object- (catMaybes [("signature" .=) <$> _asrSignature])---- | A KeyRing is a toplevel logical grouping of CryptoKeys.------ /See:/ 'keyRing' smart constructor.-data KeyRing =- KeyRing'- { _krName :: !(Maybe Text)- , _krCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'KeyRing' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'krName'------ * 'krCreateTime'-keyRing- :: KeyRing-keyRing = KeyRing' {_krName = Nothing, _krCreateTime = Nothing}----- | Output only. The resource name for the KeyRing in the format--- \`projects\/*\/locations\/*\/keyRings\/*\`.-krName :: Lens' KeyRing (Maybe Text)-krName = lens _krName (\ s a -> s{_krName = a})---- | Output only. The time at which this KeyRing was created.-krCreateTime :: Lens' KeyRing (Maybe UTCTime)-krCreateTime- = lens _krCreateTime (\ s a -> s{_krCreateTime = a})- . mapping _DateTime--instance FromJSON KeyRing where- parseJSON- = withObject "KeyRing"- (\ o ->- KeyRing' <$> (o .:? "name") <*> (o .:? "createTime"))--instance ToJSON KeyRing where- toJSON KeyRing'{..}- = object- (catMaybes- [("name" .=) <$> _krName,- ("createTime" .=) <$> _krCreateTime])---- | Request message for KeyManagementService.DestroyCryptoKeyVersion.------ /See:/ 'destroyCryptoKeyVersionRequest' smart constructor.-data DestroyCryptoKeyVersionRequest =- DestroyCryptoKeyVersionRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DestroyCryptoKeyVersionRequest' with the minimum fields required to make a request.----destroyCryptoKeyVersionRequest- :: DestroyCryptoKeyVersionRequest-destroyCryptoKeyVersionRequest = DestroyCryptoKeyVersionRequest'---instance FromJSON DestroyCryptoKeyVersionRequest- where- parseJSON- = withObject "DestroyCryptoKeyVersionRequest"- (\ o -> pure DestroyCryptoKeyVersionRequest')--instance ToJSON DestroyCryptoKeyVersionRequest where- toJSON = const emptyObject---- | A resource that represents Google Cloud Platform location.------ /See:/ 'location' smart constructor.-data Location =- Location'- { _lName :: !(Maybe Text)- , _lMetadata :: !(Maybe LocationSchema)- , _lDisplayName :: !(Maybe Text)- , _lLabels :: !(Maybe LocationLabels)- , _lLocationId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Location' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lName'------ * 'lMetadata'------ * 'lDisplayName'------ * 'lLabels'------ * 'lLocationId'-location- :: Location-location =- Location'- { _lName = Nothing- , _lMetadata = Nothing- , _lDisplayName = Nothing- , _lLabels = Nothing- , _lLocationId = Nothing- }----- | Resource name for the location, which may vary between implementations.--- For example: \`\"projects\/example-project\/locations\/us-east1\"\`-lName :: Lens' Location (Maybe Text)-lName = lens _lName (\ s a -> s{_lName = a})---- | Service-specific metadata. For example the available capacity at the--- given location.-lMetadata :: Lens' Location (Maybe LocationSchema)-lMetadata- = lens _lMetadata (\ s a -> s{_lMetadata = a})---- | The friendly name for this location, typically a nearby city name. For--- example, \"Tokyo\".-lDisplayName :: Lens' Location (Maybe Text)-lDisplayName- = lens _lDisplayName (\ s a -> s{_lDisplayName = a})---- | Cross-service attributes for the location. For example--- {\"cloud.googleapis.com\/region\": \"us-east1\"}-lLabels :: Lens' Location (Maybe LocationLabels)-lLabels = lens _lLabels (\ s a -> s{_lLabels = a})---- | The canonical id for this location. For example: \`\"us-east1\"\`.-lLocationId :: Lens' Location (Maybe Text)-lLocationId- = lens _lLocationId (\ s a -> s{_lLocationId = a})--instance FromJSON Location where- parseJSON- = withObject "Location"- (\ o ->- Location' <$>- (o .:? "name") <*> (o .:? "metadata") <*>- (o .:? "displayName")- <*> (o .:? "labels")- <*> (o .:? "locationId"))--instance ToJSON Location where- toJSON Location'{..}- = object- (catMaybes- [("name" .=) <$> _lName,- ("metadata" .=) <$> _lMetadata,- ("displayName" .=) <$> _lDisplayName,- ("labels" .=) <$> _lLabels,- ("locationId" .=) <$> _lLocationId])---- | Request message for KeyManagementService.AsymmetricSign.------ /See:/ 'asymmetricSignRequest' smart constructor.-newtype AsymmetricSignRequest =- AsymmetricSignRequest'- { _asrDigest :: Maybe Digest- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AsymmetricSignRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'asrDigest'-asymmetricSignRequest- :: AsymmetricSignRequest-asymmetricSignRequest = AsymmetricSignRequest' {_asrDigest = Nothing}----- | Required. The digest of the data to sign. The digest must be produced--- with the same digest algorithm as specified by the key version\'s--- algorithm.-asrDigest :: Lens' AsymmetricSignRequest (Maybe Digest)-asrDigest- = lens _asrDigest (\ s a -> s{_asrDigest = a})--instance FromJSON AsymmetricSignRequest where- parseJSON- = withObject "AsymmetricSignRequest"- (\ o -> AsymmetricSignRequest' <$> (o .:? "digest"))--instance ToJSON AsymmetricSignRequest where- toJSON AsymmetricSignRequest'{..}- = object (catMaybes [("digest" .=) <$> _asrDigest])---- | The public key for a given CryptoKeyVersion. Obtained via GetPublicKey.------ /See:/ 'publicKey' smart constructor.-data PublicKey =- PublicKey'- { _pkPem :: !(Maybe Text)- , _pkAlgorithm :: !(Maybe PublicKeyAlgorithm)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PublicKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pkPem'------ * 'pkAlgorithm'-publicKey- :: PublicKey-publicKey = PublicKey' {_pkPem = Nothing, _pkAlgorithm = Nothing}----- | The public key, encoded in PEM format. For more information, see the--- [RFC 7468](https:\/\/tools.ietf.org\/html\/rfc7468) sections for--- [General--- Considerations](https:\/\/tools.ietf.org\/html\/rfc7468#section-2) and--- [Textual Encoding of Subject Public Key Info]--- (https:\/\/tools.ietf.org\/html\/rfc7468#section-13).-pkPem :: Lens' PublicKey (Maybe Text)-pkPem = lens _pkPem (\ s a -> s{_pkPem = a})---- | The Algorithm associated with this key.-pkAlgorithm :: Lens' PublicKey (Maybe PublicKeyAlgorithm)-pkAlgorithm- = lens _pkAlgorithm (\ s a -> s{_pkAlgorithm = a})--instance FromJSON PublicKey where- parseJSON- = withObject "PublicKey"- (\ o ->- PublicKey' <$> (o .:? "pem") <*> (o .:? "algorithm"))--instance ToJSON PublicKey where- toJSON PublicKey'{..}- = object- (catMaybes- [("pem" .=) <$> _pkPem,- ("algorithm" .=) <$> _pkAlgorithm])---- | Response message for KeyManagementService.Decrypt.------ /See:/ 'decryptResponse' smart constructor.-newtype DecryptResponse =- DecryptResponse'- { _drPlaintext :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DecryptResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'drPlaintext'-decryptResponse- :: DecryptResponse-decryptResponse = DecryptResponse' {_drPlaintext = Nothing}----- | The decrypted data originally supplied in EncryptRequest.plaintext.-drPlaintext :: Lens' DecryptResponse (Maybe ByteString)-drPlaintext- = lens _drPlaintext (\ s a -> s{_drPlaintext = a}) .- mapping _Bytes--instance FromJSON DecryptResponse where- parseJSON- = withObject "DecryptResponse"- (\ o -> DecryptResponse' <$> (o .:? "plaintext"))--instance ToJSON DecryptResponse where- toJSON DecryptResponse'{..}- = object- (catMaybes [("plaintext" .=) <$> _drPlaintext])---- | A CryptoKeyVersionTemplate specifies the properties to use when creating--- a new CryptoKeyVersion, either manually with CreateCryptoKeyVersion or--- automatically as a result of auto-rotation.------ /See:/ 'cryptoKeyVersionTemplate' smart constructor.-data CryptoKeyVersionTemplate =- CryptoKeyVersionTemplate'- { _ckvtAlgorithm :: !(Maybe CryptoKeyVersionTemplateAlgorithm)- , _ckvtProtectionLevel :: !(Maybe CryptoKeyVersionTemplateProtectionLevel)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CryptoKeyVersionTemplate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ckvtAlgorithm'------ * 'ckvtProtectionLevel'-cryptoKeyVersionTemplate- :: CryptoKeyVersionTemplate-cryptoKeyVersionTemplate =- CryptoKeyVersionTemplate'- {_ckvtAlgorithm = Nothing, _ckvtProtectionLevel = Nothing}----- | Required. Algorithm to use when creating a CryptoKeyVersion based on--- this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION--- is implied if both this field is omitted and CryptoKey.purpose is--- ENCRYPT_DECRYPT.-ckvtAlgorithm :: Lens' CryptoKeyVersionTemplate (Maybe CryptoKeyVersionTemplateAlgorithm)-ckvtAlgorithm- = lens _ckvtAlgorithm- (\ s a -> s{_ckvtAlgorithm = a})---- | ProtectionLevel to use when creating a CryptoKeyVersion based on this--- template. Immutable. Defaults to SOFTWARE.-ckvtProtectionLevel :: Lens' CryptoKeyVersionTemplate (Maybe CryptoKeyVersionTemplateProtectionLevel)-ckvtProtectionLevel- = lens _ckvtProtectionLevel- (\ s a -> s{_ckvtProtectionLevel = a})--instance FromJSON CryptoKeyVersionTemplate where- parseJSON- = withObject "CryptoKeyVersionTemplate"- (\ o ->- CryptoKeyVersionTemplate' <$>- (o .:? "algorithm") <*> (o .:? "protectionLevel"))--instance ToJSON CryptoKeyVersionTemplate where- toJSON CryptoKeyVersionTemplate'{..}- = object- (catMaybes- [("algorithm" .=) <$> _ckvtAlgorithm,- ("protectionLevel" .=) <$> _ckvtProtectionLevel])---- | Request message for \`SetIamPolicy\` method.------ /See:/ 'setIAMPolicyRequest' smart constructor.-data SetIAMPolicyRequest =- SetIAMPolicyRequest'- { _siprUpdateMask :: !(Maybe GFieldMask)- , _siprPolicy :: !(Maybe Policy)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SetIAMPolicyRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'siprUpdateMask'------ * 'siprPolicy'-setIAMPolicyRequest- :: SetIAMPolicyRequest-setIAMPolicyRequest =- SetIAMPolicyRequest' {_siprUpdateMask = Nothing, _siprPolicy = Nothing}----- | OPTIONAL: A FieldMask specifying which fields of the policy to modify.--- Only the fields in the mask will be modified. If no mask is provided,--- the following default mask is used: paths: \"bindings, etag\" This field--- is only used by Cloud IAM.-siprUpdateMask :: Lens' SetIAMPolicyRequest (Maybe GFieldMask)-siprUpdateMask- = lens _siprUpdateMask- (\ s a -> s{_siprUpdateMask = a})---- | REQUIRED: The complete policy to be applied to the \`resource\`. The--- size of the policy is limited to a few 10s of KB. An empty policy is a--- valid policy but certain Cloud Platform services (such as Projects)--- might reject them.-siprPolicy :: Lens' SetIAMPolicyRequest (Maybe Policy)-siprPolicy- = lens _siprPolicy (\ s a -> s{_siprPolicy = a})--instance FromJSON SetIAMPolicyRequest where- parseJSON- = withObject "SetIAMPolicyRequest"- (\ o ->- SetIAMPolicyRequest' <$>- (o .:? "updateMask") <*> (o .:? "policy"))--instance ToJSON SetIAMPolicyRequest where- toJSON SetIAMPolicyRequest'{..}- = object- (catMaybes- [("updateMask" .=) <$> _siprUpdateMask,- ("policy" .=) <$> _siprPolicy])---- | Labels with user-defined metadata. For more information, see [Labeling--- Keys](\/kms\/docs\/labeling-keys).------ /See:/ 'cryptoKeyLabels' smart constructor.-newtype CryptoKeyLabels =- CryptoKeyLabels'- { _cklAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CryptoKeyLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cklAddtional'-cryptoKeyLabels- :: HashMap Text Text -- ^ 'cklAddtional'- -> CryptoKeyLabels-cryptoKeyLabels pCklAddtional_ =- CryptoKeyLabels' {_cklAddtional = _Coerce # pCklAddtional_}---cklAddtional :: Lens' CryptoKeyLabels (HashMap Text Text)-cklAddtional- = lens _cklAddtional (\ s a -> s{_cklAddtional = a})- . _Coerce--instance FromJSON CryptoKeyLabels where- parseJSON- = withObject "CryptoKeyLabels"- (\ o -> CryptoKeyLabels' <$> (parseJSONObject o))--instance ToJSON CryptoKeyLabels where- toJSON = toJSON . _cklAddtional---- | A CryptoKey represents a logical key that can be used for cryptographic--- operations. A CryptoKey is made up of one or more versions, which--- represent the actual key material used in cryptographic operations.------ /See:/ 'cryptoKey' smart constructor.-data CryptoKey =- CryptoKey'- { _ckVersionTemplate :: !(Maybe CryptoKeyVersionTemplate)- , _ckPurpose :: !(Maybe CryptoKeyPurpose)- , _ckRotationPeriod :: !(Maybe GDuration)- , _ckPrimary :: !(Maybe CryptoKeyVersion)- , _ckName :: !(Maybe Text)- , _ckLabels :: !(Maybe CryptoKeyLabels)- , _ckNextRotationTime :: !(Maybe DateTime')- , _ckCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CryptoKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ckVersionTemplate'------ * 'ckPurpose'------ * 'ckRotationPeriod'------ * 'ckPrimary'------ * 'ckName'------ * 'ckLabels'------ * 'ckNextRotationTime'------ * 'ckCreateTime'-cryptoKey- :: CryptoKey-cryptoKey =- CryptoKey'- { _ckVersionTemplate = Nothing- , _ckPurpose = Nothing- , _ckRotationPeriod = Nothing- , _ckPrimary = Nothing- , _ckName = Nothing- , _ckLabels = Nothing- , _ckNextRotationTime = Nothing- , _ckCreateTime = Nothing- }----- | A template describing settings for new CryptoKeyVersion instances. The--- properties of new CryptoKeyVersion instances created by either--- CreateCryptoKeyVersion or auto-rotation are controlled by this template.-ckVersionTemplate :: Lens' CryptoKey (Maybe CryptoKeyVersionTemplate)-ckVersionTemplate- = lens _ckVersionTemplate- (\ s a -> s{_ckVersionTemplate = a})---- | The immutable purpose of this CryptoKey.-ckPurpose :: Lens' CryptoKey (Maybe CryptoKeyPurpose)-ckPurpose- = lens _ckPurpose (\ s a -> s{_ckPurpose = a})---- | next_rotation_time will be advanced by this period when the service--- automatically rotates a key. Must be at least one day. If--- rotation_period is set, next_rotation_time must also be set. Keys with--- purpose ENCRYPT_DECRYPT support automatic rotation. For other keys, this--- field must be omitted.-ckRotationPeriod :: Lens' CryptoKey (Maybe Scientific)-ckRotationPeriod- = lens _ckRotationPeriod- (\ s a -> s{_ckRotationPeriod = a})- . mapping _GDuration---- | Output only. A copy of the \"primary\" CryptoKeyVersion that will be--- used by Encrypt when this CryptoKey is given in EncryptRequest.name. The--- CryptoKey\'s primary version can be updated via--- UpdateCryptoKeyPrimaryVersion. All keys with purpose ENCRYPT_DECRYPT--- have a primary. For other keys, this field will be omitted.-ckPrimary :: Lens' CryptoKey (Maybe CryptoKeyVersion)-ckPrimary- = lens _ckPrimary (\ s a -> s{_ckPrimary = a})---- | Output only. The resource name for this CryptoKey in the format--- \`projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\`.-ckName :: Lens' CryptoKey (Maybe Text)-ckName = lens _ckName (\ s a -> s{_ckName = a})---- | Labels with user-defined metadata. For more information, see [Labeling--- Keys](\/kms\/docs\/labeling-keys).-ckLabels :: Lens' CryptoKey (Maybe CryptoKeyLabels)-ckLabels = lens _ckLabels (\ s a -> s{_ckLabels = a})---- | At next_rotation_time, the Key Management Service will automatically: 1.--- Create a new version of this CryptoKey. 2. Mark the new version as--- primary. Key rotations performed manually via CreateCryptoKeyVersion and--- UpdateCryptoKeyPrimaryVersion do not affect next_rotation_time. Keys--- with purpose ENCRYPT_DECRYPT support automatic rotation. For other keys,--- this field must be omitted.-ckNextRotationTime :: Lens' CryptoKey (Maybe UTCTime)-ckNextRotationTime- = lens _ckNextRotationTime- (\ s a -> s{_ckNextRotationTime = a})- . mapping _DateTime---- | Output only. The time at which this CryptoKey was created.-ckCreateTime :: Lens' CryptoKey (Maybe UTCTime)-ckCreateTime- = lens _ckCreateTime (\ s a -> s{_ckCreateTime = a})- . mapping _DateTime--instance FromJSON CryptoKey where- parseJSON- = withObject "CryptoKey"- (\ o ->- CryptoKey' <$>- (o .:? "versionTemplate") <*> (o .:? "purpose") <*>- (o .:? "rotationPeriod")- <*> (o .:? "primary")- <*> (o .:? "name")- <*> (o .:? "labels")- <*> (o .:? "nextRotationTime")- <*> (o .:? "createTime"))--instance ToJSON CryptoKey where- toJSON CryptoKey'{..}- = object- (catMaybes- [("versionTemplate" .=) <$> _ckVersionTemplate,- ("purpose" .=) <$> _ckPurpose,- ("rotationPeriod" .=) <$> _ckRotationPeriod,- ("primary" .=) <$> _ckPrimary,- ("name" .=) <$> _ckName, ("labels" .=) <$> _ckLabels,- ("nextRotationTime" .=) <$> _ckNextRotationTime,- ("createTime" .=) <$> _ckCreateTime])---- | Request message for KeyManagementService.Decrypt.------ /See:/ 'decryptRequest' smart constructor.-data DecryptRequest =- DecryptRequest'- { _drAdditionalAuthenticatedData :: !(Maybe Bytes)- , _drCiphertext :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DecryptRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'drAdditionalAuthenticatedData'------ * 'drCiphertext'-decryptRequest- :: DecryptRequest-decryptRequest =- DecryptRequest'- {_drAdditionalAuthenticatedData = Nothing, _drCiphertext = Nothing}----- | Optional data that must match the data originally supplied in--- EncryptRequest.additional_authenticated_data.-drAdditionalAuthenticatedData :: Lens' DecryptRequest (Maybe ByteString)-drAdditionalAuthenticatedData- = lens _drAdditionalAuthenticatedData- (\ s a -> s{_drAdditionalAuthenticatedData = a})- . mapping _Bytes---- | Required. The encrypted data originally returned in--- EncryptResponse.ciphertext.-drCiphertext :: Lens' DecryptRequest (Maybe ByteString)-drCiphertext- = lens _drCiphertext (\ s a -> s{_drCiphertext = a})- . mapping _Bytes--instance FromJSON DecryptRequest where- parseJSON- = withObject "DecryptRequest"- (\ o ->- DecryptRequest' <$>- (o .:? "additionalAuthenticatedData") <*>- (o .:? "ciphertext"))--instance ToJSON DecryptRequest where- toJSON DecryptRequest'{..}- = object- (catMaybes- [("additionalAuthenticatedData" .=) <$>- _drAdditionalAuthenticatedData,- ("ciphertext" .=) <$> _drCiphertext])---- | Contains an HSM-generated attestation about a key operation. For more--- information, see [Verifying attestations]--- (https:\/\/cloud.google.com\/kms\/docs\/attest-key).------ /See:/ 'keyOperationAttestation' smart constructor.-data KeyOperationAttestation =- KeyOperationAttestation'- { _koaFormat :: !(Maybe KeyOperationAttestationFormat)- , _koaContent :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'KeyOperationAttestation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'koaFormat'------ * 'koaContent'-keyOperationAttestation- :: KeyOperationAttestation-keyOperationAttestation =- KeyOperationAttestation' {_koaFormat = Nothing, _koaContent = Nothing}----- | Output only. The format of the attestation data.-koaFormat :: Lens' KeyOperationAttestation (Maybe KeyOperationAttestationFormat)-koaFormat- = lens _koaFormat (\ s a -> s{_koaFormat = a})---- | Output only. The attestation data provided by the HSM when the key--- operation was performed.-koaContent :: Lens' KeyOperationAttestation (Maybe ByteString)-koaContent- = lens _koaContent (\ s a -> s{_koaContent = a}) .- mapping _Bytes--instance FromJSON KeyOperationAttestation where- parseJSON- = withObject "KeyOperationAttestation"- (\ o ->- KeyOperationAttestation' <$>- (o .:? "format") <*> (o .:? "content"))--instance ToJSON KeyOperationAttestation where- toJSON KeyOperationAttestation'{..}- = object- (catMaybes- [("format" .=) <$> _koaFormat,- ("content" .=) <$> _koaContent])---- | Response message for KeyManagementService.ListCryptoKeyVersions.------ /See:/ 'listCryptoKeyVersionsResponse' smart constructor.-data ListCryptoKeyVersionsResponse =- ListCryptoKeyVersionsResponse'- { _lckvrNextPageToken :: !(Maybe Text)- , _lckvrTotalSize :: !(Maybe (Textual Int32))- , _lckvrCryptoKeyVersions :: !(Maybe [CryptoKeyVersion])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListCryptoKeyVersionsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lckvrNextPageToken'------ * 'lckvrTotalSize'------ * 'lckvrCryptoKeyVersions'-listCryptoKeyVersionsResponse- :: ListCryptoKeyVersionsResponse-listCryptoKeyVersionsResponse =- ListCryptoKeyVersionsResponse'- { _lckvrNextPageToken = Nothing- , _lckvrTotalSize = Nothing- , _lckvrCryptoKeyVersions = Nothing- }----- | A token to retrieve next page of results. Pass this value in--- ListCryptoKeyVersionsRequest.page_token to retrieve the next page of--- results.-lckvrNextPageToken :: Lens' ListCryptoKeyVersionsResponse (Maybe Text)-lckvrNextPageToken- = lens _lckvrNextPageToken- (\ s a -> s{_lckvrNextPageToken = a})---- | The total number of CryptoKeyVersions that matched the query.-lckvrTotalSize :: Lens' ListCryptoKeyVersionsResponse (Maybe Int32)-lckvrTotalSize- = lens _lckvrTotalSize- (\ s a -> s{_lckvrTotalSize = a})- . mapping _Coerce---- | The list of CryptoKeyVersions.-lckvrCryptoKeyVersions :: Lens' ListCryptoKeyVersionsResponse [CryptoKeyVersion]-lckvrCryptoKeyVersions- = lens _lckvrCryptoKeyVersions- (\ s a -> s{_lckvrCryptoKeyVersions = a})- . _Default- . _Coerce--instance FromJSON ListCryptoKeyVersionsResponse where- parseJSON- = withObject "ListCryptoKeyVersionsResponse"- (\ o ->- ListCryptoKeyVersionsResponse' <$>- (o .:? "nextPageToken") <*> (o .:? "totalSize") <*>- (o .:? "cryptoKeyVersions" .!= mempty))--instance ToJSON ListCryptoKeyVersionsResponse where- toJSON ListCryptoKeyVersionsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lckvrNextPageToken,- ("totalSize" .=) <$> _lckvrTotalSize,- ("cryptoKeyVersions" .=) <$>- _lckvrCryptoKeyVersions])---- | Request message for KeyManagementService.RestoreCryptoKeyVersion.------ /See:/ 'restoreCryptoKeyVersionRequest' smart constructor.-data RestoreCryptoKeyVersionRequest =- RestoreCryptoKeyVersionRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RestoreCryptoKeyVersionRequest' with the minimum fields required to make a request.----restoreCryptoKeyVersionRequest- :: RestoreCryptoKeyVersionRequest-restoreCryptoKeyVersionRequest = RestoreCryptoKeyVersionRequest'---instance FromJSON RestoreCryptoKeyVersionRequest- where- parseJSON- = withObject "RestoreCryptoKeyVersionRequest"- (\ o -> pure RestoreCryptoKeyVersionRequest')--instance ToJSON RestoreCryptoKeyVersionRequest where- toJSON = const emptyObject---- | Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.------ /See:/ 'updateCryptoKeyPrimaryVersionRequest' smart constructor.-newtype UpdateCryptoKeyPrimaryVersionRequest =- UpdateCryptoKeyPrimaryVersionRequest'- { _uckpvrCryptoKeyVersionId :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UpdateCryptoKeyPrimaryVersionRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uckpvrCryptoKeyVersionId'-updateCryptoKeyPrimaryVersionRequest- :: UpdateCryptoKeyPrimaryVersionRequest-updateCryptoKeyPrimaryVersionRequest =- UpdateCryptoKeyPrimaryVersionRequest' {_uckpvrCryptoKeyVersionId = Nothing}----- | The id of the child CryptoKeyVersion to use as primary.-uckpvrCryptoKeyVersionId :: Lens' UpdateCryptoKeyPrimaryVersionRequest (Maybe Text)-uckpvrCryptoKeyVersionId- = lens _uckpvrCryptoKeyVersionId- (\ s a -> s{_uckpvrCryptoKeyVersionId = a})--instance FromJSON- UpdateCryptoKeyPrimaryVersionRequest- where- parseJSON- = withObject "UpdateCryptoKeyPrimaryVersionRequest"- (\ o ->- UpdateCryptoKeyPrimaryVersionRequest' <$>- (o .:? "cryptoKeyVersionId"))--instance ToJSON UpdateCryptoKeyPrimaryVersionRequest- where- toJSON UpdateCryptoKeyPrimaryVersionRequest'{..}- = object- (catMaybes- [("cryptoKeyVersionId" .=) <$>- _uckpvrCryptoKeyVersionId])---- | Request message for \`TestIamPermissions\` method.------ /See:/ 'testIAMPermissionsRequest' smart constructor.-newtype TestIAMPermissionsRequest =- TestIAMPermissionsRequest'- { _tiprPermissions :: Maybe [Text]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TestIAMPermissionsRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tiprPermissions'-testIAMPermissionsRequest- :: TestIAMPermissionsRequest-testIAMPermissionsRequest =- TestIAMPermissionsRequest' {_tiprPermissions = Nothing}----- | The set of permissions to check for the \`resource\`. Permissions with--- wildcards (such as \'*\' or \'storage.*\') are not allowed. For more--- information see [IAM--- Overview](https:\/\/cloud.google.com\/iam\/docs\/overview#permissions).-tiprPermissions :: Lens' TestIAMPermissionsRequest [Text]-tiprPermissions- = lens _tiprPermissions- (\ s a -> s{_tiprPermissions = a})- . _Default- . _Coerce--instance FromJSON TestIAMPermissionsRequest where- parseJSON- = withObject "TestIAMPermissionsRequest"- (\ o ->- TestIAMPermissionsRequest' <$>- (o .:? "permissions" .!= mempty))--instance ToJSON TestIAMPermissionsRequest where- toJSON TestIAMPermissionsRequest'{..}- = object- (catMaybes [("permissions" .=) <$> _tiprPermissions])---- | Response message for \`TestIamPermissions\` method.------ /See:/ 'testIAMPermissionsResponse' smart constructor.-newtype TestIAMPermissionsResponse =- TestIAMPermissionsResponse'- { _tiamprPermissions :: Maybe [Text]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TestIAMPermissionsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tiamprPermissions'-testIAMPermissionsResponse- :: TestIAMPermissionsResponse-testIAMPermissionsResponse =- TestIAMPermissionsResponse' {_tiamprPermissions = Nothing}----- | A subset of \`TestPermissionsRequest.permissions\` that the caller is--- allowed.-tiamprPermissions :: Lens' TestIAMPermissionsResponse [Text]-tiamprPermissions- = lens _tiamprPermissions- (\ s a -> s{_tiamprPermissions = a})- . _Default- . _Coerce--instance FromJSON TestIAMPermissionsResponse where- parseJSON- = withObject "TestIAMPermissionsResponse"- (\ o ->- TestIAMPermissionsResponse' <$>- (o .:? "permissions" .!= mempty))--instance ToJSON TestIAMPermissionsResponse where- toJSON TestIAMPermissionsResponse'{..}- = object- (catMaybes- [("permissions" .=) <$> _tiamprPermissions])---- | A Digest holds a cryptographic message digest.------ /See:/ 'digest' smart constructor.-data Digest =- Digest'- { _dSha512 :: !(Maybe Bytes)- , _dSha384 :: !(Maybe Bytes)- , _dSha256 :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Digest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dSha512'------ * 'dSha384'------ * 'dSha256'-digest- :: Digest-digest = Digest' {_dSha512 = Nothing, _dSha384 = Nothing, _dSha256 = Nothing}----- | A message digest produced with the SHA-512 algorithm.-dSha512 :: Lens' Digest (Maybe ByteString)-dSha512- = lens _dSha512 (\ s a -> s{_dSha512 = a}) .- mapping _Bytes---- | A message digest produced with the SHA-384 algorithm.-dSha384 :: Lens' Digest (Maybe ByteString)-dSha384- = lens _dSha384 (\ s a -> s{_dSha384 = a}) .- mapping _Bytes---- | A message digest produced with the SHA-256 algorithm.-dSha256 :: Lens' Digest (Maybe ByteString)-dSha256- = lens _dSha256 (\ s a -> s{_dSha256 = a}) .- mapping _Bytes--instance FromJSON Digest where- parseJSON- = withObject "Digest"- (\ o ->- Digest' <$>- (o .:? "sha512") <*> (o .:? "sha384") <*>- (o .:? "sha256"))--instance ToJSON Digest where- toJSON Digest'{..}- = object- (catMaybes- [("sha512" .=) <$> _dSha512,- ("sha384" .=) <$> _dSha384,- ("sha256" .=) <$> _dSha256])---- | Defines an Identity and Access Management (IAM) policy. It is used to--- specify access control policies for Cloud Platform resources. A--- \`Policy\` consists of a list of \`bindings\`. A \`binding\` binds a--- list of \`members\` to a \`role\`, where the members can be user--- accounts, Google groups, Google domains, and service accounts. A--- \`role\` is a named list of permissions defined by IAM. **JSON Example**--- { \"bindings\": [ { \"role\": \"roles\/owner\", \"members\": [--- \"user:mike\'example.com\", \"group:admins\'example.com\",--- \"domain:google.com\",--- \"serviceAccount:my-other-app\'appspot.gserviceaccount.com\" ] }, {--- \"role\": \"roles\/viewer\", \"members\": [\"user:sean\'example.com\"] }--- ] } **YAML Example** bindings: - members: - user:mike\'example.com ---- group:admins\'example.com - domain:google.com ---- serviceAccount:my-other-app\'appspot.gserviceaccount.com role:--- roles\/owner - members: - user:sean\'example.com role: roles\/viewer For--- a description of IAM and its features, see the [IAM developer\'s--- guide](https:\/\/cloud.google.com\/iam\/docs).------ /See:/ 'policy' smart constructor.-data Policy =- Policy'- { _pAuditConfigs :: !(Maybe [AuditConfig])- , _pEtag :: !(Maybe Bytes)- , _pVersion :: !(Maybe (Textual Int32))- , _pBindings :: !(Maybe [Binding])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Policy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pAuditConfigs'------ * 'pEtag'------ * 'pVersion'------ * 'pBindings'-policy- :: Policy-policy =- Policy'- { _pAuditConfigs = Nothing- , _pEtag = Nothing- , _pVersion = Nothing- , _pBindings = Nothing- }----- | Specifies cloud audit logging configuration for this policy.-pAuditConfigs :: Lens' Policy [AuditConfig]-pAuditConfigs- = lens _pAuditConfigs- (\ s a -> s{_pAuditConfigs = a})- . _Default- . _Coerce---- | \`etag\` is used for optimistic concurrency control as a way to help--- prevent simultaneous updates of a policy from overwriting each other. It--- is strongly suggested that systems make use of the \`etag\` in the--- read-modify-write cycle to perform policy updates in order to avoid race--- conditions: An \`etag\` is returned in the response to \`getIamPolicy\`,--- and systems are expected to put that etag in the request to--- \`setIamPolicy\` to ensure that their change will be applied to the same--- version of the policy. If no \`etag\` is provided in the call to--- \`setIamPolicy\`, then the existing policy is overwritten blindly.-pEtag :: Lens' Policy (Maybe ByteString)-pEtag- = lens _pEtag (\ s a -> s{_pEtag = a}) .- mapping _Bytes---- | Deprecated.-pVersion :: Lens' Policy (Maybe Int32)-pVersion- = lens _pVersion (\ s a -> s{_pVersion = a}) .- mapping _Coerce---- | Associates a list of \`members\` to a \`role\`. \`bindings\` with no--- members will result in an error.-pBindings :: Lens' Policy [Binding]-pBindings- = lens _pBindings (\ s a -> s{_pBindings = a}) .- _Default- . _Coerce--instance FromJSON Policy where- parseJSON- = withObject "Policy"- (\ o ->- Policy' <$>- (o .:? "auditConfigs" .!= mempty) <*> (o .:? "etag")- <*> (o .:? "version")- <*> (o .:? "bindings" .!= mempty))--instance ToJSON Policy where- toJSON Policy'{..}- = object- (catMaybes- [("auditConfigs" .=) <$> _pAuditConfigs,- ("etag" .=) <$> _pEtag, ("version" .=) <$> _pVersion,- ("bindings" .=) <$> _pBindings])---- | Cross-service attributes for the location. For example--- {\"cloud.googleapis.com\/region\": \"us-east1\"}------ /See:/ 'locationLabels' smart constructor.-newtype LocationLabels =- LocationLabels'- { _llAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocationLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'llAddtional'-locationLabels- :: HashMap Text Text -- ^ 'llAddtional'- -> LocationLabels-locationLabels pLlAddtional_ =- LocationLabels' {_llAddtional = _Coerce # pLlAddtional_}---llAddtional :: Lens' LocationLabels (HashMap Text Text)-llAddtional- = lens _llAddtional (\ s a -> s{_llAddtional = a}) .- _Coerce--instance FromJSON LocationLabels where- parseJSON- = withObject "LocationLabels"- (\ o -> LocationLabels' <$> (parseJSONObject o))--instance ToJSON LocationLabels where- toJSON = toJSON . _llAddtional---- | Cloud KMS metadata for the given google.cloud.location.Location.------ /See:/ 'locationMetadata' smart constructor.-newtype LocationMetadata =- LocationMetadata'- { _lmHSMAvailable :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lmHSMAvailable'-locationMetadata- :: LocationMetadata-locationMetadata = LocationMetadata' {_lmHSMAvailable = Nothing}----- | Indicates whether CryptoKeys with protection_level HSM can be created in--- this location.-lmHSMAvailable :: Lens' LocationMetadata (Maybe Bool)-lmHSMAvailable- = lens _lmHSMAvailable- (\ s a -> s{_lmHSMAvailable = a})--instance FromJSON LocationMetadata where- parseJSON- = withObject "LocationMetadata"- (\ o -> LocationMetadata' <$> (o .:? "hsmAvailable"))--instance ToJSON LocationMetadata where- toJSON LocationMetadata'{..}- = object- (catMaybes [("hsmAvailable" .=) <$> _lmHSMAvailable])---- | Provides the configuration for logging a type of permissions. Example: {--- \"audit_log_configs\": [ { \"log_type\": \"DATA_READ\",--- \"exempted_members\": [ \"user:foo\'gmail.com\" ] }, { \"log_type\":--- \"DATA_WRITE\", } ] } This enables \'DATA_READ\' and \'DATA_WRITE\'--- logging, while exempting foo\'gmail.com from DATA_READ logging.------ /See:/ 'auditLogConfig' smart constructor.-data AuditLogConfig =- AuditLogConfig'- { _alcLogType :: !(Maybe AuditLogConfigLogType)- , _alcExemptedMembers :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AuditLogConfig' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'alcLogType'------ * 'alcExemptedMembers'-auditLogConfig- :: AuditLogConfig-auditLogConfig =- AuditLogConfig' {_alcLogType = Nothing, _alcExemptedMembers = Nothing}----- | The log type that this config enables.-alcLogType :: Lens' AuditLogConfig (Maybe AuditLogConfigLogType)-alcLogType- = lens _alcLogType (\ s a -> s{_alcLogType = a})---- | Specifies the identities that do not cause logging for this type of--- permission. Follows the same format of Binding.members.-alcExemptedMembers :: Lens' AuditLogConfig [Text]-alcExemptedMembers- = lens _alcExemptedMembers- (\ s a -> s{_alcExemptedMembers = a})- . _Default- . _Coerce--instance FromJSON AuditLogConfig where- parseJSON- = withObject "AuditLogConfig"- (\ o ->- AuditLogConfig' <$>- (o .:? "logType") <*>- (o .:? "exemptedMembers" .!= mempty))--instance ToJSON AuditLogConfig where- toJSON AuditLogConfig'{..}- = object- (catMaybes- [("logType" .=) <$> _alcLogType,- ("exemptedMembers" .=) <$> _alcExemptedMembers])---- | Response message for KeyManagementService.ListCryptoKeys.------ /See:/ 'listCryptoKeysResponse' smart constructor.-data ListCryptoKeysResponse =- ListCryptoKeysResponse'- { _lckrCryptoKeys :: !(Maybe [CryptoKey])- , _lckrNextPageToken :: !(Maybe Text)- , _lckrTotalSize :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListCryptoKeysResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lckrCryptoKeys'------ * 'lckrNextPageToken'------ * 'lckrTotalSize'-listCryptoKeysResponse- :: ListCryptoKeysResponse-listCryptoKeysResponse =- ListCryptoKeysResponse'- { _lckrCryptoKeys = Nothing- , _lckrNextPageToken = Nothing- , _lckrTotalSize = Nothing- }----- | The list of CryptoKeys.-lckrCryptoKeys :: Lens' ListCryptoKeysResponse [CryptoKey]-lckrCryptoKeys- = lens _lckrCryptoKeys- (\ s a -> s{_lckrCryptoKeys = a})- . _Default- . _Coerce---- | A token to retrieve next page of results. Pass this value in--- ListCryptoKeysRequest.page_token to retrieve the next page of results.-lckrNextPageToken :: Lens' ListCryptoKeysResponse (Maybe Text)-lckrNextPageToken- = lens _lckrNextPageToken- (\ s a -> s{_lckrNextPageToken = a})---- | The total number of CryptoKeys that matched the query.-lckrTotalSize :: Lens' ListCryptoKeysResponse (Maybe Int32)-lckrTotalSize- = lens _lckrTotalSize- (\ s a -> s{_lckrTotalSize = a})- . mapping _Coerce--instance FromJSON ListCryptoKeysResponse where- parseJSON- = withObject "ListCryptoKeysResponse"- (\ o ->- ListCryptoKeysResponse' <$>- (o .:? "cryptoKeys" .!= mempty) <*>- (o .:? "nextPageToken")- <*> (o .:? "totalSize"))--instance ToJSON ListCryptoKeysResponse where- toJSON ListCryptoKeysResponse'{..}- = object- (catMaybes- [("cryptoKeys" .=) <$> _lckrCryptoKeys,- ("nextPageToken" .=) <$> _lckrNextPageToken,- ("totalSize" .=) <$> _lckrTotalSize])---- | Request message for KeyManagementService.AsymmetricDecrypt.------ /See:/ 'asymmetricDecryptRequest' smart constructor.-newtype AsymmetricDecryptRequest =- AsymmetricDecryptRequest'- { _adrCiphertext :: Maybe Bytes- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AsymmetricDecryptRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'adrCiphertext'-asymmetricDecryptRequest- :: AsymmetricDecryptRequest-asymmetricDecryptRequest = AsymmetricDecryptRequest' {_adrCiphertext = Nothing}----- | Required. The data encrypted with the named CryptoKeyVersion\'s public--- key using OAEP.-adrCiphertext :: Lens' AsymmetricDecryptRequest (Maybe ByteString)-adrCiphertext- = lens _adrCiphertext- (\ s a -> s{_adrCiphertext = a})- . mapping _Bytes--instance FromJSON AsymmetricDecryptRequest where- parseJSON- = withObject "AsymmetricDecryptRequest"- (\ o ->- AsymmetricDecryptRequest' <$> (o .:? "ciphertext"))--instance ToJSON AsymmetricDecryptRequest where- toJSON AsymmetricDecryptRequest'{..}- = object- (catMaybes [("ciphertext" .=) <$> _adrCiphertext])---- | A CryptoKeyVersion represents an individual cryptographic key, and the--- associated key material. An ENABLED version can be used for--- cryptographic operations. For security reasons, the raw cryptographic--- key material represented by a CryptoKeyVersion can never be viewed or--- exported. It can only be used to encrypt, decrypt, or sign data when an--- authorized user or application invokes Cloud KMS.------ /See:/ 'cryptoKeyVersion' smart constructor.-data CryptoKeyVersion =- CryptoKeyVersion'- { _ckvState :: !(Maybe CryptoKeyVersionState)- , _ckvAttestation :: !(Maybe KeyOperationAttestation)- , _ckvGenerateTime :: !(Maybe DateTime')- , _ckvName :: !(Maybe Text)- , _ckvAlgorithm :: !(Maybe CryptoKeyVersionAlgorithm)- , _ckvDestroyTime :: !(Maybe DateTime')- , _ckvProtectionLevel :: !(Maybe CryptoKeyVersionProtectionLevel)- , _ckvDestroyEventTime :: !(Maybe DateTime')- , _ckvCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CryptoKeyVersion' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ckvState'------ * 'ckvAttestation'------ * 'ckvGenerateTime'------ * 'ckvName'------ * 'ckvAlgorithm'------ * 'ckvDestroyTime'------ * 'ckvProtectionLevel'------ * 'ckvDestroyEventTime'------ * 'ckvCreateTime'-cryptoKeyVersion- :: CryptoKeyVersion-cryptoKeyVersion =- CryptoKeyVersion'- { _ckvState = Nothing- , _ckvAttestation = Nothing- , _ckvGenerateTime = Nothing- , _ckvName = Nothing- , _ckvAlgorithm = Nothing- , _ckvDestroyTime = Nothing- , _ckvProtectionLevel = Nothing- , _ckvDestroyEventTime = Nothing- , _ckvCreateTime = Nothing- }----- | The current state of the CryptoKeyVersion.-ckvState :: Lens' CryptoKeyVersion (Maybe CryptoKeyVersionState)-ckvState = lens _ckvState (\ s a -> s{_ckvState = a})---- | Output only. Statement that was generated and signed by the HSM at key--- creation time. Use this statement to verify attributes of the key as--- stored on the HSM, independently of Google. Only provided for key--- versions with protection_level HSM.-ckvAttestation :: Lens' CryptoKeyVersion (Maybe KeyOperationAttestation)-ckvAttestation- = lens _ckvAttestation- (\ s a -> s{_ckvAttestation = a})---- | Output only. The time this CryptoKeyVersion\'s key material was--- generated.-ckvGenerateTime :: Lens' CryptoKeyVersion (Maybe UTCTime)-ckvGenerateTime- = lens _ckvGenerateTime- (\ s a -> s{_ckvGenerateTime = a})- . mapping _DateTime---- | Output only. The resource name for this CryptoKeyVersion in the format--- \`projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\/cryptoKeyVersions\/*\`.-ckvName :: Lens' CryptoKeyVersion (Maybe Text)-ckvName = lens _ckvName (\ s a -> s{_ckvName = a})---- | Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion--- supports.-ckvAlgorithm :: Lens' CryptoKeyVersion (Maybe CryptoKeyVersionAlgorithm)-ckvAlgorithm- = lens _ckvAlgorithm (\ s a -> s{_ckvAlgorithm = a})---- | Output only. The time this CryptoKeyVersion\'s key material is scheduled--- for destruction. Only present if state is DESTROY_SCHEDULED.-ckvDestroyTime :: Lens' CryptoKeyVersion (Maybe UTCTime)-ckvDestroyTime- = lens _ckvDestroyTime- (\ s a -> s{_ckvDestroyTime = a})- . mapping _DateTime---- | Output only. The ProtectionLevel describing how crypto operations are--- performed with this CryptoKeyVersion.-ckvProtectionLevel :: Lens' CryptoKeyVersion (Maybe CryptoKeyVersionProtectionLevel)-ckvProtectionLevel- = lens _ckvProtectionLevel- (\ s a -> s{_ckvProtectionLevel = a})---- | Output only. The time this CryptoKeyVersion\'s key material was--- destroyed. Only present if state is DESTROYED.-ckvDestroyEventTime :: Lens' CryptoKeyVersion (Maybe UTCTime)-ckvDestroyEventTime- = lens _ckvDestroyEventTime- (\ s a -> s{_ckvDestroyEventTime = a})- . mapping _DateTime---- | Output only. The time at which this CryptoKeyVersion was created.-ckvCreateTime :: Lens' CryptoKeyVersion (Maybe UTCTime)-ckvCreateTime- = lens _ckvCreateTime- (\ s a -> s{_ckvCreateTime = a})- . mapping _DateTime--instance FromJSON CryptoKeyVersion where- parseJSON- = withObject "CryptoKeyVersion"- (\ o ->- CryptoKeyVersion' <$>- (o .:? "state") <*> (o .:? "attestation") <*>- (o .:? "generateTime")- <*> (o .:? "name")- <*> (o .:? "algorithm")- <*> (o .:? "destroyTime")- <*> (o .:? "protectionLevel")- <*> (o .:? "destroyEventTime")- <*> (o .:? "createTime"))--instance ToJSON CryptoKeyVersion where- toJSON CryptoKeyVersion'{..}- = object- (catMaybes- [("state" .=) <$> _ckvState,- ("attestation" .=) <$> _ckvAttestation,- ("generateTime" .=) <$> _ckvGenerateTime,- ("name" .=) <$> _ckvName,- ("algorithm" .=) <$> _ckvAlgorithm,- ("destroyTime" .=) <$> _ckvDestroyTime,- ("protectionLevel" .=) <$> _ckvProtectionLevel,- ("destroyEventTime" .=) <$> _ckvDestroyEventTime,- ("createTime" .=) <$> _ckvCreateTime])---- | Request message for KeyManagementService.Encrypt.------ /See:/ 'encryptRequest' smart constructor.-data EncryptRequest =- EncryptRequest'- { _erAdditionalAuthenticatedData :: !(Maybe Bytes)- , _erPlaintext :: !(Maybe Bytes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EncryptRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'erAdditionalAuthenticatedData'------ * 'erPlaintext'-encryptRequest- :: EncryptRequest-encryptRequest =- EncryptRequest'- {_erAdditionalAuthenticatedData = Nothing, _erPlaintext = Nothing}----- | Optional data that, if specified, must also be provided during--- decryption through DecryptRequest.additional_authenticated_data. The--- maximum size depends on the key version\'s protection_level. For--- SOFTWARE keys, the AAD must be no larger than 64KiB. For HSM keys, the--- combined length of the plaintext and additional_authenticated_data--- fields must be no larger than 8KiB.-erAdditionalAuthenticatedData :: Lens' EncryptRequest (Maybe ByteString)-erAdditionalAuthenticatedData- = lens _erAdditionalAuthenticatedData- (\ s a -> s{_erAdditionalAuthenticatedData = a})- . mapping _Bytes---- | Required. The data to encrypt. Must be no larger than 64KiB. The maximum--- size depends on the key version\'s protection_level. For SOFTWARE keys,--- the plaintext must be no larger than 64KiB. For HSM keys, the combined--- length of the plaintext and additional_authenticated_data fields must be--- no larger than 8KiB.-erPlaintext :: Lens' EncryptRequest (Maybe ByteString)-erPlaintext- = lens _erPlaintext (\ s a -> s{_erPlaintext = a}) .- mapping _Bytes--instance FromJSON EncryptRequest where- parseJSON- = withObject "EncryptRequest"- (\ o ->- EncryptRequest' <$>- (o .:? "additionalAuthenticatedData") <*>- (o .:? "plaintext"))--instance ToJSON EncryptRequest where- toJSON EncryptRequest'{..}- = object- (catMaybes- [("additionalAuthenticatedData" .=) <$>- _erAdditionalAuthenticatedData,- ("plaintext" .=) <$> _erPlaintext])---- | Associates \`members\` with a \`role\`.------ /See:/ 'binding' smart constructor.-data Binding =- Binding'- { _bMembers :: !(Maybe [Text])- , _bRole :: !(Maybe Text)- , _bCondition :: !(Maybe Expr)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Binding' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'bMembers'------ * 'bRole'------ * 'bCondition'-binding- :: Binding-binding =- Binding' {_bMembers = Nothing, _bRole = Nothing, _bCondition = Nothing}----- | Specifies the identities requesting access for a Cloud Platform--- resource. \`members\` can have the following values: * \`allUsers\`: A--- special identifier that represents anyone who is 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 Google account. For example,--- \`alice\'gmail.com\` . * \`serviceAccount:{emailid}\`: An email address--- that represents a service account. For example,--- \`my-other-app\'appspot.gserviceaccount.com\`. * \`group:{emailid}\`: An--- email address that represents a Google group. For example,--- \`admins\'example.com\`. * \`domain:{domain}\`: The G Suite domain--- (primary) that represents all the users of that domain. For example,--- \`google.com\` or \`example.com\`.-bMembers :: Lens' Binding [Text]-bMembers- = lens _bMembers (\ s a -> s{_bMembers = a}) .- _Default- . _Coerce---- | Role that is assigned to \`members\`. For example, \`roles\/viewer\`,--- \`roles\/editor\`, or \`roles\/owner\`.-bRole :: Lens' Binding (Maybe Text)-bRole = lens _bRole (\ s a -> s{_bRole = a})---- | 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.-bCondition :: Lens' Binding (Maybe Expr)-bCondition- = lens _bCondition (\ s a -> s{_bCondition = a})--instance FromJSON Binding where- parseJSON- = withObject "Binding"- (\ o ->- Binding' <$>- (o .:? "members" .!= mempty) <*> (o .:? "role") <*>- (o .:? "condition"))--instance ToJSON Binding where- toJSON Binding'{..}- = object- (catMaybes- [("members" .=) <$> _bMembers,- ("role" .=) <$> _bRole,- ("condition" .=) <$> _bCondition])
− gen/Network/Google/CloudKMS/Types/Sum.hs
@@ -1,589 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudKMS.Types.Sum--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.CloudKMS.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | The immutable purpose of this CryptoKey.-data CryptoKeyPurpose- = CryptoKeyPurposeUnspecified- -- ^ @CRYPTO_KEY_PURPOSE_UNSPECIFIED@- -- Not specified.- | EncryptDecrypt- -- ^ @ENCRYPT_DECRYPT@- -- CryptoKeys with this purpose may be used with Encrypt and Decrypt.- | AsymmetricSign- -- ^ @ASYMMETRIC_SIGN@- -- CryptoKeys with this purpose may be used with AsymmetricSign and- -- GetPublicKey.- | AsymmetricDecrypt- -- ^ @ASYMMETRIC_DECRYPT@- -- CryptoKeys with this purpose may be used with AsymmetricDecrypt and- -- GetPublicKey.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyPurpose--instance FromHttpApiData CryptoKeyPurpose where- parseQueryParam = \case- "CRYPTO_KEY_PURPOSE_UNSPECIFIED" -> Right CryptoKeyPurposeUnspecified- "ENCRYPT_DECRYPT" -> Right EncryptDecrypt- "ASYMMETRIC_SIGN" -> Right AsymmetricSign- "ASYMMETRIC_DECRYPT" -> Right AsymmetricDecrypt- x -> Left ("Unable to parse CryptoKeyPurpose from: " <> x)--instance ToHttpApiData CryptoKeyPurpose where- toQueryParam = \case- CryptoKeyPurposeUnspecified -> "CRYPTO_KEY_PURPOSE_UNSPECIFIED"- EncryptDecrypt -> "ENCRYPT_DECRYPT"- AsymmetricSign -> "ASYMMETRIC_SIGN"- AsymmetricDecrypt -> "ASYMMETRIC_DECRYPT"--instance FromJSON CryptoKeyPurpose where- parseJSON = parseJSONText "CryptoKeyPurpose"--instance ToJSON CryptoKeyPurpose where- toJSON = toJSONText---- | ProtectionLevel to use when creating a CryptoKeyVersion based on this--- template. Immutable. Defaults to SOFTWARE.-data CryptoKeyVersionTemplateProtectionLevel- = ProtectionLevelUnspecified- -- ^ @PROTECTION_LEVEL_UNSPECIFIED@- -- Not specified.- | Software- -- ^ @SOFTWARE@- -- Crypto operations are performed in software.- | HSM- -- ^ @HSM@- -- Crypto operations are performed in a Hardware Security Module.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyVersionTemplateProtectionLevel--instance FromHttpApiData CryptoKeyVersionTemplateProtectionLevel where- parseQueryParam = \case- "PROTECTION_LEVEL_UNSPECIFIED" -> Right ProtectionLevelUnspecified- "SOFTWARE" -> Right Software- "HSM" -> Right HSM- x -> Left ("Unable to parse CryptoKeyVersionTemplateProtectionLevel from: " <> x)--instance ToHttpApiData CryptoKeyVersionTemplateProtectionLevel where- toQueryParam = \case- ProtectionLevelUnspecified -> "PROTECTION_LEVEL_UNSPECIFIED"- Software -> "SOFTWARE"- HSM -> "HSM"--instance FromJSON CryptoKeyVersionTemplateProtectionLevel where- parseJSON = parseJSONText "CryptoKeyVersionTemplateProtectionLevel"--instance ToJSON CryptoKeyVersionTemplateProtectionLevel where- toJSON = toJSONText---- | Required. Algorithm to use when creating a CryptoKeyVersion based on--- this template. For backwards compatibility, GOOGLE_SYMMETRIC_ENCRYPTION--- is implied if both this field is omitted and CryptoKey.purpose is--- ENCRYPT_DECRYPT.-data CryptoKeyVersionTemplateAlgorithm- = CryptoKeyVersionAlgorithmUnspecified- -- ^ @CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED@- -- Not specified.- | GoogleSymmetricEncryption- -- ^ @GOOGLE_SYMMETRIC_ENCRYPTION@- -- Creates symmetric encryption keys.- | RsaSignPss2048SHA256- -- ^ @RSA_SIGN_PSS_2048_SHA256@- -- RSASSA-PSS 2048 bit key with a SHA256 digest.- | RsaSignPss3072SHA256- -- ^ @RSA_SIGN_PSS_3072_SHA256@- -- RSASSA-PSS 3072 bit key with a SHA256 digest.- | RsaSignPss4096SHA256- -- ^ @RSA_SIGN_PSS_4096_SHA256@- -- RSASSA-PSS 4096 bit key with a SHA256 digest.- | RsaSignPss4096SHA512- -- ^ @RSA_SIGN_PSS_4096_SHA512@- -- RSASSA-PSS 4096 bit key with a SHA512 digest.- | RsaSignPKCS12048SHA256- -- ^ @RSA_SIGN_PKCS1_2048_SHA256@- -- RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.- | RsaSignPKCS13072SHA256- -- ^ @RSA_SIGN_PKCS1_3072_SHA256@- -- RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.- | RsaSignPKCS14096SHA256- -- ^ @RSA_SIGN_PKCS1_4096_SHA256@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.- | RsaSignPKCS14096SHA512- -- ^ @RSA_SIGN_PKCS1_4096_SHA512@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.- | RsaDecryptOaep2048SHA256- -- ^ @RSA_DECRYPT_OAEP_2048_SHA256@- -- RSAES-OAEP 2048 bit key with a SHA256 digest.- | RsaDecryptOaep3072SHA256- -- ^ @RSA_DECRYPT_OAEP_3072_SHA256@- -- RSAES-OAEP 3072 bit key with a SHA256 digest.- | RsaDecryptOaep4096SHA256- -- ^ @RSA_DECRYPT_OAEP_4096_SHA256@- -- RSAES-OAEP 4096 bit key with a SHA256 digest.- | RsaDecryptOaep4096SHA512- -- ^ @RSA_DECRYPT_OAEP_4096_SHA512@- -- RSAES-OAEP 4096 bit key with a SHA512 digest.- | EcSignP256SHA256- -- ^ @EC_SIGN_P256_SHA256@- -- ECDSA on the NIST P-256 curve with a SHA256 digest.- | EcSignP384SHA384- -- ^ @EC_SIGN_P384_SHA384@- -- ECDSA on the NIST P-384 curve with a SHA384 digest.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyVersionTemplateAlgorithm--instance FromHttpApiData CryptoKeyVersionTemplateAlgorithm where- parseQueryParam = \case- "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" -> Right CryptoKeyVersionAlgorithmUnspecified- "GOOGLE_SYMMETRIC_ENCRYPTION" -> Right GoogleSymmetricEncryption- "RSA_SIGN_PSS_2048_SHA256" -> Right RsaSignPss2048SHA256- "RSA_SIGN_PSS_3072_SHA256" -> Right RsaSignPss3072SHA256- "RSA_SIGN_PSS_4096_SHA256" -> Right RsaSignPss4096SHA256- "RSA_SIGN_PSS_4096_SHA512" -> Right RsaSignPss4096SHA512- "RSA_SIGN_PKCS1_2048_SHA256" -> Right RsaSignPKCS12048SHA256- "RSA_SIGN_PKCS1_3072_SHA256" -> Right RsaSignPKCS13072SHA256- "RSA_SIGN_PKCS1_4096_SHA256" -> Right RsaSignPKCS14096SHA256- "RSA_SIGN_PKCS1_4096_SHA512" -> Right RsaSignPKCS14096SHA512- "RSA_DECRYPT_OAEP_2048_SHA256" -> Right RsaDecryptOaep2048SHA256- "RSA_DECRYPT_OAEP_3072_SHA256" -> Right RsaDecryptOaep3072SHA256- "RSA_DECRYPT_OAEP_4096_SHA256" -> Right RsaDecryptOaep4096SHA256- "RSA_DECRYPT_OAEP_4096_SHA512" -> Right RsaDecryptOaep4096SHA512- "EC_SIGN_P256_SHA256" -> Right EcSignP256SHA256- "EC_SIGN_P384_SHA384" -> Right EcSignP384SHA384- x -> Left ("Unable to parse CryptoKeyVersionTemplateAlgorithm from: " <> x)--instance ToHttpApiData CryptoKeyVersionTemplateAlgorithm where- toQueryParam = \case- CryptoKeyVersionAlgorithmUnspecified -> "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"- GoogleSymmetricEncryption -> "GOOGLE_SYMMETRIC_ENCRYPTION"- RsaSignPss2048SHA256 -> "RSA_SIGN_PSS_2048_SHA256"- RsaSignPss3072SHA256 -> "RSA_SIGN_PSS_3072_SHA256"- RsaSignPss4096SHA256 -> "RSA_SIGN_PSS_4096_SHA256"- RsaSignPss4096SHA512 -> "RSA_SIGN_PSS_4096_SHA512"- RsaSignPKCS12048SHA256 -> "RSA_SIGN_PKCS1_2048_SHA256"- RsaSignPKCS13072SHA256 -> "RSA_SIGN_PKCS1_3072_SHA256"- RsaSignPKCS14096SHA256 -> "RSA_SIGN_PKCS1_4096_SHA256"- RsaSignPKCS14096SHA512 -> "RSA_SIGN_PKCS1_4096_SHA512"- RsaDecryptOaep2048SHA256 -> "RSA_DECRYPT_OAEP_2048_SHA256"- RsaDecryptOaep3072SHA256 -> "RSA_DECRYPT_OAEP_3072_SHA256"- RsaDecryptOaep4096SHA256 -> "RSA_DECRYPT_OAEP_4096_SHA256"- RsaDecryptOaep4096SHA512 -> "RSA_DECRYPT_OAEP_4096_SHA512"- EcSignP256SHA256 -> "EC_SIGN_P256_SHA256"- EcSignP384SHA384 -> "EC_SIGN_P384_SHA384"--instance FromJSON CryptoKeyVersionTemplateAlgorithm where- parseJSON = parseJSONText "CryptoKeyVersionTemplateAlgorithm"--instance ToJSON CryptoKeyVersionTemplateAlgorithm where- toJSON = toJSONText---- | The Algorithm associated with this key.-data PublicKeyAlgorithm- = PKACryptoKeyVersionAlgorithmUnspecified- -- ^ @CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED@- -- Not specified.- | PKAGoogleSymmetricEncryption- -- ^ @GOOGLE_SYMMETRIC_ENCRYPTION@- -- Creates symmetric encryption keys.- | PKARsaSignPss2048SHA256- -- ^ @RSA_SIGN_PSS_2048_SHA256@- -- RSASSA-PSS 2048 bit key with a SHA256 digest.- | PKARsaSignPss3072SHA256- -- ^ @RSA_SIGN_PSS_3072_SHA256@- -- RSASSA-PSS 3072 bit key with a SHA256 digest.- | PKARsaSignPss4096SHA256- -- ^ @RSA_SIGN_PSS_4096_SHA256@- -- RSASSA-PSS 4096 bit key with a SHA256 digest.- | PKARsaSignPss4096SHA512- -- ^ @RSA_SIGN_PSS_4096_SHA512@- -- RSASSA-PSS 4096 bit key with a SHA512 digest.- | PKARsaSignPKCS12048SHA256- -- ^ @RSA_SIGN_PKCS1_2048_SHA256@- -- RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.- | PKARsaSignPKCS13072SHA256- -- ^ @RSA_SIGN_PKCS1_3072_SHA256@- -- RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.- | PKARsaSignPKCS14096SHA256- -- ^ @RSA_SIGN_PKCS1_4096_SHA256@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.- | PKARsaSignPKCS14096SHA512- -- ^ @RSA_SIGN_PKCS1_4096_SHA512@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.- | PKARsaDecryptOaep2048SHA256- -- ^ @RSA_DECRYPT_OAEP_2048_SHA256@- -- RSAES-OAEP 2048 bit key with a SHA256 digest.- | PKARsaDecryptOaep3072SHA256- -- ^ @RSA_DECRYPT_OAEP_3072_SHA256@- -- RSAES-OAEP 3072 bit key with a SHA256 digest.- | PKARsaDecryptOaep4096SHA256- -- ^ @RSA_DECRYPT_OAEP_4096_SHA256@- -- RSAES-OAEP 4096 bit key with a SHA256 digest.- | PKARsaDecryptOaep4096SHA512- -- ^ @RSA_DECRYPT_OAEP_4096_SHA512@- -- RSAES-OAEP 4096 bit key with a SHA512 digest.- | PKAEcSignP256SHA256- -- ^ @EC_SIGN_P256_SHA256@- -- ECDSA on the NIST P-256 curve with a SHA256 digest.- | PKAEcSignP384SHA384- -- ^ @EC_SIGN_P384_SHA384@- -- ECDSA on the NIST P-384 curve with a SHA384 digest.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PublicKeyAlgorithm--instance FromHttpApiData PublicKeyAlgorithm where- parseQueryParam = \case- "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" -> Right PKACryptoKeyVersionAlgorithmUnspecified- "GOOGLE_SYMMETRIC_ENCRYPTION" -> Right PKAGoogleSymmetricEncryption- "RSA_SIGN_PSS_2048_SHA256" -> Right PKARsaSignPss2048SHA256- "RSA_SIGN_PSS_3072_SHA256" -> Right PKARsaSignPss3072SHA256- "RSA_SIGN_PSS_4096_SHA256" -> Right PKARsaSignPss4096SHA256- "RSA_SIGN_PSS_4096_SHA512" -> Right PKARsaSignPss4096SHA512- "RSA_SIGN_PKCS1_2048_SHA256" -> Right PKARsaSignPKCS12048SHA256- "RSA_SIGN_PKCS1_3072_SHA256" -> Right PKARsaSignPKCS13072SHA256- "RSA_SIGN_PKCS1_4096_SHA256" -> Right PKARsaSignPKCS14096SHA256- "RSA_SIGN_PKCS1_4096_SHA512" -> Right PKARsaSignPKCS14096SHA512- "RSA_DECRYPT_OAEP_2048_SHA256" -> Right PKARsaDecryptOaep2048SHA256- "RSA_DECRYPT_OAEP_3072_SHA256" -> Right PKARsaDecryptOaep3072SHA256- "RSA_DECRYPT_OAEP_4096_SHA256" -> Right PKARsaDecryptOaep4096SHA256- "RSA_DECRYPT_OAEP_4096_SHA512" -> Right PKARsaDecryptOaep4096SHA512- "EC_SIGN_P256_SHA256" -> Right PKAEcSignP256SHA256- "EC_SIGN_P384_SHA384" -> Right PKAEcSignP384SHA384- x -> Left ("Unable to parse PublicKeyAlgorithm from: " <> x)--instance ToHttpApiData PublicKeyAlgorithm where- toQueryParam = \case- PKACryptoKeyVersionAlgorithmUnspecified -> "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"- PKAGoogleSymmetricEncryption -> "GOOGLE_SYMMETRIC_ENCRYPTION"- PKARsaSignPss2048SHA256 -> "RSA_SIGN_PSS_2048_SHA256"- PKARsaSignPss3072SHA256 -> "RSA_SIGN_PSS_3072_SHA256"- PKARsaSignPss4096SHA256 -> "RSA_SIGN_PSS_4096_SHA256"- PKARsaSignPss4096SHA512 -> "RSA_SIGN_PSS_4096_SHA512"- PKARsaSignPKCS12048SHA256 -> "RSA_SIGN_PKCS1_2048_SHA256"- PKARsaSignPKCS13072SHA256 -> "RSA_SIGN_PKCS1_3072_SHA256"- PKARsaSignPKCS14096SHA256 -> "RSA_SIGN_PKCS1_4096_SHA256"- PKARsaSignPKCS14096SHA512 -> "RSA_SIGN_PKCS1_4096_SHA512"- PKARsaDecryptOaep2048SHA256 -> "RSA_DECRYPT_OAEP_2048_SHA256"- PKARsaDecryptOaep3072SHA256 -> "RSA_DECRYPT_OAEP_3072_SHA256"- PKARsaDecryptOaep4096SHA256 -> "RSA_DECRYPT_OAEP_4096_SHA256"- PKARsaDecryptOaep4096SHA512 -> "RSA_DECRYPT_OAEP_4096_SHA512"- PKAEcSignP256SHA256 -> "EC_SIGN_P256_SHA256"- PKAEcSignP384SHA384 -> "EC_SIGN_P384_SHA384"--instance FromJSON PublicKeyAlgorithm where- parseJSON = parseJSONText "PublicKeyAlgorithm"--instance ToJSON PublicKeyAlgorithm where- toJSON = toJSONText---- | The current state of the CryptoKeyVersion.-data CryptoKeyVersionState- = CryptoKeyVersionStateUnspecified- -- ^ @CRYPTO_KEY_VERSION_STATE_UNSPECIFIED@- -- Not specified.- | PendingGeneration- -- ^ @PENDING_GENERATION@- -- This version is still being generated. It may not be used, enabled,- -- disabled, or destroyed yet. Cloud KMS will automatically mark this- -- version ENABLED as soon as the version is ready.- | Enabled- -- ^ @ENABLED@- -- This version may be used for cryptographic operations.- | Disabled- -- ^ @DISABLED@- -- This version may not be used, but the key material is still available,- -- and the version can be placed back into the ENABLED state.- | Destroyed- -- ^ @DESTROYED@- -- This version is destroyed, and the key material is no longer stored. A- -- version may not leave this state once entered.- | DestroyScheduled- -- ^ @DESTROY_SCHEDULED@- -- This version is scheduled for destruction, and will be destroyed soon.- -- Call RestoreCryptoKeyVersion to put it back into the DISABLED state.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyVersionState--instance FromHttpApiData CryptoKeyVersionState where- parseQueryParam = \case- "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED" -> Right CryptoKeyVersionStateUnspecified- "PENDING_GENERATION" -> Right PendingGeneration- "ENABLED" -> Right Enabled- "DISABLED" -> Right Disabled- "DESTROYED" -> Right Destroyed- "DESTROY_SCHEDULED" -> Right DestroyScheduled- x -> Left ("Unable to parse CryptoKeyVersionState from: " <> x)--instance ToHttpApiData CryptoKeyVersionState where- toQueryParam = \case- CryptoKeyVersionStateUnspecified -> "CRYPTO_KEY_VERSION_STATE_UNSPECIFIED"- PendingGeneration -> "PENDING_GENERATION"- Enabled -> "ENABLED"- Disabled -> "DISABLED"- Destroyed -> "DESTROYED"- DestroyScheduled -> "DESTROY_SCHEDULED"--instance FromJSON CryptoKeyVersionState where- parseJSON = parseJSONText "CryptoKeyVersionState"--instance ToJSON CryptoKeyVersionState where- toJSON = toJSONText---- | Output only. The format of the attestation data.-data KeyOperationAttestationFormat- = AttestationFormatUnspecified- -- ^ @ATTESTATION_FORMAT_UNSPECIFIED@- -- Not specified.- | CaviumV1Compressed- -- ^ @CAVIUM_V1_COMPRESSED@- -- Cavium HSM attestation compressed with gzip. Note that this format is- -- defined by Cavium and subject to change at any time.- | CaviumV2Compressed- -- ^ @CAVIUM_V2_COMPRESSED@- -- Cavium HSM attestation V2 compressed with gzip. This is a new format- -- introduced in Cavium\'s version 3.2-08.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable KeyOperationAttestationFormat--instance FromHttpApiData KeyOperationAttestationFormat where- parseQueryParam = \case- "ATTESTATION_FORMAT_UNSPECIFIED" -> Right AttestationFormatUnspecified- "CAVIUM_V1_COMPRESSED" -> Right CaviumV1Compressed- "CAVIUM_V2_COMPRESSED" -> Right CaviumV2Compressed- x -> Left ("Unable to parse KeyOperationAttestationFormat from: " <> x)--instance ToHttpApiData KeyOperationAttestationFormat where- toQueryParam = \case- AttestationFormatUnspecified -> "ATTESTATION_FORMAT_UNSPECIFIED"- CaviumV1Compressed -> "CAVIUM_V1_COMPRESSED"- CaviumV2Compressed -> "CAVIUM_V2_COMPRESSED"--instance FromJSON KeyOperationAttestationFormat where- parseJSON = parseJSONText "KeyOperationAttestationFormat"--instance ToJSON KeyOperationAttestationFormat where- toJSON = toJSONText---- | The log type that this config enables.-data AuditLogConfigLogType- = LogTypeUnspecified- -- ^ @LOG_TYPE_UNSPECIFIED@- -- Default case. Should never be this.- | AdminRead- -- ^ @ADMIN_READ@- -- Admin reads. Example: CloudIAM getIamPolicy- | DataWrite- -- ^ @DATA_WRITE@- -- Data writes. Example: CloudSQL Users create- | DataRead- -- ^ @DATA_READ@- -- Data reads. Example: CloudSQL Users list- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable AuditLogConfigLogType--instance FromHttpApiData AuditLogConfigLogType where- parseQueryParam = \case- "LOG_TYPE_UNSPECIFIED" -> Right LogTypeUnspecified- "ADMIN_READ" -> Right AdminRead- "DATA_WRITE" -> Right DataWrite- "DATA_READ" -> Right DataRead- x -> Left ("Unable to parse AuditLogConfigLogType from: " <> x)--instance ToHttpApiData AuditLogConfigLogType where- toQueryParam = \case- LogTypeUnspecified -> "LOG_TYPE_UNSPECIFIED"- AdminRead -> "ADMIN_READ"- DataWrite -> "DATA_WRITE"- DataRead -> "DATA_READ"--instance FromJSON AuditLogConfigLogType where- parseJSON = parseJSONText "AuditLogConfigLogType"--instance ToJSON AuditLogConfigLogType where- toJSON = toJSONText---- | V1 error format.-data Xgafv- = X1- -- ^ @1@- -- v1 error format- | X2- -- ^ @2@- -- v2 error format- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable Xgafv--instance FromHttpApiData Xgafv where- parseQueryParam = \case- "1" -> Right X1- "2" -> Right X2- x -> Left ("Unable to parse Xgafv from: " <> x)--instance ToHttpApiData Xgafv where- toQueryParam = \case- X1 -> "1"- X2 -> "2"--instance FromJSON Xgafv where- parseJSON = parseJSONText "Xgafv"--instance ToJSON Xgafv where- toJSON = toJSONText---- | Output only. The ProtectionLevel describing how crypto operations are--- performed with this CryptoKeyVersion.-data CryptoKeyVersionProtectionLevel- = CKVPLProtectionLevelUnspecified- -- ^ @PROTECTION_LEVEL_UNSPECIFIED@- -- Not specified.- | CKVPLSoftware- -- ^ @SOFTWARE@- -- Crypto operations are performed in software.- | CKVPLHSM- -- ^ @HSM@- -- Crypto operations are performed in a Hardware Security Module.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyVersionProtectionLevel--instance FromHttpApiData CryptoKeyVersionProtectionLevel where- parseQueryParam = \case- "PROTECTION_LEVEL_UNSPECIFIED" -> Right CKVPLProtectionLevelUnspecified- "SOFTWARE" -> Right CKVPLSoftware- "HSM" -> Right CKVPLHSM- x -> Left ("Unable to parse CryptoKeyVersionProtectionLevel from: " <> x)--instance ToHttpApiData CryptoKeyVersionProtectionLevel where- toQueryParam = \case- CKVPLProtectionLevelUnspecified -> "PROTECTION_LEVEL_UNSPECIFIED"- CKVPLSoftware -> "SOFTWARE"- CKVPLHSM -> "HSM"--instance FromJSON CryptoKeyVersionProtectionLevel where- parseJSON = parseJSONText "CryptoKeyVersionProtectionLevel"--instance ToJSON CryptoKeyVersionProtectionLevel where- toJSON = toJSONText---- | Output only. The CryptoKeyVersionAlgorithm that this CryptoKeyVersion--- supports.-data CryptoKeyVersionAlgorithm- = CKVACryptoKeyVersionAlgorithmUnspecified- -- ^ @CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED@- -- Not specified.- | CKVAGoogleSymmetricEncryption- -- ^ @GOOGLE_SYMMETRIC_ENCRYPTION@- -- Creates symmetric encryption keys.- | CKVARsaSignPss2048SHA256- -- ^ @RSA_SIGN_PSS_2048_SHA256@- -- RSASSA-PSS 2048 bit key with a SHA256 digest.- | CKVARsaSignPss3072SHA256- -- ^ @RSA_SIGN_PSS_3072_SHA256@- -- RSASSA-PSS 3072 bit key with a SHA256 digest.- | CKVARsaSignPss4096SHA256- -- ^ @RSA_SIGN_PSS_4096_SHA256@- -- RSASSA-PSS 4096 bit key with a SHA256 digest.- | CKVARsaSignPss4096SHA512- -- ^ @RSA_SIGN_PSS_4096_SHA512@- -- RSASSA-PSS 4096 bit key with a SHA512 digest.- | CKVARsaSignPKCS12048SHA256- -- ^ @RSA_SIGN_PKCS1_2048_SHA256@- -- RSASSA-PKCS1-v1_5 with a 2048 bit key and a SHA256 digest.- | CKVARsaSignPKCS13072SHA256- -- ^ @RSA_SIGN_PKCS1_3072_SHA256@- -- RSASSA-PKCS1-v1_5 with a 3072 bit key and a SHA256 digest.- | CKVARsaSignPKCS14096SHA256- -- ^ @RSA_SIGN_PKCS1_4096_SHA256@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA256 digest.- | CKVARsaSignPKCS14096SHA512- -- ^ @RSA_SIGN_PKCS1_4096_SHA512@- -- RSASSA-PKCS1-v1_5 with a 4096 bit key and a SHA512 digest.- | CKVARsaDecryptOaep2048SHA256- -- ^ @RSA_DECRYPT_OAEP_2048_SHA256@- -- RSAES-OAEP 2048 bit key with a SHA256 digest.- | CKVARsaDecryptOaep3072SHA256- -- ^ @RSA_DECRYPT_OAEP_3072_SHA256@- -- RSAES-OAEP 3072 bit key with a SHA256 digest.- | CKVARsaDecryptOaep4096SHA256- -- ^ @RSA_DECRYPT_OAEP_4096_SHA256@- -- RSAES-OAEP 4096 bit key with a SHA256 digest.- | CKVARsaDecryptOaep4096SHA512- -- ^ @RSA_DECRYPT_OAEP_4096_SHA512@- -- RSAES-OAEP 4096 bit key with a SHA512 digest.- | CKVAEcSignP256SHA256- -- ^ @EC_SIGN_P256_SHA256@- -- ECDSA on the NIST P-256 curve with a SHA256 digest.- | CKVAEcSignP384SHA384- -- ^ @EC_SIGN_P384_SHA384@- -- ECDSA on the NIST P-384 curve with a SHA384 digest.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CryptoKeyVersionAlgorithm--instance FromHttpApiData CryptoKeyVersionAlgorithm where- parseQueryParam = \case- "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED" -> Right CKVACryptoKeyVersionAlgorithmUnspecified- "GOOGLE_SYMMETRIC_ENCRYPTION" -> Right CKVAGoogleSymmetricEncryption- "RSA_SIGN_PSS_2048_SHA256" -> Right CKVARsaSignPss2048SHA256- "RSA_SIGN_PSS_3072_SHA256" -> Right CKVARsaSignPss3072SHA256- "RSA_SIGN_PSS_4096_SHA256" -> Right CKVARsaSignPss4096SHA256- "RSA_SIGN_PSS_4096_SHA512" -> Right CKVARsaSignPss4096SHA512- "RSA_SIGN_PKCS1_2048_SHA256" -> Right CKVARsaSignPKCS12048SHA256- "RSA_SIGN_PKCS1_3072_SHA256" -> Right CKVARsaSignPKCS13072SHA256- "RSA_SIGN_PKCS1_4096_SHA256" -> Right CKVARsaSignPKCS14096SHA256- "RSA_SIGN_PKCS1_4096_SHA512" -> Right CKVARsaSignPKCS14096SHA512- "RSA_DECRYPT_OAEP_2048_SHA256" -> Right CKVARsaDecryptOaep2048SHA256- "RSA_DECRYPT_OAEP_3072_SHA256" -> Right CKVARsaDecryptOaep3072SHA256- "RSA_DECRYPT_OAEP_4096_SHA256" -> Right CKVARsaDecryptOaep4096SHA256- "RSA_DECRYPT_OAEP_4096_SHA512" -> Right CKVARsaDecryptOaep4096SHA512- "EC_SIGN_P256_SHA256" -> Right CKVAEcSignP256SHA256- "EC_SIGN_P384_SHA384" -> Right CKVAEcSignP384SHA384- x -> Left ("Unable to parse CryptoKeyVersionAlgorithm from: " <> x)--instance ToHttpApiData CryptoKeyVersionAlgorithm where- toQueryParam = \case- CKVACryptoKeyVersionAlgorithmUnspecified -> "CRYPTO_KEY_VERSION_ALGORITHM_UNSPECIFIED"- CKVAGoogleSymmetricEncryption -> "GOOGLE_SYMMETRIC_ENCRYPTION"- CKVARsaSignPss2048SHA256 -> "RSA_SIGN_PSS_2048_SHA256"- CKVARsaSignPss3072SHA256 -> "RSA_SIGN_PSS_3072_SHA256"- CKVARsaSignPss4096SHA256 -> "RSA_SIGN_PSS_4096_SHA256"- CKVARsaSignPss4096SHA512 -> "RSA_SIGN_PSS_4096_SHA512"- CKVARsaSignPKCS12048SHA256 -> "RSA_SIGN_PKCS1_2048_SHA256"- CKVARsaSignPKCS13072SHA256 -> "RSA_SIGN_PKCS1_3072_SHA256"- CKVARsaSignPKCS14096SHA256 -> "RSA_SIGN_PKCS1_4096_SHA256"- CKVARsaSignPKCS14096SHA512 -> "RSA_SIGN_PKCS1_4096_SHA512"- CKVARsaDecryptOaep2048SHA256 -> "RSA_DECRYPT_OAEP_2048_SHA256"- CKVARsaDecryptOaep3072SHA256 -> "RSA_DECRYPT_OAEP_3072_SHA256"- CKVARsaDecryptOaep4096SHA256 -> "RSA_DECRYPT_OAEP_4096_SHA256"- CKVARsaDecryptOaep4096SHA512 -> "RSA_DECRYPT_OAEP_4096_SHA512"- CKVAEcSignP256SHA256 -> "EC_SIGN_P256_SHA256"- CKVAEcSignP384SHA384 -> "EC_SIGN_P384_SHA384"--instance FromJSON CryptoKeyVersionAlgorithm where- parseJSON = parseJSONText "CryptoKeyVersionAlgorithm"--instance ToJSON CryptoKeyVersionAlgorithm where- toJSON = toJSONText
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/Get.hs
@@ -1,149 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets information about a location.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.get@.-module Network.Google.Resource.CloudKMS.Projects.Locations.Get- (- -- * REST Resource- ProjectsLocationsGetResource-- -- * Creating a Request- , projectsLocationsGet- , ProjectsLocationsGet-- -- * Request Lenses- , plgXgafv- , plgUploadProtocol- , plgAccessToken- , plgUploadType- , plgName- , plgCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.get@ method which the--- 'ProjectsLocationsGet' request conforms to.-type ProjectsLocationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Location---- | Gets information about a location.------ /See:/ 'projectsLocationsGet' smart constructor.-data ProjectsLocationsGet =- ProjectsLocationsGet'- { _plgXgafv :: !(Maybe Xgafv)- , _plgUploadProtocol :: !(Maybe Text)- , _plgAccessToken :: !(Maybe Text)- , _plgUploadType :: !(Maybe Text)- , _plgName :: !Text- , _plgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plgXgafv'------ * 'plgUploadProtocol'------ * 'plgAccessToken'------ * 'plgUploadType'------ * 'plgName'------ * 'plgCallback'-projectsLocationsGet- :: Text -- ^ 'plgName'- -> ProjectsLocationsGet-projectsLocationsGet pPlgName_ =- ProjectsLocationsGet'- { _plgXgafv = Nothing- , _plgUploadProtocol = Nothing- , _plgAccessToken = Nothing- , _plgUploadType = Nothing- , _plgName = pPlgName_- , _plgCallback = Nothing- }----- | V1 error format.-plgXgafv :: Lens' ProjectsLocationsGet (Maybe Xgafv)-plgXgafv = lens _plgXgafv (\ s a -> s{_plgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plgUploadProtocol :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadProtocol- = lens _plgUploadProtocol- (\ s a -> s{_plgUploadProtocol = a})---- | OAuth access token.-plgAccessToken :: Lens' ProjectsLocationsGet (Maybe Text)-plgAccessToken- = lens _plgAccessToken- (\ s a -> s{_plgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plgUploadType :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadType- = lens _plgUploadType- (\ s a -> s{_plgUploadType = a})---- | Resource name for the location.-plgName :: Lens' ProjectsLocationsGet Text-plgName = lens _plgName (\ s a -> s{_plgName = a})---- | JSONP-plgCallback :: Lens' ProjectsLocationsGet (Maybe Text)-plgCallback- = lens _plgCallback (\ s a -> s{_plgCallback = a})--instance GoogleRequest ProjectsLocationsGet where- type Rs ProjectsLocationsGet = Location- type Scopes ProjectsLocationsGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient ProjectsLocationsGet'{..}- = go _plgName _plgXgafv _plgUploadProtocol- _plgAccessToken- _plgUploadType- _plgCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsGetResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/Create.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Create--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Create a new KeyRing in a given Project and Location.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.create@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Create- (- -- * REST Resource- ProjectsLocationsKeyRingsCreateResource-- -- * Creating a Request- , projectsLocationsKeyRingsCreate- , ProjectsLocationsKeyRingsCreate-- -- * Request Lenses- , plkrcParent- , plkrcXgafv- , plkrcUploadProtocol- , plkrcAccessToken- , plkrcUploadType- , plkrcPayload- , plkrcKeyRingId- , plkrcCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.create@ method which the--- 'ProjectsLocationsKeyRingsCreate' request conforms to.-type ProjectsLocationsKeyRingsCreateResource =- "v1" :>- Capture "parent" Text :>- "keyRings" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "keyRingId" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] KeyRing :> Post '[JSON] KeyRing---- | Create a new KeyRing in a given Project and Location.------ /See:/ 'projectsLocationsKeyRingsCreate' smart constructor.-data ProjectsLocationsKeyRingsCreate =- ProjectsLocationsKeyRingsCreate'- { _plkrcParent :: !Text- , _plkrcXgafv :: !(Maybe Xgafv)- , _plkrcUploadProtocol :: !(Maybe Text)- , _plkrcAccessToken :: !(Maybe Text)- , _plkrcUploadType :: !(Maybe Text)- , _plkrcPayload :: !KeyRing- , _plkrcKeyRingId :: !(Maybe Text)- , _plkrcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrcParent'------ * 'plkrcXgafv'------ * 'plkrcUploadProtocol'------ * 'plkrcAccessToken'------ * 'plkrcUploadType'------ * 'plkrcPayload'------ * 'plkrcKeyRingId'------ * 'plkrcCallback'-projectsLocationsKeyRingsCreate- :: Text -- ^ 'plkrcParent'- -> KeyRing -- ^ 'plkrcPayload'- -> ProjectsLocationsKeyRingsCreate-projectsLocationsKeyRingsCreate pPlkrcParent_ pPlkrcPayload_ =- ProjectsLocationsKeyRingsCreate'- { _plkrcParent = pPlkrcParent_- , _plkrcXgafv = Nothing- , _plkrcUploadProtocol = Nothing- , _plkrcAccessToken = Nothing- , _plkrcUploadType = Nothing- , _plkrcPayload = pPlkrcPayload_- , _plkrcKeyRingId = Nothing- , _plkrcCallback = Nothing- }----- | Required. The resource name of the location associated with the--- KeyRings, in the format \`projects\/*\/locations\/*\`.-plkrcParent :: Lens' ProjectsLocationsKeyRingsCreate Text-plkrcParent- = lens _plkrcParent (\ s a -> s{_plkrcParent = a})---- | V1 error format.-plkrcXgafv :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Xgafv)-plkrcXgafv- = lens _plkrcXgafv (\ s a -> s{_plkrcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrcUploadProtocol :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Text)-plkrcUploadProtocol- = lens _plkrcUploadProtocol- (\ s a -> s{_plkrcUploadProtocol = a})---- | OAuth access token.-plkrcAccessToken :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Text)-plkrcAccessToken- = lens _plkrcAccessToken- (\ s a -> s{_plkrcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrcUploadType :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Text)-plkrcUploadType- = lens _plkrcUploadType- (\ s a -> s{_plkrcUploadType = a})---- | Multipart request metadata.-plkrcPayload :: Lens' ProjectsLocationsKeyRingsCreate KeyRing-plkrcPayload- = lens _plkrcPayload (\ s a -> s{_plkrcPayload = a})---- | Required. It must be unique within a location and match the regular--- expression \`[a-zA-Z0-9_-]{1,63}\`-plkrcKeyRingId :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Text)-plkrcKeyRingId- = lens _plkrcKeyRingId- (\ s a -> s{_plkrcKeyRingId = a})---- | JSONP-plkrcCallback :: Lens' ProjectsLocationsKeyRingsCreate (Maybe Text)-plkrcCallback- = lens _plkrcCallback- (\ s a -> s{_plkrcCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCreate- where- type Rs ProjectsLocationsKeyRingsCreate = KeyRing- type Scopes ProjectsLocationsKeyRingsCreate =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient ProjectsLocationsKeyRingsCreate'{..}- = go _plkrcParent _plkrcXgafv _plkrcUploadProtocol- _plkrcAccessToken- _plkrcUploadType- _plkrcKeyRingId- _plkrcCallback- (Just AltJSON)- _plkrcPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsKeyRingsCreateResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Create.hs
@@ -1,193 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Create a new CryptoKey within a KeyRing. CryptoKey.purpose and--- CryptoKey.version_template.algorithm are required.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.create@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCreateResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCreate- , ProjectsLocationsKeyRingsCryptoKeysCreate-- -- * Request Lenses- , plkrckcParent- , plkrckcXgafv- , plkrckcUploadProtocol- , plkrckcAccessToken- , plkrckcUploadType- , plkrckcPayload- , plkrckcCryptoKeyId- , plkrckcCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.create@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCreate' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCreateResource- =- "v1" :>- Capture "parent" Text :>- "cryptoKeys" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "cryptoKeyId" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CryptoKey :> Post '[JSON] CryptoKey---- | Create a new CryptoKey within a KeyRing. CryptoKey.purpose and--- CryptoKey.version_template.algorithm are required.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCreate' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCreate =- ProjectsLocationsKeyRingsCryptoKeysCreate'- { _plkrckcParent :: !Text- , _plkrckcXgafv :: !(Maybe Xgafv)- , _plkrckcUploadProtocol :: !(Maybe Text)- , _plkrckcAccessToken :: !(Maybe Text)- , _plkrckcUploadType :: !(Maybe Text)- , _plkrckcPayload :: !CryptoKey- , _plkrckcCryptoKeyId :: !(Maybe Text)- , _plkrckcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckcParent'------ * 'plkrckcXgafv'------ * 'plkrckcUploadProtocol'------ * 'plkrckcAccessToken'------ * 'plkrckcUploadType'------ * 'plkrckcPayload'------ * 'plkrckcCryptoKeyId'------ * 'plkrckcCallback'-projectsLocationsKeyRingsCryptoKeysCreate- :: Text -- ^ 'plkrckcParent'- -> CryptoKey -- ^ 'plkrckcPayload'- -> ProjectsLocationsKeyRingsCryptoKeysCreate-projectsLocationsKeyRingsCryptoKeysCreate pPlkrckcParent_ pPlkrckcPayload_ =- ProjectsLocationsKeyRingsCryptoKeysCreate'- { _plkrckcParent = pPlkrckcParent_- , _plkrckcXgafv = Nothing- , _plkrckcUploadProtocol = Nothing- , _plkrckcAccessToken = Nothing- , _plkrckcUploadType = Nothing- , _plkrckcPayload = pPlkrckcPayload_- , _plkrckcCryptoKeyId = Nothing- , _plkrckcCallback = Nothing- }----- | Required. The name of the KeyRing associated with the CryptoKeys.-plkrckcParent :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate Text-plkrckcParent- = lens _plkrckcParent- (\ s a -> s{_plkrckcParent = a})---- | V1 error format.-plkrckcXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Xgafv)-plkrckcXgafv- = lens _plkrckcXgafv (\ s a -> s{_plkrckcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckcUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Text)-plkrckcUploadProtocol- = lens _plkrckcUploadProtocol- (\ s a -> s{_plkrckcUploadProtocol = a})---- | OAuth access token.-plkrckcAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Text)-plkrckcAccessToken- = lens _plkrckcAccessToken- (\ s a -> s{_plkrckcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckcUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Text)-plkrckcUploadType- = lens _plkrckcUploadType- (\ s a -> s{_plkrckcUploadType = a})---- | Multipart request metadata.-plkrckcPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate CryptoKey-plkrckcPayload- = lens _plkrckcPayload- (\ s a -> s{_plkrckcPayload = a})---- | Required. It must be unique within a KeyRing and match the regular--- expression \`[a-zA-Z0-9_-]{1,63}\`-plkrckcCryptoKeyId :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Text)-plkrckcCryptoKeyId- = lens _plkrckcCryptoKeyId- (\ s a -> s{_plkrckcCryptoKeyId = a})---- | JSONP-plkrckcCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCreate (Maybe Text)-plkrckcCallback- = lens _plkrckcCallback- (\ s a -> s{_plkrckcCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCreate- where- type Rs ProjectsLocationsKeyRingsCryptoKeysCreate =- CryptoKey- type Scopes ProjectsLocationsKeyRingsCryptoKeysCreate- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCreate'{..}- = go _plkrckcParent _plkrckcXgafv- _plkrckcUploadProtocol- _plkrckcAccessToken- _plkrckcUploadType- _plkrckcCryptoKeyId- _plkrckcCallback- (Just AltJSON)- _plkrckcPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCreateResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricDecrypt.hs
@@ -1,185 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Decrypts data that was encrypted with a public key retrieved from--- GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose--- ASYMMETRIC_DECRYPT.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt-- -- * Request Lenses- , plkrckckvadXgafv- , plkrckckvadUploadProtocol- , plkrckckvadAccessToken- , plkrckckvadUploadType- , plkrckckvadPayload- , plkrckckvadName- , plkrckckvadCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricDecrypt@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource- =- "v1" :>- CaptureMode "name" "asymmetricDecrypt" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] AsymmetricDecryptRequest :>- Post '[JSON] AsymmetricDecryptResponse---- | Decrypts data that was encrypted with a public key retrieved from--- GetPublicKey corresponding to a CryptoKeyVersion with CryptoKey.purpose--- ASYMMETRIC_DECRYPT.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt'- { _plkrckckvadXgafv :: !(Maybe Xgafv)- , _plkrckckvadUploadProtocol :: !(Maybe Text)- , _plkrckckvadAccessToken :: !(Maybe Text)- , _plkrckckvadUploadType :: !(Maybe Text)- , _plkrckckvadPayload :: !AsymmetricDecryptRequest- , _plkrckckvadName :: !Text- , _plkrckckvadCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvadXgafv'------ * 'plkrckckvadUploadProtocol'------ * 'plkrckckvadAccessToken'------ * 'plkrckckvadUploadType'------ * 'plkrckckvadPayload'------ * 'plkrckckvadName'------ * 'plkrckckvadCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt- :: AsymmetricDecryptRequest -- ^ 'plkrckckvadPayload'- -> Text -- ^ 'plkrckckvadName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt pPlkrckckvadPayload_ pPlkrckckvadName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt'- { _plkrckckvadXgafv = Nothing- , _plkrckckvadUploadProtocol = Nothing- , _plkrckckvadAccessToken = Nothing- , _plkrckckvadUploadType = Nothing- , _plkrckckvadPayload = pPlkrckckvadPayload_- , _plkrckckvadName = pPlkrckckvadName_- , _plkrckckvadCallback = Nothing- }----- | V1 error format.-plkrckckvadXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (Maybe Xgafv)-plkrckckvadXgafv- = lens _plkrckckvadXgafv- (\ s a -> s{_plkrckckvadXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvadUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (Maybe Text)-plkrckckvadUploadProtocol- = lens _plkrckckvadUploadProtocol- (\ s a -> s{_plkrckckvadUploadProtocol = a})---- | OAuth access token.-plkrckckvadAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (Maybe Text)-plkrckckvadAccessToken- = lens _plkrckckvadAccessToken- (\ s a -> s{_plkrckckvadAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvadUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (Maybe Text)-plkrckckvadUploadType- = lens _plkrckckvadUploadType- (\ s a -> s{_plkrckckvadUploadType = a})---- | Multipart request metadata.-plkrckckvadPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt AsymmetricDecryptRequest-plkrckckvadPayload- = lens _plkrckckvadPayload- (\ s a -> s{_plkrckckvadPayload = a})---- | Required. The resource name of the CryptoKeyVersion to use for--- decryption.-plkrckckvadName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt Text-plkrckckvadName- = lens _plkrckckvadName- (\ s a -> s{_plkrckckvadName = a})---- | JSONP-plkrckckvadCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt (Maybe Text)-plkrckckvadCallback- = lens _plkrckckvadCallback- (\ s a -> s{_plkrckckvadCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt- = AsymmetricDecryptResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecrypt'{..}- = go _plkrckckvadName _plkrckckvadXgafv- _plkrckckvadUploadProtocol- _plkrckckvadAccessToken- _plkrckckvadUploadType- _plkrckckvadCallback- (Just AltJSON)- _plkrckckvadPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricDecryptResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/AsymmetricSign.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Signs data using a CryptoKeyVersion with CryptoKey.purpose--- ASYMMETRIC_SIGN, producing a signature that can be verified with the--- public key retrieved from GetPublicKey.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign-- -- * Request Lenses- , plkrckckvasXgafv- , plkrckckvasUploadProtocol- , plkrckckvasAccessToken- , plkrckckvasUploadType- , plkrckckvasPayload- , plkrckckvasName- , plkrckckvasCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.asymmetricSign@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource- =- "v1" :>- CaptureMode "name" "asymmetricSign" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] AsymmetricSignRequest :>- Post '[JSON] AsymmetricSignResponse---- | Signs data using a CryptoKeyVersion with CryptoKey.purpose--- ASYMMETRIC_SIGN, producing a signature that can be verified with the--- public key retrieved from GetPublicKey.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign'- { _plkrckckvasXgafv :: !(Maybe Xgafv)- , _plkrckckvasUploadProtocol :: !(Maybe Text)- , _plkrckckvasAccessToken :: !(Maybe Text)- , _plkrckckvasUploadType :: !(Maybe Text)- , _plkrckckvasPayload :: !AsymmetricSignRequest- , _plkrckckvasName :: !Text- , _plkrckckvasCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvasXgafv'------ * 'plkrckckvasUploadProtocol'------ * 'plkrckckvasAccessToken'------ * 'plkrckckvasUploadType'------ * 'plkrckckvasPayload'------ * 'plkrckckvasName'------ * 'plkrckckvasCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign- :: AsymmetricSignRequest -- ^ 'plkrckckvasPayload'- -> Text -- ^ 'plkrckckvasName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign pPlkrckckvasPayload_ pPlkrckckvasName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign'- { _plkrckckvasXgafv = Nothing- , _plkrckckvasUploadProtocol = Nothing- , _plkrckckvasAccessToken = Nothing- , _plkrckckvasUploadType = Nothing- , _plkrckckvasPayload = pPlkrckckvasPayload_- , _plkrckckvasName = pPlkrckckvasName_- , _plkrckckvasCallback = Nothing- }----- | V1 error format.-plkrckckvasXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (Maybe Xgafv)-plkrckckvasXgafv- = lens _plkrckckvasXgafv- (\ s a -> s{_plkrckckvasXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvasUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (Maybe Text)-plkrckckvasUploadProtocol- = lens _plkrckckvasUploadProtocol- (\ s a -> s{_plkrckckvasUploadProtocol = a})---- | OAuth access token.-plkrckckvasAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (Maybe Text)-plkrckckvasAccessToken- = lens _plkrckckvasAccessToken- (\ s a -> s{_plkrckckvasAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvasUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (Maybe Text)-plkrckckvasUploadType- = lens _plkrckckvasUploadType- (\ s a -> s{_plkrckckvasUploadType = a})---- | Multipart request metadata.-plkrckckvasPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign AsymmetricSignRequest-plkrckckvasPayload- = lens _plkrckckvasPayload- (\ s a -> s{_plkrckckvasPayload = a})---- | Required. The resource name of the CryptoKeyVersion to use for signing.-plkrckckvasName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign Text-plkrckckvasName- = lens _plkrckckvasName- (\ s a -> s{_plkrckckvasName = a})---- | JSONP-plkrckckvasCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign (Maybe Text)-plkrckckvasCallback- = lens _plkrckckvasCallback- (\ s a -> s{_plkrckckvasCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign- = AsymmetricSignResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSign'{..}- = go _plkrckckvasName _plkrckckvasXgafv- _plkrckckvasUploadProtocol- _plkrckckvasAccessToken- _plkrckckvasUploadType- _plkrckckvasCallback- (Just AltJSON)- _plkrckckvasPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsAsymmetricSignResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Create.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Create a new CryptoKeyVersion in a CryptoKey. The server will assign the--- next sequential id. If unset, state will be set to ENABLED.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate-- -- * Request Lenses- , plkrckckvcParent- , plkrckckvcXgafv- , plkrckckvcUploadProtocol- , plkrckckvcAccessToken- , plkrckckvcUploadType- , plkrckckvcPayload- , plkrckckvcCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.create@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource- =- "v1" :>- Capture "parent" Text :>- "cryptoKeyVersions" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CryptoKeyVersion :>- Post '[JSON] CryptoKeyVersion---- | Create a new CryptoKeyVersion in a CryptoKey. The server will assign the--- next sequential id. If unset, state will be set to ENABLED.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate'- { _plkrckckvcParent :: !Text- , _plkrckckvcXgafv :: !(Maybe Xgafv)- , _plkrckckvcUploadProtocol :: !(Maybe Text)- , _plkrckckvcAccessToken :: !(Maybe Text)- , _plkrckckvcUploadType :: !(Maybe Text)- , _plkrckckvcPayload :: !CryptoKeyVersion- , _plkrckckvcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvcParent'------ * 'plkrckckvcXgafv'------ * 'plkrckckvcUploadProtocol'------ * 'plkrckckvcAccessToken'------ * 'plkrckckvcUploadType'------ * 'plkrckckvcPayload'------ * 'plkrckckvcCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate- :: Text -- ^ 'plkrckckvcParent'- -> CryptoKeyVersion -- ^ 'plkrckckvcPayload'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate pPlkrckckvcParent_ pPlkrckckvcPayload_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate'- { _plkrckckvcParent = pPlkrckckvcParent_- , _plkrckckvcXgafv = Nothing- , _plkrckckvcUploadProtocol = Nothing- , _plkrckckvcAccessToken = Nothing- , _plkrckckvcUploadType = Nothing- , _plkrckckvcPayload = pPlkrckckvcPayload_- , _plkrckckvcCallback = Nothing- }----- | Required. The name of the CryptoKey associated with the--- CryptoKeyVersions.-plkrckckvcParent :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate Text-plkrckckvcParent- = lens _plkrckckvcParent- (\ s a -> s{_plkrckckvcParent = a})---- | V1 error format.-plkrckckvcXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (Maybe Xgafv)-plkrckckvcXgafv- = lens _plkrckckvcXgafv- (\ s a -> s{_plkrckckvcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvcUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (Maybe Text)-plkrckckvcUploadProtocol- = lens _plkrckckvcUploadProtocol- (\ s a -> s{_plkrckckvcUploadProtocol = a})---- | OAuth access token.-plkrckckvcAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (Maybe Text)-plkrckckvcAccessToken- = lens _plkrckckvcAccessToken- (\ s a -> s{_plkrckckvcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvcUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (Maybe Text)-plkrckckvcUploadType- = lens _plkrckckvcUploadType- (\ s a -> s{_plkrckckvcUploadType = a})---- | Multipart request metadata.-plkrckckvcPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate CryptoKeyVersion-plkrckckvcPayload- = lens _plkrckckvcPayload- (\ s a -> s{_plkrckckvcPayload = a})---- | JSONP-plkrckckvcCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate (Maybe Text)-plkrckckvcCallback- = lens _plkrckckvcCallback- (\ s a -> s{_plkrckckvcCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate- = CryptoKeyVersion- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreate'{..}- = go _plkrckckvcParent _plkrckckvcXgafv- _plkrckckvcUploadProtocol- _plkrckckvcAccessToken- _plkrckckvcUploadType- _plkrckckvcCallback- (Just AltJSON)- _plkrckckvcPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsCreateResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Destroy.hs
@@ -1,190 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Schedule a CryptoKeyVersion for destruction. Upon calling this method,--- CryptoKeyVersion.state will be set to DESTROY_SCHEDULED and destroy_time--- will be set to a time 24 hours in the future, at which point the state--- will be changed to DESTROYED, and the key material will be irrevocably--- destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion--- may be called to reverse the process.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy-- -- * Request Lenses- , plkrckckvdXgafv- , plkrckckvdUploadProtocol- , plkrckckvdAccessToken- , plkrckckvdUploadType- , plkrckckvdPayload- , plkrckckvdName- , plkrckckvdCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.destroy@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource- =- "v1" :>- CaptureMode "name" "destroy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] DestroyCryptoKeyVersionRequest :>- Post '[JSON] CryptoKeyVersion---- | Schedule a CryptoKeyVersion for destruction. Upon calling this method,--- CryptoKeyVersion.state will be set to DESTROY_SCHEDULED and destroy_time--- will be set to a time 24 hours in the future, at which point the state--- will be changed to DESTROYED, and the key material will be irrevocably--- destroyed. Before the destroy_time is reached, RestoreCryptoKeyVersion--- may be called to reverse the process.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy'- { _plkrckckvdXgafv :: !(Maybe Xgafv)- , _plkrckckvdUploadProtocol :: !(Maybe Text)- , _plkrckckvdAccessToken :: !(Maybe Text)- , _plkrckckvdUploadType :: !(Maybe Text)- , _plkrckckvdPayload :: !DestroyCryptoKeyVersionRequest- , _plkrckckvdName :: !Text- , _plkrckckvdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvdXgafv'------ * 'plkrckckvdUploadProtocol'------ * 'plkrckckvdAccessToken'------ * 'plkrckckvdUploadType'------ * 'plkrckckvdPayload'------ * 'plkrckckvdName'------ * 'plkrckckvdCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy- :: DestroyCryptoKeyVersionRequest -- ^ 'plkrckckvdPayload'- -> Text -- ^ 'plkrckckvdName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy pPlkrckckvdPayload_ pPlkrckckvdName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy'- { _plkrckckvdXgafv = Nothing- , _plkrckckvdUploadProtocol = Nothing- , _plkrckckvdAccessToken = Nothing- , _plkrckckvdUploadType = Nothing- , _plkrckckvdPayload = pPlkrckckvdPayload_- , _plkrckckvdName = pPlkrckckvdName_- , _plkrckckvdCallback = Nothing- }----- | V1 error format.-plkrckckvdXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (Maybe Xgafv)-plkrckckvdXgafv- = lens _plkrckckvdXgafv- (\ s a -> s{_plkrckckvdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvdUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (Maybe Text)-plkrckckvdUploadProtocol- = lens _plkrckckvdUploadProtocol- (\ s a -> s{_plkrckckvdUploadProtocol = a})---- | OAuth access token.-plkrckckvdAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (Maybe Text)-plkrckckvdAccessToken- = lens _plkrckckvdAccessToken- (\ s a -> s{_plkrckckvdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvdUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (Maybe Text)-plkrckckvdUploadType- = lens _plkrckckvdUploadType- (\ s a -> s{_plkrckckvdUploadType = a})---- | Multipart request metadata.-plkrckckvdPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy DestroyCryptoKeyVersionRequest-plkrckckvdPayload- = lens _plkrckckvdPayload- (\ s a -> s{_plkrckckvdPayload = a})---- | The resource name of the CryptoKeyVersion to destroy.-plkrckckvdName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy Text-plkrckckvdName- = lens _plkrckckvdName- (\ s a -> s{_plkrckckvdName = a})---- | JSONP-plkrckckvdCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy (Maybe Text)-plkrckckvdCallback- = lens _plkrckckvdCallback- (\ s a -> s{_plkrckckvdCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy- = CryptoKeyVersion- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroy'{..}- = go _plkrckckvdName _plkrckckvdXgafv- _plkrckckvdUploadProtocol- _plkrckckvdAccessToken- _plkrckckvdUploadType- _plkrckckvdCallback- (Just AltJSON)- _plkrckckvdPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsDestroyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Get.hs
@@ -1,166 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns metadata for a given CryptoKeyVersion.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet-- -- * Request Lenses- , plkrckckvgXgafv- , plkrckckvgUploadProtocol- , plkrckckvgAccessToken- , plkrckckvgUploadType- , plkrckckvgName- , plkrckckvgCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.get@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] CryptoKeyVersion---- | Returns metadata for a given CryptoKeyVersion.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet'- { _plkrckckvgXgafv :: !(Maybe Xgafv)- , _plkrckckvgUploadProtocol :: !(Maybe Text)- , _plkrckckvgAccessToken :: !(Maybe Text)- , _plkrckckvgUploadType :: !(Maybe Text)- , _plkrckckvgName :: !Text- , _plkrckckvgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvgXgafv'------ * 'plkrckckvgUploadProtocol'------ * 'plkrckckvgAccessToken'------ * 'plkrckckvgUploadType'------ * 'plkrckckvgName'------ * 'plkrckckvgCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet- :: Text -- ^ 'plkrckckvgName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet pPlkrckckvgName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet'- { _plkrckckvgXgafv = Nothing- , _plkrckckvgUploadProtocol = Nothing- , _plkrckckvgAccessToken = Nothing- , _plkrckckvgUploadType = Nothing- , _plkrckckvgName = pPlkrckckvgName_- , _plkrckckvgCallback = Nothing- }----- | V1 error format.-plkrckckvgXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (Maybe Xgafv)-plkrckckvgXgafv- = lens _plkrckckvgXgafv- (\ s a -> s{_plkrckckvgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvgUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (Maybe Text)-plkrckckvgUploadProtocol- = lens _plkrckckvgUploadProtocol- (\ s a -> s{_plkrckckvgUploadProtocol = a})---- | OAuth access token.-plkrckckvgAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (Maybe Text)-plkrckckvgAccessToken- = lens _plkrckckvgAccessToken- (\ s a -> s{_plkrckckvgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvgUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (Maybe Text)-plkrckckvgUploadType- = lens _plkrckckvgUploadType- (\ s a -> s{_plkrckckvgUploadType = a})---- | The name of the CryptoKeyVersion to get.-plkrckckvgName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet Text-plkrckckvgName- = lens _plkrckckvgName- (\ s a -> s{_plkrckckvgName = a})---- | JSONP-plkrckckvgCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet (Maybe Text)-plkrckckvgCallback- = lens _plkrckckvgCallback- (\ s a -> s{_plkrckckvgCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet- = CryptoKeyVersion- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGet'{..}- = go _plkrckckvgName _plkrckckvgXgafv- _plkrckckvgUploadProtocol- _plkrckckvgAccessToken- _plkrckckvgUploadType- _plkrckckvgCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/GetPublicKey.hs
@@ -1,168 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns the public key for the given CryptoKeyVersion. The--- CryptoKey.purpose must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey-- -- * Request Lenses- , plkrckckvgpkXgafv- , plkrckckvgpkUploadProtocol- , plkrckckvgpkAccessToken- , plkrckckvgpkUploadType- , plkrckckvgpkName- , plkrckckvgpkCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.getPublicKey@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource- =- "v1" :>- Capture "name" Text :>- "publicKey" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] PublicKey---- | Returns the public key for the given CryptoKeyVersion. The--- CryptoKey.purpose must be ASYMMETRIC_SIGN or ASYMMETRIC_DECRYPT.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey'- { _plkrckckvgpkXgafv :: !(Maybe Xgafv)- , _plkrckckvgpkUploadProtocol :: !(Maybe Text)- , _plkrckckvgpkAccessToken :: !(Maybe Text)- , _plkrckckvgpkUploadType :: !(Maybe Text)- , _plkrckckvgpkName :: !Text- , _plkrckckvgpkCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvgpkXgafv'------ * 'plkrckckvgpkUploadProtocol'------ * 'plkrckckvgpkAccessToken'------ * 'plkrckckvgpkUploadType'------ * 'plkrckckvgpkName'------ * 'plkrckckvgpkCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey- :: Text -- ^ 'plkrckckvgpkName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey pPlkrckckvgpkName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey'- { _plkrckckvgpkXgafv = Nothing- , _plkrckckvgpkUploadProtocol = Nothing- , _plkrckckvgpkAccessToken = Nothing- , _plkrckckvgpkUploadType = Nothing- , _plkrckckvgpkName = pPlkrckckvgpkName_- , _plkrckckvgpkCallback = Nothing- }----- | V1 error format.-plkrckckvgpkXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (Maybe Xgafv)-plkrckckvgpkXgafv- = lens _plkrckckvgpkXgafv- (\ s a -> s{_plkrckckvgpkXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvgpkUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (Maybe Text)-plkrckckvgpkUploadProtocol- = lens _plkrckckvgpkUploadProtocol- (\ s a -> s{_plkrckckvgpkUploadProtocol = a})---- | OAuth access token.-plkrckckvgpkAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (Maybe Text)-plkrckckvgpkAccessToken- = lens _plkrckckvgpkAccessToken- (\ s a -> s{_plkrckckvgpkAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvgpkUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (Maybe Text)-plkrckckvgpkUploadType- = lens _plkrckckvgpkUploadType- (\ s a -> s{_plkrckckvgpkUploadType = a})---- | The name of the CryptoKeyVersion public key to get.-plkrckckvgpkName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey Text-plkrckckvgpkName- = lens _plkrckckvgpkName- (\ s a -> s{_plkrckckvgpkName = a})---- | JSONP-plkrckckvgpkCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey (Maybe Text)-plkrckckvgpkCallback- = lens _plkrckckvgpkCallback- (\ s a -> s{_plkrckckvgpkCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey- = PublicKey- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKey'{..}- = go _plkrckckvgpkName _plkrckckvgpkXgafv- _plkrckckvgpkUploadProtocol- _plkrckckvgpkAccessToken- _plkrckckvgpkUploadType- _plkrckckvgpkCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsGetPublicKeyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/List.hs
@@ -1,213 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists CryptoKeyVersions.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList-- -- * Request Lenses- , plkrckckvlParent- , plkrckckvlXgafv- , plkrckckvlUploadProtocol- , plkrckckvlAccessToken- , plkrckckvlUploadType- , plkrckckvlView- , plkrckckvlPageToken- , plkrckckvlPageSize- , plkrckckvlCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.list@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource- =- "v1" :>- Capture "parent" Text :>- "cryptoKeyVersions" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "view" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListCryptoKeyVersionsResponse---- | Lists CryptoKeyVersions.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList'- { _plkrckckvlParent :: !Text- , _plkrckckvlXgafv :: !(Maybe Xgafv)- , _plkrckckvlUploadProtocol :: !(Maybe Text)- , _plkrckckvlAccessToken :: !(Maybe Text)- , _plkrckckvlUploadType :: !(Maybe Text)- , _plkrckckvlView :: !(Maybe Text)- , _plkrckckvlPageToken :: !(Maybe Text)- , _plkrckckvlPageSize :: !(Maybe (Textual Int32))- , _plkrckckvlCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvlParent'------ * 'plkrckckvlXgafv'------ * 'plkrckckvlUploadProtocol'------ * 'plkrckckvlAccessToken'------ * 'plkrckckvlUploadType'------ * 'plkrckckvlView'------ * 'plkrckckvlPageToken'------ * 'plkrckckvlPageSize'------ * 'plkrckckvlCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList- :: Text -- ^ 'plkrckckvlParent'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList pPlkrckckvlParent_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList'- { _plkrckckvlParent = pPlkrckckvlParent_- , _plkrckckvlXgafv = Nothing- , _plkrckckvlUploadProtocol = Nothing- , _plkrckckvlAccessToken = Nothing- , _plkrckckvlUploadType = Nothing- , _plkrckckvlView = Nothing- , _plkrckckvlPageToken = Nothing- , _plkrckckvlPageSize = Nothing- , _plkrckckvlCallback = Nothing- }----- | Required. The resource name of the CryptoKey to list, in the format--- \`projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\`.-plkrckckvlParent :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList Text-plkrckckvlParent- = lens _plkrckckvlParent- (\ s a -> s{_plkrckckvlParent = a})---- | V1 error format.-plkrckckvlXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Xgafv)-plkrckckvlXgafv- = lens _plkrckckvlXgafv- (\ s a -> s{_plkrckckvlXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvlUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlUploadProtocol- = lens _plkrckckvlUploadProtocol- (\ s a -> s{_plkrckckvlUploadProtocol = a})---- | OAuth access token.-plkrckckvlAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlAccessToken- = lens _plkrckckvlAccessToken- (\ s a -> s{_plkrckckvlAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvlUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlUploadType- = lens _plkrckckvlUploadType- (\ s a -> s{_plkrckckvlUploadType = a})---- | The fields to include in the response.-plkrckckvlView :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlView- = lens _plkrckckvlView- (\ s a -> s{_plkrckckvlView = a})---- | Optional pagination token, returned earlier via--- ListCryptoKeyVersionsResponse.next_page_token.-plkrckckvlPageToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlPageToken- = lens _plkrckckvlPageToken- (\ s a -> s{_plkrckckvlPageToken = a})---- | Optional limit on the number of CryptoKeyVersions to include in the--- response. Further CryptoKeyVersions can subsequently be obtained by--- including the ListCryptoKeyVersionsResponse.next_page_token in a--- subsequent request. If unspecified, the server will pick an appropriate--- default.-plkrckckvlPageSize :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Int32)-plkrckckvlPageSize- = lens _plkrckckvlPageSize- (\ s a -> s{_plkrckckvlPageSize = a})- . mapping _Coerce---- | JSONP-plkrckckvlCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList (Maybe Text)-plkrckckvlCallback- = lens _plkrckckvlCallback- (\ s a -> s{_plkrckckvlCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList- = ListCryptoKeyVersionsResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsList'{..}- = go _plkrckckvlParent _plkrckckvlXgafv- _plkrckckvlUploadProtocol- _plkrckckvlAccessToken- _plkrckckvlUploadType- _plkrckckvlView- _plkrckckvlPageToken- _plkrckckvlPageSize- _plkrckckvlCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsListResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Patch.hs
@@ -1,198 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Update a CryptoKeyVersion\'s metadata. state may be changed between--- ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and--- RestoreCryptoKeyVersion to move between other states.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch-- -- * Request Lenses- , plkrckckvpXgafv- , plkrckckvpUploadProtocol- , plkrckckvpUpdateMask- , plkrckckvpAccessToken- , plkrckckvpUploadType- , plkrckckvpPayload- , plkrckckvpName- , plkrckckvpCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.patch@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CryptoKeyVersion :>- Patch '[JSON] CryptoKeyVersion---- | Update a CryptoKeyVersion\'s metadata. state may be changed between--- ENABLED and DISABLED using this method. See DestroyCryptoKeyVersion and--- RestoreCryptoKeyVersion to move between other states.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch'- { _plkrckckvpXgafv :: !(Maybe Xgafv)- , _plkrckckvpUploadProtocol :: !(Maybe Text)- , _plkrckckvpUpdateMask :: !(Maybe GFieldMask)- , _plkrckckvpAccessToken :: !(Maybe Text)- , _plkrckckvpUploadType :: !(Maybe Text)- , _plkrckckvpPayload :: !CryptoKeyVersion- , _plkrckckvpName :: !Text- , _plkrckckvpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvpXgafv'------ * 'plkrckckvpUploadProtocol'------ * 'plkrckckvpUpdateMask'------ * 'plkrckckvpAccessToken'------ * 'plkrckckvpUploadType'------ * 'plkrckckvpPayload'------ * 'plkrckckvpName'------ * 'plkrckckvpCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch- :: CryptoKeyVersion -- ^ 'plkrckckvpPayload'- -> Text -- ^ 'plkrckckvpName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch pPlkrckckvpPayload_ pPlkrckckvpName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch'- { _plkrckckvpXgafv = Nothing- , _plkrckckvpUploadProtocol = Nothing- , _plkrckckvpUpdateMask = Nothing- , _plkrckckvpAccessToken = Nothing- , _plkrckckvpUploadType = Nothing- , _plkrckckvpPayload = pPlkrckckvpPayload_- , _plkrckckvpName = pPlkrckckvpName_- , _plkrckckvpCallback = Nothing- }----- | V1 error format.-plkrckckvpXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe Xgafv)-plkrckckvpXgafv- = lens _plkrckckvpXgafv- (\ s a -> s{_plkrckckvpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvpUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe Text)-plkrckckvpUploadProtocol- = lens _plkrckckvpUploadProtocol- (\ s a -> s{_plkrckckvpUploadProtocol = a})---- | Required list of fields to be updated in this request.-plkrckckvpUpdateMask :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe GFieldMask)-plkrckckvpUpdateMask- = lens _plkrckckvpUpdateMask- (\ s a -> s{_plkrckckvpUpdateMask = a})---- | OAuth access token.-plkrckckvpAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe Text)-plkrckckvpAccessToken- = lens _plkrckckvpAccessToken- (\ s a -> s{_plkrckckvpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvpUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe Text)-plkrckckvpUploadType- = lens _plkrckckvpUploadType- (\ s a -> s{_plkrckckvpUploadType = a})---- | Multipart request metadata.-plkrckckvpPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch CryptoKeyVersion-plkrckckvpPayload- = lens _plkrckckvpPayload- (\ s a -> s{_plkrckckvpPayload = a})---- | Output only. The resource name for this CryptoKeyVersion in the format--- \`projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\/cryptoKeyVersions\/*\`.-plkrckckvpName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch Text-plkrckckvpName- = lens _plkrckckvpName- (\ s a -> s{_plkrckckvpName = a})---- | JSONP-plkrckckvpCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch (Maybe Text)-plkrckckvpCallback- = lens _plkrckckvpCallback- (\ s a -> s{_plkrckckvpCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch- = CryptoKeyVersion- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatch'{..}- = go _plkrckckvpName _plkrckckvpXgafv- _plkrckckvpUploadProtocol- _plkrckckvpUpdateMask- _plkrckckvpAccessToken- _plkrckckvpUploadType- _plkrckckvpCallback- (Just AltJSON)- _plkrckckvpPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsPatchResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/CryptoKeyVersions/Restore.hs
@@ -1,184 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. Upon--- restoration of the CryptoKeyVersion, state will be set to DISABLED, and--- destroy_time will be cleared.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore- , ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore-- -- * Request Lenses- , plkrckckvrXgafv- , plkrckckvrUploadProtocol- , plkrckckvrAccessToken- , plkrckckvrUploadType- , plkrckckvrPayload- , plkrckckvrName- , plkrckckvrCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.cryptoKeyVersions.restore@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource- =- "v1" :>- CaptureMode "name" "restore" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] RestoreCryptoKeyVersionRequest :>- Post '[JSON] CryptoKeyVersion---- | Restore a CryptoKeyVersion in the DESTROY_SCHEDULED state. Upon--- restoration of the CryptoKeyVersion, state will be set to DISABLED, and--- destroy_time will be cleared.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore'- { _plkrckckvrXgafv :: !(Maybe Xgafv)- , _plkrckckvrUploadProtocol :: !(Maybe Text)- , _plkrckckvrAccessToken :: !(Maybe Text)- , _plkrckckvrUploadType :: !(Maybe Text)- , _plkrckckvrPayload :: !RestoreCryptoKeyVersionRequest- , _plkrckckvrName :: !Text- , _plkrckckvrCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckckvrXgafv'------ * 'plkrckckvrUploadProtocol'------ * 'plkrckckvrAccessToken'------ * 'plkrckckvrUploadType'------ * 'plkrckckvrPayload'------ * 'plkrckckvrName'------ * 'plkrckckvrCallback'-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore- :: RestoreCryptoKeyVersionRequest -- ^ 'plkrckckvrPayload'- -> Text -- ^ 'plkrckckvrName'- -> ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore-projectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore pPlkrckckvrPayload_ pPlkrckckvrName_ =- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore'- { _plkrckckvrXgafv = Nothing- , _plkrckckvrUploadProtocol = Nothing- , _plkrckckvrAccessToken = Nothing- , _plkrckckvrUploadType = Nothing- , _plkrckckvrPayload = pPlkrckckvrPayload_- , _plkrckckvrName = pPlkrckckvrName_- , _plkrckckvrCallback = Nothing- }----- | V1 error format.-plkrckckvrXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (Maybe Xgafv)-plkrckckvrXgafv- = lens _plkrckckvrXgafv- (\ s a -> s{_plkrckckvrXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckckvrUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (Maybe Text)-plkrckckvrUploadProtocol- = lens _plkrckckvrUploadProtocol- (\ s a -> s{_plkrckckvrUploadProtocol = a})---- | OAuth access token.-plkrckckvrAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (Maybe Text)-plkrckckvrAccessToken- = lens _plkrckckvrAccessToken- (\ s a -> s{_plkrckckvrAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckckvrUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (Maybe Text)-plkrckckvrUploadType- = lens _plkrckckvrUploadType- (\ s a -> s{_plkrckckvrUploadType = a})---- | Multipart request metadata.-plkrckckvrPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore RestoreCryptoKeyVersionRequest-plkrckckvrPayload- = lens _plkrckckvrPayload- (\ s a -> s{_plkrckckvrPayload = a})---- | The resource name of the CryptoKeyVersion to restore.-plkrckckvrName :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore Text-plkrckckvrName- = lens _plkrckckvrName- (\ s a -> s{_plkrckckvrName = a})---- | JSONP-plkrckckvrCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore (Maybe Text)-plkrckckvrCallback- = lens _plkrckckvrCallback- (\ s a -> s{_plkrckckvrCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore- = CryptoKeyVersion- type Scopes- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestore'{..}- = go _plkrckckvrName _plkrckckvrXgafv- _plkrckckvrUploadProtocol- _plkrckckvrAccessToken- _plkrckckvrUploadType- _plkrckckvrCallback- (Just AltJSON)- _plkrckckvrPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsRestoreResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Decrypt.hs
@@ -1,180 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Decrypts data that was protected by Encrypt. The CryptoKey.purpose must--- be ENCRYPT_DECRYPT.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.decrypt@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysDecryptResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysDecrypt- , ProjectsLocationsKeyRingsCryptoKeysDecrypt-- -- * Request Lenses- , plkrckdXgafv- , plkrckdUploadProtocol- , plkrckdAccessToken- , plkrckdUploadType- , plkrckdPayload- , plkrckdName- , plkrckdCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.decrypt@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysDecrypt' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysDecryptResource- =- "v1" :>- CaptureMode "name" "decrypt" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] DecryptRequest :>- Post '[JSON] DecryptResponse---- | Decrypts data that was protected by Encrypt. The CryptoKey.purpose must--- be ENCRYPT_DECRYPT.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysDecrypt' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysDecrypt =- ProjectsLocationsKeyRingsCryptoKeysDecrypt'- { _plkrckdXgafv :: !(Maybe Xgafv)- , _plkrckdUploadProtocol :: !(Maybe Text)- , _plkrckdAccessToken :: !(Maybe Text)- , _plkrckdUploadType :: !(Maybe Text)- , _plkrckdPayload :: !DecryptRequest- , _plkrckdName :: !Text- , _plkrckdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysDecrypt' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckdXgafv'------ * 'plkrckdUploadProtocol'------ * 'plkrckdAccessToken'------ * 'plkrckdUploadType'------ * 'plkrckdPayload'------ * 'plkrckdName'------ * 'plkrckdCallback'-projectsLocationsKeyRingsCryptoKeysDecrypt- :: DecryptRequest -- ^ 'plkrckdPayload'- -> Text -- ^ 'plkrckdName'- -> ProjectsLocationsKeyRingsCryptoKeysDecrypt-projectsLocationsKeyRingsCryptoKeysDecrypt pPlkrckdPayload_ pPlkrckdName_ =- ProjectsLocationsKeyRingsCryptoKeysDecrypt'- { _plkrckdXgafv = Nothing- , _plkrckdUploadProtocol = Nothing- , _plkrckdAccessToken = Nothing- , _plkrckdUploadType = Nothing- , _plkrckdPayload = pPlkrckdPayload_- , _plkrckdName = pPlkrckdName_- , _plkrckdCallback = Nothing- }----- | V1 error format.-plkrckdXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt (Maybe Xgafv)-plkrckdXgafv- = lens _plkrckdXgafv (\ s a -> s{_plkrckdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckdUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt (Maybe Text)-plkrckdUploadProtocol- = lens _plkrckdUploadProtocol- (\ s a -> s{_plkrckdUploadProtocol = a})---- | OAuth access token.-plkrckdAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt (Maybe Text)-plkrckdAccessToken- = lens _plkrckdAccessToken- (\ s a -> s{_plkrckdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckdUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt (Maybe Text)-plkrckdUploadType- = lens _plkrckdUploadType- (\ s a -> s{_plkrckdUploadType = a})---- | Multipart request metadata.-plkrckdPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt DecryptRequest-plkrckdPayload- = lens _plkrckdPayload- (\ s a -> s{_plkrckdPayload = a})---- | Required. The resource name of the CryptoKey to use for decryption. The--- server will choose the appropriate version.-plkrckdName :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt Text-plkrckdName- = lens _plkrckdName (\ s a -> s{_plkrckdName = a})---- | JSONP-plkrckdCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysDecrypt (Maybe Text)-plkrckdCallback- = lens _plkrckdCallback- (\ s a -> s{_plkrckdCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysDecrypt- where- type Rs ProjectsLocationsKeyRingsCryptoKeysDecrypt =- DecryptResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysDecrypt- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysDecrypt'{..}- = go _plkrckdName _plkrckdXgafv- _plkrckdUploadProtocol- _plkrckdAccessToken- _plkrckdUploadType- _plkrckdCallback- (Just AltJSON)- _plkrckdPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysDecryptResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Encrypt.hs
@@ -1,181 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Encrypts data, so that it can only be recovered by a call to Decrypt.--- The CryptoKey.purpose must be ENCRYPT_DECRYPT.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.encrypt@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysEncryptResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysEncrypt- , ProjectsLocationsKeyRingsCryptoKeysEncrypt-- -- * Request Lenses- , plkrckeXgafv- , plkrckeUploadProtocol- , plkrckeAccessToken- , plkrckeUploadType- , plkrckePayload- , plkrckeName- , plkrckeCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.encrypt@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysEncrypt' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysEncryptResource- =- "v1" :>- CaptureMode "name" "encrypt" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] EncryptRequest :>- Post '[JSON] EncryptResponse---- | Encrypts data, so that it can only be recovered by a call to Decrypt.--- The CryptoKey.purpose must be ENCRYPT_DECRYPT.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysEncrypt' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysEncrypt =- ProjectsLocationsKeyRingsCryptoKeysEncrypt'- { _plkrckeXgafv :: !(Maybe Xgafv)- , _plkrckeUploadProtocol :: !(Maybe Text)- , _plkrckeAccessToken :: !(Maybe Text)- , _plkrckeUploadType :: !(Maybe Text)- , _plkrckePayload :: !EncryptRequest- , _plkrckeName :: !Text- , _plkrckeCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysEncrypt' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckeXgafv'------ * 'plkrckeUploadProtocol'------ * 'plkrckeAccessToken'------ * 'plkrckeUploadType'------ * 'plkrckePayload'------ * 'plkrckeName'------ * 'plkrckeCallback'-projectsLocationsKeyRingsCryptoKeysEncrypt- :: EncryptRequest -- ^ 'plkrckePayload'- -> Text -- ^ 'plkrckeName'- -> ProjectsLocationsKeyRingsCryptoKeysEncrypt-projectsLocationsKeyRingsCryptoKeysEncrypt pPlkrckePayload_ pPlkrckeName_ =- ProjectsLocationsKeyRingsCryptoKeysEncrypt'- { _plkrckeXgafv = Nothing- , _plkrckeUploadProtocol = Nothing- , _plkrckeAccessToken = Nothing- , _plkrckeUploadType = Nothing- , _plkrckePayload = pPlkrckePayload_- , _plkrckeName = pPlkrckeName_- , _plkrckeCallback = Nothing- }----- | V1 error format.-plkrckeXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt (Maybe Xgafv)-plkrckeXgafv- = lens _plkrckeXgafv (\ s a -> s{_plkrckeXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckeUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt (Maybe Text)-plkrckeUploadProtocol- = lens _plkrckeUploadProtocol- (\ s a -> s{_plkrckeUploadProtocol = a})---- | OAuth access token.-plkrckeAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt (Maybe Text)-plkrckeAccessToken- = lens _plkrckeAccessToken- (\ s a -> s{_plkrckeAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckeUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt (Maybe Text)-plkrckeUploadType- = lens _plkrckeUploadType- (\ s a -> s{_plkrckeUploadType = a})---- | Multipart request metadata.-plkrckePayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt EncryptRequest-plkrckePayload- = lens _plkrckePayload- (\ s a -> s{_plkrckePayload = a})---- | Required. The resource name of the CryptoKey or CryptoKeyVersion to use--- for encryption. If a CryptoKey is specified, the server will use its--- primary version.-plkrckeName :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt Text-plkrckeName- = lens _plkrckeName (\ s a -> s{_plkrckeName = a})---- | JSONP-plkrckeCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysEncrypt (Maybe Text)-plkrckeCallback- = lens _plkrckeCallback- (\ s a -> s{_plkrckeCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysEncrypt- where- type Rs ProjectsLocationsKeyRingsCryptoKeysEncrypt =- EncryptResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysEncrypt- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysEncrypt'{..}- = go _plkrckeName _plkrckeXgafv- _plkrckeUploadProtocol- _plkrckeAccessToken- _plkrckeUploadType- _plkrckeCallback- (Just AltJSON)- _plkrckePayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysEncryptResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Get.hs
@@ -1,160 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns metadata for a given CryptoKey, as well as its primary--- CryptoKeyVersion.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.get@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysGetResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysGet- , ProjectsLocationsKeyRingsCryptoKeysGet-- -- * Request Lenses- , plkrckgXgafv- , plkrckgUploadProtocol- , plkrckgAccessToken- , plkrckgUploadType- , plkrckgName- , plkrckgCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.get@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysGet' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] CryptoKey---- | Returns metadata for a given CryptoKey, as well as its primary--- CryptoKeyVersion.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysGet' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysGet =- ProjectsLocationsKeyRingsCryptoKeysGet'- { _plkrckgXgafv :: !(Maybe Xgafv)- , _plkrckgUploadProtocol :: !(Maybe Text)- , _plkrckgAccessToken :: !(Maybe Text)- , _plkrckgUploadType :: !(Maybe Text)- , _plkrckgName :: !Text- , _plkrckgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckgXgafv'------ * 'plkrckgUploadProtocol'------ * 'plkrckgAccessToken'------ * 'plkrckgUploadType'------ * 'plkrckgName'------ * 'plkrckgCallback'-projectsLocationsKeyRingsCryptoKeysGet- :: Text -- ^ 'plkrckgName'- -> ProjectsLocationsKeyRingsCryptoKeysGet-projectsLocationsKeyRingsCryptoKeysGet pPlkrckgName_ =- ProjectsLocationsKeyRingsCryptoKeysGet'- { _plkrckgXgafv = Nothing- , _plkrckgUploadProtocol = Nothing- , _plkrckgAccessToken = Nothing- , _plkrckgUploadType = Nothing- , _plkrckgName = pPlkrckgName_- , _plkrckgCallback = Nothing- }----- | V1 error format.-plkrckgXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet (Maybe Xgafv)-plkrckgXgafv- = lens _plkrckgXgafv (\ s a -> s{_plkrckgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckgUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet (Maybe Text)-plkrckgUploadProtocol- = lens _plkrckgUploadProtocol- (\ s a -> s{_plkrckgUploadProtocol = a})---- | OAuth access token.-plkrckgAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet (Maybe Text)-plkrckgAccessToken- = lens _plkrckgAccessToken- (\ s a -> s{_plkrckgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckgUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet (Maybe Text)-plkrckgUploadType- = lens _plkrckgUploadType- (\ s a -> s{_plkrckgUploadType = a})---- | The name of the CryptoKey to get.-plkrckgName :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet Text-plkrckgName- = lens _plkrckgName (\ s a -> s{_plkrckgName = a})---- | JSONP-plkrckgCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysGet (Maybe Text)-plkrckgCallback- = lens _plkrckgCallback- (\ s a -> s{_plkrckgCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysGet- where- type Rs ProjectsLocationsKeyRingsCryptoKeysGet =- CryptoKey- type Scopes ProjectsLocationsKeyRingsCryptoKeysGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysGet'{..}- = go _plkrckgName _plkrckgXgafv- _plkrckgUploadProtocol- _plkrckgAccessToken- _plkrckgUploadType- _plkrckgCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsKeyRingsCryptoKeysGetResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/GetIAMPolicy.hs
@@ -1,168 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysGetIAMPolicy- , ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy-- -- * Request Lenses- , plkrckgipXgafv- , plkrckgipUploadProtocol- , plkrckgipAccessToken- , plkrckgipUploadType- , plkrckgipResource- , plkrckgipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.getIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicyResource- =- "v1" :>- CaptureMode "resource" "getIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Policy---- | Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysGetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy =- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy'- { _plkrckgipXgafv :: !(Maybe Xgafv)- , _plkrckgipUploadProtocol :: !(Maybe Text)- , _plkrckgipAccessToken :: !(Maybe Text)- , _plkrckgipUploadType :: !(Maybe Text)- , _plkrckgipResource :: !Text- , _plkrckgipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckgipXgafv'------ * 'plkrckgipUploadProtocol'------ * 'plkrckgipAccessToken'------ * 'plkrckgipUploadType'------ * 'plkrckgipResource'------ * 'plkrckgipCallback'-projectsLocationsKeyRingsCryptoKeysGetIAMPolicy- :: Text -- ^ 'plkrckgipResource'- -> ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy-projectsLocationsKeyRingsCryptoKeysGetIAMPolicy pPlkrckgipResource_ =- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy'- { _plkrckgipXgafv = Nothing- , _plkrckgipUploadProtocol = Nothing- , _plkrckgipAccessToken = Nothing- , _plkrckgipUploadType = Nothing- , _plkrckgipResource = pPlkrckgipResource_- , _plkrckgipCallback = Nothing- }----- | V1 error format.-plkrckgipXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy (Maybe Xgafv)-plkrckgipXgafv- = lens _plkrckgipXgafv- (\ s a -> s{_plkrckgipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckgipUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy (Maybe Text)-plkrckgipUploadProtocol- = lens _plkrckgipUploadProtocol- (\ s a -> s{_plkrckgipUploadProtocol = a})---- | OAuth access token.-plkrckgipAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy (Maybe Text)-plkrckgipAccessToken- = lens _plkrckgipAccessToken- (\ s a -> s{_plkrckgipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckgipUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy (Maybe Text)-plkrckgipUploadType- = lens _plkrckgipUploadType- (\ s a -> s{_plkrckgipUploadType = a})---- | REQUIRED: The resource for which the policy is being requested. See the--- operation documentation for the appropriate value for this field.-plkrckgipResource :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy Text-plkrckgipResource- = lens _plkrckgipResource- (\ s a -> s{_plkrckgipResource = a})---- | JSONP-plkrckgipCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy (Maybe Text)-plkrckgipCallback- = lens _plkrckgipCallback- (\ s a -> s{_plkrckgipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy- = Policy- type Scopes- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicy'{..}- = go _plkrckgipResource _plkrckgipXgafv- _plkrckgipUploadProtocol- _plkrckgipAccessToken- _plkrckgipUploadType- _plkrckgipCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysGetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/List.hs
@@ -1,207 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists CryptoKeys.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.list@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysListResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysList- , ProjectsLocationsKeyRingsCryptoKeysList-- -- * Request Lenses- , plkrcklParent- , plkrcklXgafv- , plkrcklVersionView- , plkrcklUploadProtocol- , plkrcklAccessToken- , plkrcklUploadType- , plkrcklPageToken- , plkrcklPageSize- , plkrcklCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.list@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysList' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysListResource- =- "v1" :>- Capture "parent" Text :>- "cryptoKeys" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "versionView" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListCryptoKeysResponse---- | Lists CryptoKeys.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysList' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysList =- ProjectsLocationsKeyRingsCryptoKeysList'- { _plkrcklParent :: !Text- , _plkrcklXgafv :: !(Maybe Xgafv)- , _plkrcklVersionView :: !(Maybe Text)- , _plkrcklUploadProtocol :: !(Maybe Text)- , _plkrcklAccessToken :: !(Maybe Text)- , _plkrcklUploadType :: !(Maybe Text)- , _plkrcklPageToken :: !(Maybe Text)- , _plkrcklPageSize :: !(Maybe (Textual Int32))- , _plkrcklCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrcklParent'------ * 'plkrcklXgafv'------ * 'plkrcklVersionView'------ * 'plkrcklUploadProtocol'------ * 'plkrcklAccessToken'------ * 'plkrcklUploadType'------ * 'plkrcklPageToken'------ * 'plkrcklPageSize'------ * 'plkrcklCallback'-projectsLocationsKeyRingsCryptoKeysList- :: Text -- ^ 'plkrcklParent'- -> ProjectsLocationsKeyRingsCryptoKeysList-projectsLocationsKeyRingsCryptoKeysList pPlkrcklParent_ =- ProjectsLocationsKeyRingsCryptoKeysList'- { _plkrcklParent = pPlkrcklParent_- , _plkrcklXgafv = Nothing- , _plkrcklVersionView = Nothing- , _plkrcklUploadProtocol = Nothing- , _plkrcklAccessToken = Nothing- , _plkrcklUploadType = Nothing- , _plkrcklPageToken = Nothing- , _plkrcklPageSize = Nothing- , _plkrcklCallback = Nothing- }----- | Required. The resource name of the KeyRing to list, in the format--- \`projects\/*\/locations\/*\/keyRings\/*\`.-plkrcklParent :: Lens' ProjectsLocationsKeyRingsCryptoKeysList Text-plkrcklParent- = lens _plkrcklParent- (\ s a -> s{_plkrcklParent = a})---- | V1 error format.-plkrcklXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Xgafv)-plkrcklXgafv- = lens _plkrcklXgafv (\ s a -> s{_plkrcklXgafv = a})---- | The fields of the primary version to include in the response.-plkrcklVersionView :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklVersionView- = lens _plkrcklVersionView- (\ s a -> s{_plkrcklVersionView = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrcklUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklUploadProtocol- = lens _plkrcklUploadProtocol- (\ s a -> s{_plkrcklUploadProtocol = a})---- | OAuth access token.-plkrcklAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklAccessToken- = lens _plkrcklAccessToken- (\ s a -> s{_plkrcklAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrcklUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklUploadType- = lens _plkrcklUploadType- (\ s a -> s{_plkrcklUploadType = a})---- | Optional pagination token, returned earlier via--- ListCryptoKeysResponse.next_page_token.-plkrcklPageToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklPageToken- = lens _plkrcklPageToken- (\ s a -> s{_plkrcklPageToken = a})---- | Optional limit on the number of CryptoKeys to include in the response.--- Further CryptoKeys can subsequently be obtained by including the--- ListCryptoKeysResponse.next_page_token in a subsequent request. If--- unspecified, the server will pick an appropriate default.-plkrcklPageSize :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Int32)-plkrcklPageSize- = lens _plkrcklPageSize- (\ s a -> s{_plkrcklPageSize = a})- . mapping _Coerce---- | JSONP-plkrcklCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysList (Maybe Text)-plkrcklCallback- = lens _plkrcklCallback- (\ s a -> s{_plkrcklCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysList- where- type Rs ProjectsLocationsKeyRingsCryptoKeysList =- ListCryptoKeysResponse- type Scopes ProjectsLocationsKeyRingsCryptoKeysList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysList'{..}- = go _plkrcklParent _plkrcklXgafv _plkrcklVersionView- _plkrcklUploadProtocol- _plkrcklAccessToken- _plkrcklUploadType- _plkrcklPageToken- _plkrcklPageSize- _plkrcklCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysListResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/Patch.hs
@@ -1,189 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Update a CryptoKey.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.patch@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysPatchResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysPatch- , ProjectsLocationsKeyRingsCryptoKeysPatch-- -- * Request Lenses- , plkrckpXgafv- , plkrckpUploadProtocol- , plkrckpUpdateMask- , plkrckpAccessToken- , plkrckpUploadType- , plkrckpPayload- , plkrckpName- , plkrckpCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.patch@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysPatch' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysPatchResource- =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CryptoKey :> Patch '[JSON] CryptoKey---- | Update a CryptoKey.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysPatch' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysPatch =- ProjectsLocationsKeyRingsCryptoKeysPatch'- { _plkrckpXgafv :: !(Maybe Xgafv)- , _plkrckpUploadProtocol :: !(Maybe Text)- , _plkrckpUpdateMask :: !(Maybe GFieldMask)- , _plkrckpAccessToken :: !(Maybe Text)- , _plkrckpUploadType :: !(Maybe Text)- , _plkrckpPayload :: !CryptoKey- , _plkrckpName :: !Text- , _plkrckpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckpXgafv'------ * 'plkrckpUploadProtocol'------ * 'plkrckpUpdateMask'------ * 'plkrckpAccessToken'------ * 'plkrckpUploadType'------ * 'plkrckpPayload'------ * 'plkrckpName'------ * 'plkrckpCallback'-projectsLocationsKeyRingsCryptoKeysPatch- :: CryptoKey -- ^ 'plkrckpPayload'- -> Text -- ^ 'plkrckpName'- -> ProjectsLocationsKeyRingsCryptoKeysPatch-projectsLocationsKeyRingsCryptoKeysPatch pPlkrckpPayload_ pPlkrckpName_ =- ProjectsLocationsKeyRingsCryptoKeysPatch'- { _plkrckpXgafv = Nothing- , _plkrckpUploadProtocol = Nothing- , _plkrckpUpdateMask = Nothing- , _plkrckpAccessToken = Nothing- , _plkrckpUploadType = Nothing- , _plkrckpPayload = pPlkrckpPayload_- , _plkrckpName = pPlkrckpName_- , _plkrckpCallback = Nothing- }----- | V1 error format.-plkrckpXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe Xgafv)-plkrckpXgafv- = lens _plkrckpXgafv (\ s a -> s{_plkrckpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckpUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe Text)-plkrckpUploadProtocol- = lens _plkrckpUploadProtocol- (\ s a -> s{_plkrckpUploadProtocol = a})---- | Required list of fields to be updated in this request.-plkrckpUpdateMask :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe GFieldMask)-plkrckpUpdateMask- = lens _plkrckpUpdateMask- (\ s a -> s{_plkrckpUpdateMask = a})---- | OAuth access token.-plkrckpAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe Text)-plkrckpAccessToken- = lens _plkrckpAccessToken- (\ s a -> s{_plkrckpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckpUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe Text)-plkrckpUploadType- = lens _plkrckpUploadType- (\ s a -> s{_plkrckpUploadType = a})---- | Multipart request metadata.-plkrckpPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch CryptoKey-plkrckpPayload- = lens _plkrckpPayload- (\ s a -> s{_plkrckpPayload = a})---- | Output only. The resource name for this CryptoKey in the format--- \`projects\/*\/locations\/*\/keyRings\/*\/cryptoKeys\/*\`.-plkrckpName :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch Text-plkrckpName- = lens _plkrckpName (\ s a -> s{_plkrckpName = a})---- | JSONP-plkrckpCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysPatch (Maybe Text)-plkrckpCallback- = lens _plkrckpCallback- (\ s a -> s{_plkrckpCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysPatch- where- type Rs ProjectsLocationsKeyRingsCryptoKeysPatch =- CryptoKey- type Scopes ProjectsLocationsKeyRingsCryptoKeysPatch- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysPatch'{..}- = go _plkrckpName _plkrckpXgafv- _plkrckpUploadProtocol- _plkrckpUpdateMask- _plkrckpAccessToken- _plkrckpUploadType- _plkrckpCallback- (Just AltJSON)- _plkrckpPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysPatchResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/SetIAMPolicy.hs
@@ -1,183 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysSetIAMPolicy- , ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy-- -- * Request Lenses- , plkrcksipXgafv- , plkrcksipUploadProtocol- , plkrcksipAccessToken- , plkrcksipUploadType- , plkrcksipPayload- , plkrcksipResource- , plkrcksipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.setIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicyResource- =- "v1" :>- CaptureMode "resource" "setIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] SetIAMPolicyRequest :>- Post '[JSON] Policy---- | Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysSetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy =- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy'- { _plkrcksipXgafv :: !(Maybe Xgafv)- , _plkrcksipUploadProtocol :: !(Maybe Text)- , _plkrcksipAccessToken :: !(Maybe Text)- , _plkrcksipUploadType :: !(Maybe Text)- , _plkrcksipPayload :: !SetIAMPolicyRequest- , _plkrcksipResource :: !Text- , _plkrcksipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrcksipXgafv'------ * 'plkrcksipUploadProtocol'------ * 'plkrcksipAccessToken'------ * 'plkrcksipUploadType'------ * 'plkrcksipPayload'------ * 'plkrcksipResource'------ * 'plkrcksipCallback'-projectsLocationsKeyRingsCryptoKeysSetIAMPolicy- :: SetIAMPolicyRequest -- ^ 'plkrcksipPayload'- -> Text -- ^ 'plkrcksipResource'- -> ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy-projectsLocationsKeyRingsCryptoKeysSetIAMPolicy pPlkrcksipPayload_ pPlkrcksipResource_ =- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy'- { _plkrcksipXgafv = Nothing- , _plkrcksipUploadProtocol = Nothing- , _plkrcksipAccessToken = Nothing- , _plkrcksipUploadType = Nothing- , _plkrcksipPayload = pPlkrcksipPayload_- , _plkrcksipResource = pPlkrcksipResource_- , _plkrcksipCallback = Nothing- }----- | V1 error format.-plkrcksipXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy (Maybe Xgafv)-plkrcksipXgafv- = lens _plkrcksipXgafv- (\ s a -> s{_plkrcksipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrcksipUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy (Maybe Text)-plkrcksipUploadProtocol- = lens _plkrcksipUploadProtocol- (\ s a -> s{_plkrcksipUploadProtocol = a})---- | OAuth access token.-plkrcksipAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy (Maybe Text)-plkrcksipAccessToken- = lens _plkrcksipAccessToken- (\ s a -> s{_plkrcksipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrcksipUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy (Maybe Text)-plkrcksipUploadType- = lens _plkrcksipUploadType- (\ s a -> s{_plkrcksipUploadType = a})---- | Multipart request metadata.-plkrcksipPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy SetIAMPolicyRequest-plkrcksipPayload- = lens _plkrcksipPayload- (\ s a -> s{_plkrcksipPayload = a})---- | REQUIRED: The resource for which the policy is being specified. See the--- operation documentation for the appropriate value for this field.-plkrcksipResource :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy Text-plkrcksipResource- = lens _plkrcksipResource- (\ s a -> s{_plkrcksipResource = a})---- | JSONP-plkrcksipCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy (Maybe Text)-plkrcksipCallback- = lens _plkrcksipCallback- (\ s a -> s{_plkrcksipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy- = Policy- type Scopes- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicy'{..}- = go _plkrcksipResource _plkrcksipXgafv- _plkrcksipUploadProtocol- _plkrcksipAccessToken- _plkrcksipUploadType- _plkrcksipCallback- (Just AltJSON)- _plkrcksipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysSetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/TestIAMPermissions.hs
@@ -1,192 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIAMPermissions--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIAMPermissions- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissionsResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysTestIAMPermissions- , ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions-- -- * Request Lenses- , plkrcktipXgafv- , plkrcktipUploadProtocol- , plkrcktipAccessToken- , plkrcktipUploadType- , plkrcktipPayload- , plkrcktipResource- , plkrcktipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.testIamPermissions@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissionsResource- =- "v1" :>- CaptureMode "resource" "testIamPermissions" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] TestIAMPermissionsRequest :>- Post '[JSON] TestIAMPermissionsResponse---- | Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysTestIAMPermissions' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions =- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions'- { _plkrcktipXgafv :: !(Maybe Xgafv)- , _plkrcktipUploadProtocol :: !(Maybe Text)- , _plkrcktipAccessToken :: !(Maybe Text)- , _plkrcktipUploadType :: !(Maybe Text)- , _plkrcktipPayload :: !TestIAMPermissionsRequest- , _plkrcktipResource :: !Text- , _plkrcktipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrcktipXgafv'------ * 'plkrcktipUploadProtocol'------ * 'plkrcktipAccessToken'------ * 'plkrcktipUploadType'------ * 'plkrcktipPayload'------ * 'plkrcktipResource'------ * 'plkrcktipCallback'-projectsLocationsKeyRingsCryptoKeysTestIAMPermissions- :: TestIAMPermissionsRequest -- ^ 'plkrcktipPayload'- -> Text -- ^ 'plkrcktipResource'- -> ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions-projectsLocationsKeyRingsCryptoKeysTestIAMPermissions pPlkrcktipPayload_ pPlkrcktipResource_ =- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions'- { _plkrcktipXgafv = Nothing- , _plkrcktipUploadProtocol = Nothing- , _plkrcktipAccessToken = Nothing- , _plkrcktipUploadType = Nothing- , _plkrcktipPayload = pPlkrcktipPayload_- , _plkrcktipResource = pPlkrcktipResource_- , _plkrcktipCallback = Nothing- }----- | V1 error format.-plkrcktipXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions (Maybe Xgafv)-plkrcktipXgafv- = lens _plkrcktipXgafv- (\ s a -> s{_plkrcktipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrcktipUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions (Maybe Text)-plkrcktipUploadProtocol- = lens _plkrcktipUploadProtocol- (\ s a -> s{_plkrcktipUploadProtocol = a})---- | OAuth access token.-plkrcktipAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions (Maybe Text)-plkrcktipAccessToken- = lens _plkrcktipAccessToken- (\ s a -> s{_plkrcktipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrcktipUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions (Maybe Text)-plkrcktipUploadType- = lens _plkrcktipUploadType- (\ s a -> s{_plkrcktipUploadType = a})---- | Multipart request metadata.-plkrcktipPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions TestIAMPermissionsRequest-plkrcktipPayload- = lens _plkrcktipPayload- (\ s a -> s{_plkrcktipPayload = a})---- | REQUIRED: The resource for which the policy detail is being requested.--- See the operation documentation for the appropriate value for this--- field.-plkrcktipResource :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions Text-plkrcktipResource- = lens _plkrcktipResource- (\ s a -> s{_plkrcktipResource = a})---- | JSONP-plkrcktipCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions (Maybe Text)-plkrcktipCallback- = lens _plkrcktipCallback- (\ s a -> s{_plkrcktipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions- = TestIAMPermissionsResponse- type Scopes- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissions'{..}- = go _plkrcktipResource _plkrcktipXgafv- _plkrcktipUploadProtocol- _plkrcktipAccessToken- _plkrcktipUploadType- _plkrcktipCallback- (Just AltJSON)- _plkrcktipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysTestIAMPermissionsResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/CryptoKeys/UpdatePrimaryVersion.hs
@@ -1,182 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Update the version of a CryptoKey that will be used in Encrypt. Returns--- an error if called on an asymmetric key.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion- (- -- * REST Resource- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource-- -- * Creating a Request- , projectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion- , ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion-- -- * Request Lenses- , plkrckupvXgafv- , plkrckupvUploadProtocol- , plkrckupvAccessToken- , plkrckupvUploadType- , plkrckupvPayload- , plkrckupvName- , plkrckupvCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.cryptoKeys.updatePrimaryVersion@ method which the--- 'ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' request conforms to.-type ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource- =- "v1" :>- CaptureMode "name" "updatePrimaryVersion" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] UpdateCryptoKeyPrimaryVersionRequest- :> Post '[JSON] CryptoKey---- | Update the version of a CryptoKey that will be used in Encrypt. Returns--- an error if called on an asymmetric key.------ /See:/ 'projectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' smart constructor.-data ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion =- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion'- { _plkrckupvXgafv :: !(Maybe Xgafv)- , _plkrckupvUploadProtocol :: !(Maybe Text)- , _plkrckupvAccessToken :: !(Maybe Text)- , _plkrckupvUploadType :: !(Maybe Text)- , _plkrckupvPayload :: !UpdateCryptoKeyPrimaryVersionRequest- , _plkrckupvName :: !Text- , _plkrckupvCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrckupvXgafv'------ * 'plkrckupvUploadProtocol'------ * 'plkrckupvAccessToken'------ * 'plkrckupvUploadType'------ * 'plkrckupvPayload'------ * 'plkrckupvName'------ * 'plkrckupvCallback'-projectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion- :: UpdateCryptoKeyPrimaryVersionRequest -- ^ 'plkrckupvPayload'- -> Text -- ^ 'plkrckupvName'- -> ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion-projectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion pPlkrckupvPayload_ pPlkrckupvName_ =- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion'- { _plkrckupvXgafv = Nothing- , _plkrckupvUploadProtocol = Nothing- , _plkrckupvAccessToken = Nothing- , _plkrckupvUploadType = Nothing- , _plkrckupvPayload = pPlkrckupvPayload_- , _plkrckupvName = pPlkrckupvName_- , _plkrckupvCallback = Nothing- }----- | V1 error format.-plkrckupvXgafv :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (Maybe Xgafv)-plkrckupvXgafv- = lens _plkrckupvXgafv- (\ s a -> s{_plkrckupvXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrckupvUploadProtocol :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (Maybe Text)-plkrckupvUploadProtocol- = lens _plkrckupvUploadProtocol- (\ s a -> s{_plkrckupvUploadProtocol = a})---- | OAuth access token.-plkrckupvAccessToken :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (Maybe Text)-plkrckupvAccessToken- = lens _plkrckupvAccessToken- (\ s a -> s{_plkrckupvAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrckupvUploadType :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (Maybe Text)-plkrckupvUploadType- = lens _plkrckupvUploadType- (\ s a -> s{_plkrckupvUploadType = a})---- | Multipart request metadata.-plkrckupvPayload :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion UpdateCryptoKeyPrimaryVersionRequest-plkrckupvPayload- = lens _plkrckupvPayload- (\ s a -> s{_plkrckupvPayload = a})---- | The resource name of the CryptoKey to update.-plkrckupvName :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion Text-plkrckupvName- = lens _plkrckupvName- (\ s a -> s{_plkrckupvName = a})---- | JSONP-plkrckupvCallback :: Lens' ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion (Maybe Text)-plkrckupvCallback- = lens _plkrckupvCallback- (\ s a -> s{_plkrckupvCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion- where- type Rs- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion- = CryptoKey- type Scopes- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersion'{..}- = go _plkrckupvName _plkrckupvXgafv- _plkrckupvUploadProtocol- _plkrckupvAccessToken- _plkrckupvUploadType- _plkrckupvCallback- (Just AltJSON)- _plkrckupvPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsCryptoKeysUpdatePrimaryVersionResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/Get.hs
@@ -1,153 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns metadata for a given KeyRing.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.get@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Get- (- -- * REST Resource- ProjectsLocationsKeyRingsGetResource-- -- * Creating a Request- , projectsLocationsKeyRingsGet- , ProjectsLocationsKeyRingsGet-- -- * Request Lenses- , plkrgXgafv- , plkrgUploadProtocol- , plkrgAccessToken- , plkrgUploadType- , plkrgName- , plkrgCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.get@ method which the--- 'ProjectsLocationsKeyRingsGet' request conforms to.-type ProjectsLocationsKeyRingsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] KeyRing---- | Returns metadata for a given KeyRing.------ /See:/ 'projectsLocationsKeyRingsGet' smart constructor.-data ProjectsLocationsKeyRingsGet =- ProjectsLocationsKeyRingsGet'- { _plkrgXgafv :: !(Maybe Xgafv)- , _plkrgUploadProtocol :: !(Maybe Text)- , _plkrgAccessToken :: !(Maybe Text)- , _plkrgUploadType :: !(Maybe Text)- , _plkrgName :: !Text- , _plkrgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrgXgafv'------ * 'plkrgUploadProtocol'------ * 'plkrgAccessToken'------ * 'plkrgUploadType'------ * 'plkrgName'------ * 'plkrgCallback'-projectsLocationsKeyRingsGet- :: Text -- ^ 'plkrgName'- -> ProjectsLocationsKeyRingsGet-projectsLocationsKeyRingsGet pPlkrgName_ =- ProjectsLocationsKeyRingsGet'- { _plkrgXgafv = Nothing- , _plkrgUploadProtocol = Nothing- , _plkrgAccessToken = Nothing- , _plkrgUploadType = Nothing- , _plkrgName = pPlkrgName_- , _plkrgCallback = Nothing- }----- | V1 error format.-plkrgXgafv :: Lens' ProjectsLocationsKeyRingsGet (Maybe Xgafv)-plkrgXgafv- = lens _plkrgXgafv (\ s a -> s{_plkrgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrgUploadProtocol :: Lens' ProjectsLocationsKeyRingsGet (Maybe Text)-plkrgUploadProtocol- = lens _plkrgUploadProtocol- (\ s a -> s{_plkrgUploadProtocol = a})---- | OAuth access token.-plkrgAccessToken :: Lens' ProjectsLocationsKeyRingsGet (Maybe Text)-plkrgAccessToken- = lens _plkrgAccessToken- (\ s a -> s{_plkrgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrgUploadType :: Lens' ProjectsLocationsKeyRingsGet (Maybe Text)-plkrgUploadType- = lens _plkrgUploadType- (\ s a -> s{_plkrgUploadType = a})---- | The name of the KeyRing to get.-plkrgName :: Lens' ProjectsLocationsKeyRingsGet Text-plkrgName- = lens _plkrgName (\ s a -> s{_plkrgName = a})---- | JSONP-plkrgCallback :: Lens' ProjectsLocationsKeyRingsGet (Maybe Text)-plkrgCallback- = lens _plkrgCallback- (\ s a -> s{_plkrgCallback = a})--instance GoogleRequest ProjectsLocationsKeyRingsGet- where- type Rs ProjectsLocationsKeyRingsGet = KeyRing- type Scopes ProjectsLocationsKeyRingsGet =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient ProjectsLocationsKeyRingsGet'{..}- = go _plkrgName _plkrgXgafv _plkrgUploadProtocol- _plkrgAccessToken- _plkrgUploadType- _plkrgCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsKeyRingsGetResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/GetIAMPolicy.hs
@@ -1,162 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.GetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.getIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.GetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsGetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsGetIAMPolicy- , ProjectsLocationsKeyRingsGetIAMPolicy-- -- * Request Lenses- , plkrgipXgafv- , plkrgipUploadProtocol- , plkrgipAccessToken- , plkrgipUploadType- , plkrgipResource- , plkrgipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.getIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsGetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsGetIAMPolicyResource =- "v1" :>- CaptureMode "resource" "getIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Policy---- | Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ 'projectsLocationsKeyRingsGetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsGetIAMPolicy =- ProjectsLocationsKeyRingsGetIAMPolicy'- { _plkrgipXgafv :: !(Maybe Xgafv)- , _plkrgipUploadProtocol :: !(Maybe Text)- , _plkrgipAccessToken :: !(Maybe Text)- , _plkrgipUploadType :: !(Maybe Text)- , _plkrgipResource :: !Text- , _plkrgipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsGetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrgipXgafv'------ * 'plkrgipUploadProtocol'------ * 'plkrgipAccessToken'------ * 'plkrgipUploadType'------ * 'plkrgipResource'------ * 'plkrgipCallback'-projectsLocationsKeyRingsGetIAMPolicy- :: Text -- ^ 'plkrgipResource'- -> ProjectsLocationsKeyRingsGetIAMPolicy-projectsLocationsKeyRingsGetIAMPolicy pPlkrgipResource_ =- ProjectsLocationsKeyRingsGetIAMPolicy'- { _plkrgipXgafv = Nothing- , _plkrgipUploadProtocol = Nothing- , _plkrgipAccessToken = Nothing- , _plkrgipUploadType = Nothing- , _plkrgipResource = pPlkrgipResource_- , _plkrgipCallback = Nothing- }----- | V1 error format.-plkrgipXgafv :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy (Maybe Xgafv)-plkrgipXgafv- = lens _plkrgipXgafv (\ s a -> s{_plkrgipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrgipUploadProtocol :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy (Maybe Text)-plkrgipUploadProtocol- = lens _plkrgipUploadProtocol- (\ s a -> s{_plkrgipUploadProtocol = a})---- | OAuth access token.-plkrgipAccessToken :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy (Maybe Text)-plkrgipAccessToken- = lens _plkrgipAccessToken- (\ s a -> s{_plkrgipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrgipUploadType :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy (Maybe Text)-plkrgipUploadType- = lens _plkrgipUploadType- (\ s a -> s{_plkrgipUploadType = a})---- | REQUIRED: The resource for which the policy is being requested. See the--- operation documentation for the appropriate value for this field.-plkrgipResource :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy Text-plkrgipResource- = lens _plkrgipResource- (\ s a -> s{_plkrgipResource = a})---- | JSONP-plkrgipCallback :: Lens' ProjectsLocationsKeyRingsGetIAMPolicy (Maybe Text)-plkrgipCallback- = lens _plkrgipCallback- (\ s a -> s{_plkrgipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsGetIAMPolicy- where- type Rs ProjectsLocationsKeyRingsGetIAMPolicy =- Policy- type Scopes ProjectsLocationsKeyRingsGetIAMPolicy =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsGetIAMPolicy'{..}- = go _plkrgipResource _plkrgipXgafv- _plkrgipUploadProtocol- _plkrgipAccessToken- _plkrgipUploadType- _plkrgipCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsKeyRingsGetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/GetIAMPolicy.hs
@@ -1,168 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.getIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsImportJobsGetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsImportJobsGetIAMPolicy- , ProjectsLocationsKeyRingsImportJobsGetIAMPolicy-- -- * Request Lenses- , plkrijgipXgafv- , plkrijgipUploadProtocol- , plkrijgipAccessToken- , plkrijgipUploadType- , plkrijgipResource- , plkrijgipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.getIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsImportJobsGetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsImportJobsGetIAMPolicyResource- =- "v1" :>- CaptureMode "resource" "getIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Policy---- | Gets the access control policy for a resource. Returns an empty policy--- if the resource exists and does not have a policy set.------ /See:/ 'projectsLocationsKeyRingsImportJobsGetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsImportJobsGetIAMPolicy =- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy'- { _plkrijgipXgafv :: !(Maybe Xgafv)- , _plkrijgipUploadProtocol :: !(Maybe Text)- , _plkrijgipAccessToken :: !(Maybe Text)- , _plkrijgipUploadType :: !(Maybe Text)- , _plkrijgipResource :: !Text- , _plkrijgipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsImportJobsGetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrijgipXgafv'------ * 'plkrijgipUploadProtocol'------ * 'plkrijgipAccessToken'------ * 'plkrijgipUploadType'------ * 'plkrijgipResource'------ * 'plkrijgipCallback'-projectsLocationsKeyRingsImportJobsGetIAMPolicy- :: Text -- ^ 'plkrijgipResource'- -> ProjectsLocationsKeyRingsImportJobsGetIAMPolicy-projectsLocationsKeyRingsImportJobsGetIAMPolicy pPlkrijgipResource_ =- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy'- { _plkrijgipXgafv = Nothing- , _plkrijgipUploadProtocol = Nothing- , _plkrijgipAccessToken = Nothing- , _plkrijgipUploadType = Nothing- , _plkrijgipResource = pPlkrijgipResource_- , _plkrijgipCallback = Nothing- }----- | V1 error format.-plkrijgipXgafv :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy (Maybe Xgafv)-plkrijgipXgafv- = lens _plkrijgipXgafv- (\ s a -> s{_plkrijgipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrijgipUploadProtocol :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy (Maybe Text)-plkrijgipUploadProtocol- = lens _plkrijgipUploadProtocol- (\ s a -> s{_plkrijgipUploadProtocol = a})---- | OAuth access token.-plkrijgipAccessToken :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy (Maybe Text)-plkrijgipAccessToken- = lens _plkrijgipAccessToken- (\ s a -> s{_plkrijgipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrijgipUploadType :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy (Maybe Text)-plkrijgipUploadType- = lens _plkrijgipUploadType- (\ s a -> s{_plkrijgipUploadType = a})---- | REQUIRED: The resource for which the policy is being requested. See the--- operation documentation for the appropriate value for this field.-plkrijgipResource :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy Text-plkrijgipResource- = lens _plkrijgipResource- (\ s a -> s{_plkrijgipResource = a})---- | JSONP-plkrijgipCallback :: Lens' ProjectsLocationsKeyRingsImportJobsGetIAMPolicy (Maybe Text)-plkrijgipCallback- = lens _plkrijgipCallback- (\ s a -> s{_plkrijgipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy- where- type Rs- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy- = Policy- type Scopes- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsImportJobsGetIAMPolicy'{..}- = go _plkrijgipResource _plkrijgipXgafv- _plkrijgipUploadProtocol- _plkrijgipAccessToken- _plkrijgipUploadType- _plkrijgipCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsImportJobsGetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/SetIAMPolicy.hs
@@ -1,183 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.setIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsImportJobsSetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsImportJobsSetIAMPolicy- , ProjectsLocationsKeyRingsImportJobsSetIAMPolicy-- -- * Request Lenses- , plkrijsipXgafv- , plkrijsipUploadProtocol- , plkrijsipAccessToken- , plkrijsipUploadType- , plkrijsipPayload- , plkrijsipResource- , plkrijsipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.setIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsImportJobsSetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsImportJobsSetIAMPolicyResource- =- "v1" :>- CaptureMode "resource" "setIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] SetIAMPolicyRequest :>- Post '[JSON] Policy---- | Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ 'projectsLocationsKeyRingsImportJobsSetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsImportJobsSetIAMPolicy =- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy'- { _plkrijsipXgafv :: !(Maybe Xgafv)- , _plkrijsipUploadProtocol :: !(Maybe Text)- , _plkrijsipAccessToken :: !(Maybe Text)- , _plkrijsipUploadType :: !(Maybe Text)- , _plkrijsipPayload :: !SetIAMPolicyRequest- , _plkrijsipResource :: !Text- , _plkrijsipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsImportJobsSetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrijsipXgafv'------ * 'plkrijsipUploadProtocol'------ * 'plkrijsipAccessToken'------ * 'plkrijsipUploadType'------ * 'plkrijsipPayload'------ * 'plkrijsipResource'------ * 'plkrijsipCallback'-projectsLocationsKeyRingsImportJobsSetIAMPolicy- :: SetIAMPolicyRequest -- ^ 'plkrijsipPayload'- -> Text -- ^ 'plkrijsipResource'- -> ProjectsLocationsKeyRingsImportJobsSetIAMPolicy-projectsLocationsKeyRingsImportJobsSetIAMPolicy pPlkrijsipPayload_ pPlkrijsipResource_ =- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy'- { _plkrijsipXgafv = Nothing- , _plkrijsipUploadProtocol = Nothing- , _plkrijsipAccessToken = Nothing- , _plkrijsipUploadType = Nothing- , _plkrijsipPayload = pPlkrijsipPayload_- , _plkrijsipResource = pPlkrijsipResource_- , _plkrijsipCallback = Nothing- }----- | V1 error format.-plkrijsipXgafv :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy (Maybe Xgafv)-plkrijsipXgafv- = lens _plkrijsipXgafv- (\ s a -> s{_plkrijsipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrijsipUploadProtocol :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy (Maybe Text)-plkrijsipUploadProtocol- = lens _plkrijsipUploadProtocol- (\ s a -> s{_plkrijsipUploadProtocol = a})---- | OAuth access token.-plkrijsipAccessToken :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy (Maybe Text)-plkrijsipAccessToken- = lens _plkrijsipAccessToken- (\ s a -> s{_plkrijsipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrijsipUploadType :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy (Maybe Text)-plkrijsipUploadType- = lens _plkrijsipUploadType- (\ s a -> s{_plkrijsipUploadType = a})---- | Multipart request metadata.-plkrijsipPayload :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy SetIAMPolicyRequest-plkrijsipPayload- = lens _plkrijsipPayload- (\ s a -> s{_plkrijsipPayload = a})---- | REQUIRED: The resource for which the policy is being specified. See the--- operation documentation for the appropriate value for this field.-plkrijsipResource :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy Text-plkrijsipResource- = lens _plkrijsipResource- (\ s a -> s{_plkrijsipResource = a})---- | JSONP-plkrijsipCallback :: Lens' ProjectsLocationsKeyRingsImportJobsSetIAMPolicy (Maybe Text)-plkrijsipCallback- = lens _plkrijsipCallback- (\ s a -> s{_plkrijsipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy- where- type Rs- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy- = Policy- type Scopes- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsImportJobsSetIAMPolicy'{..}- = go _plkrijsipResource _plkrijsipXgafv- _plkrijsipUploadProtocol- _plkrijsipAccessToken- _plkrijsipUploadType- _plkrijsipCallback- (Just AltJSON)- _plkrijsipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsImportJobsSetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/ImportJobs/TestIAMPermissions.hs
@@ -1,192 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIAMPermissions--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.importJobs.testIamPermissions@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIAMPermissions- (- -- * REST Resource- ProjectsLocationsKeyRingsImportJobsTestIAMPermissionsResource-- -- * Creating a Request- , projectsLocationsKeyRingsImportJobsTestIAMPermissions- , ProjectsLocationsKeyRingsImportJobsTestIAMPermissions-- -- * Request Lenses- , plkrijtipXgafv- , plkrijtipUploadProtocol- , plkrijtipAccessToken- , plkrijtipUploadType- , plkrijtipPayload- , plkrijtipResource- , plkrijtipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.importJobs.testIamPermissions@ method which the--- 'ProjectsLocationsKeyRingsImportJobsTestIAMPermissions' request conforms to.-type ProjectsLocationsKeyRingsImportJobsTestIAMPermissionsResource- =- "v1" :>- CaptureMode "resource" "testIamPermissions" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] TestIAMPermissionsRequest :>- Post '[JSON] TestIAMPermissionsResponse---- | Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ 'projectsLocationsKeyRingsImportJobsTestIAMPermissions' smart constructor.-data ProjectsLocationsKeyRingsImportJobsTestIAMPermissions =- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions'- { _plkrijtipXgafv :: !(Maybe Xgafv)- , _plkrijtipUploadProtocol :: !(Maybe Text)- , _plkrijtipAccessToken :: !(Maybe Text)- , _plkrijtipUploadType :: !(Maybe Text)- , _plkrijtipPayload :: !TestIAMPermissionsRequest- , _plkrijtipResource :: !Text- , _plkrijtipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsImportJobsTestIAMPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrijtipXgafv'------ * 'plkrijtipUploadProtocol'------ * 'plkrijtipAccessToken'------ * 'plkrijtipUploadType'------ * 'plkrijtipPayload'------ * 'plkrijtipResource'------ * 'plkrijtipCallback'-projectsLocationsKeyRingsImportJobsTestIAMPermissions- :: TestIAMPermissionsRequest -- ^ 'plkrijtipPayload'- -> Text -- ^ 'plkrijtipResource'- -> ProjectsLocationsKeyRingsImportJobsTestIAMPermissions-projectsLocationsKeyRingsImportJobsTestIAMPermissions pPlkrijtipPayload_ pPlkrijtipResource_ =- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions'- { _plkrijtipXgafv = Nothing- , _plkrijtipUploadProtocol = Nothing- , _plkrijtipAccessToken = Nothing- , _plkrijtipUploadType = Nothing- , _plkrijtipPayload = pPlkrijtipPayload_- , _plkrijtipResource = pPlkrijtipResource_- , _plkrijtipCallback = Nothing- }----- | V1 error format.-plkrijtipXgafv :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions (Maybe Xgafv)-plkrijtipXgafv- = lens _plkrijtipXgafv- (\ s a -> s{_plkrijtipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrijtipUploadProtocol :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions (Maybe Text)-plkrijtipUploadProtocol- = lens _plkrijtipUploadProtocol- (\ s a -> s{_plkrijtipUploadProtocol = a})---- | OAuth access token.-plkrijtipAccessToken :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions (Maybe Text)-plkrijtipAccessToken- = lens _plkrijtipAccessToken- (\ s a -> s{_plkrijtipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrijtipUploadType :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions (Maybe Text)-plkrijtipUploadType- = lens _plkrijtipUploadType- (\ s a -> s{_plkrijtipUploadType = a})---- | Multipart request metadata.-plkrijtipPayload :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions TestIAMPermissionsRequest-plkrijtipPayload- = lens _plkrijtipPayload- (\ s a -> s{_plkrijtipPayload = a})---- | REQUIRED: The resource for which the policy detail is being requested.--- See the operation documentation for the appropriate value for this--- field.-plkrijtipResource :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions Text-plkrijtipResource- = lens _plkrijtipResource- (\ s a -> s{_plkrijtipResource = a})---- | JSONP-plkrijtipCallback :: Lens' ProjectsLocationsKeyRingsImportJobsTestIAMPermissions (Maybe Text)-plkrijtipCallback- = lens _plkrijtipCallback- (\ s a -> s{_plkrijtipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions- where- type Rs- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions- = TestIAMPermissionsResponse- type Scopes- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsImportJobsTestIAMPermissions'{..}- = go _plkrijtipResource _plkrijtipXgafv- _plkrijtipUploadProtocol- _plkrijtipAccessToken- _plkrijtipUploadType- _plkrijtipCallback- (Just AltJSON)- _plkrijtipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsImportJobsTestIAMPermissionsResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/List.hs
@@ -1,189 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists KeyRings.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.list@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.List- (- -- * REST Resource- ProjectsLocationsKeyRingsListResource-- -- * Creating a Request- , projectsLocationsKeyRingsList- , ProjectsLocationsKeyRingsList-- -- * Request Lenses- , plkrlParent- , plkrlXgafv- , plkrlUploadProtocol- , plkrlAccessToken- , plkrlUploadType- , plkrlPageToken- , plkrlPageSize- , plkrlCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.list@ method which the--- 'ProjectsLocationsKeyRingsList' request conforms to.-type ProjectsLocationsKeyRingsListResource =- "v1" :>- Capture "parent" Text :>- "keyRings" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListKeyRingsResponse---- | Lists KeyRings.------ /See:/ 'projectsLocationsKeyRingsList' smart constructor.-data ProjectsLocationsKeyRingsList =- ProjectsLocationsKeyRingsList'- { _plkrlParent :: !Text- , _plkrlXgafv :: !(Maybe Xgafv)- , _plkrlUploadProtocol :: !(Maybe Text)- , _plkrlAccessToken :: !(Maybe Text)- , _plkrlUploadType :: !(Maybe Text)- , _plkrlPageToken :: !(Maybe Text)- , _plkrlPageSize :: !(Maybe (Textual Int32))- , _plkrlCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrlParent'------ * 'plkrlXgafv'------ * 'plkrlUploadProtocol'------ * 'plkrlAccessToken'------ * 'plkrlUploadType'------ * 'plkrlPageToken'------ * 'plkrlPageSize'------ * 'plkrlCallback'-projectsLocationsKeyRingsList- :: Text -- ^ 'plkrlParent'- -> ProjectsLocationsKeyRingsList-projectsLocationsKeyRingsList pPlkrlParent_ =- ProjectsLocationsKeyRingsList'- { _plkrlParent = pPlkrlParent_- , _plkrlXgafv = Nothing- , _plkrlUploadProtocol = Nothing- , _plkrlAccessToken = Nothing- , _plkrlUploadType = Nothing- , _plkrlPageToken = Nothing- , _plkrlPageSize = Nothing- , _plkrlCallback = Nothing- }----- | Required. The resource name of the location associated with the--- KeyRings, in the format \`projects\/*\/locations\/*\`.-plkrlParent :: Lens' ProjectsLocationsKeyRingsList Text-plkrlParent- = lens _plkrlParent (\ s a -> s{_plkrlParent = a})---- | V1 error format.-plkrlXgafv :: Lens' ProjectsLocationsKeyRingsList (Maybe Xgafv)-plkrlXgafv- = lens _plkrlXgafv (\ s a -> s{_plkrlXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrlUploadProtocol :: Lens' ProjectsLocationsKeyRingsList (Maybe Text)-plkrlUploadProtocol- = lens _plkrlUploadProtocol- (\ s a -> s{_plkrlUploadProtocol = a})---- | OAuth access token.-plkrlAccessToken :: Lens' ProjectsLocationsKeyRingsList (Maybe Text)-plkrlAccessToken- = lens _plkrlAccessToken- (\ s a -> s{_plkrlAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrlUploadType :: Lens' ProjectsLocationsKeyRingsList (Maybe Text)-plkrlUploadType- = lens _plkrlUploadType- (\ s a -> s{_plkrlUploadType = a})---- | Optional pagination token, returned earlier via--- ListKeyRingsResponse.next_page_token.-plkrlPageToken :: Lens' ProjectsLocationsKeyRingsList (Maybe Text)-plkrlPageToken- = lens _plkrlPageToken- (\ s a -> s{_plkrlPageToken = a})---- | Optional limit on the number of KeyRings to include in the response.--- Further KeyRings can subsequently be obtained by including the--- ListKeyRingsResponse.next_page_token in a subsequent request. If--- unspecified, the server will pick an appropriate default.-plkrlPageSize :: Lens' ProjectsLocationsKeyRingsList (Maybe Int32)-plkrlPageSize- = lens _plkrlPageSize- (\ s a -> s{_plkrlPageSize = a})- . mapping _Coerce---- | JSONP-plkrlCallback :: Lens' ProjectsLocationsKeyRingsList (Maybe Text)-plkrlCallback- = lens _plkrlCallback- (\ s a -> s{_plkrlCallback = a})--instance GoogleRequest ProjectsLocationsKeyRingsList- where- type Rs ProjectsLocationsKeyRingsList =- ListKeyRingsResponse- type Scopes ProjectsLocationsKeyRingsList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient ProjectsLocationsKeyRingsList'{..}- = go _plkrlParent _plkrlXgafv _plkrlUploadProtocol- _plkrlAccessToken- _plkrlUploadType- _plkrlPageToken- _plkrlPageSize- _plkrlCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsKeyRingsListResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/SetIAMPolicy.hs
@@ -1,177 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.SetIAMPolicy--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.setIamPolicy@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.SetIAMPolicy- (- -- * REST Resource- ProjectsLocationsKeyRingsSetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsKeyRingsSetIAMPolicy- , ProjectsLocationsKeyRingsSetIAMPolicy-- -- * Request Lenses- , plkrsipXgafv- , plkrsipUploadProtocol- , plkrsipAccessToken- , plkrsipUploadType- , plkrsipPayload- , plkrsipResource- , plkrsipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.setIamPolicy@ method which the--- 'ProjectsLocationsKeyRingsSetIAMPolicy' request conforms to.-type ProjectsLocationsKeyRingsSetIAMPolicyResource =- "v1" :>- CaptureMode "resource" "setIamPolicy" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] SetIAMPolicyRequest :>- Post '[JSON] Policy---- | Sets the access control policy on the specified resource. Replaces any--- existing policy.------ /See:/ 'projectsLocationsKeyRingsSetIAMPolicy' smart constructor.-data ProjectsLocationsKeyRingsSetIAMPolicy =- ProjectsLocationsKeyRingsSetIAMPolicy'- { _plkrsipXgafv :: !(Maybe Xgafv)- , _plkrsipUploadProtocol :: !(Maybe Text)- , _plkrsipAccessToken :: !(Maybe Text)- , _plkrsipUploadType :: !(Maybe Text)- , _plkrsipPayload :: !SetIAMPolicyRequest- , _plkrsipResource :: !Text- , _plkrsipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsSetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrsipXgafv'------ * 'plkrsipUploadProtocol'------ * 'plkrsipAccessToken'------ * 'plkrsipUploadType'------ * 'plkrsipPayload'------ * 'plkrsipResource'------ * 'plkrsipCallback'-projectsLocationsKeyRingsSetIAMPolicy- :: SetIAMPolicyRequest -- ^ 'plkrsipPayload'- -> Text -- ^ 'plkrsipResource'- -> ProjectsLocationsKeyRingsSetIAMPolicy-projectsLocationsKeyRingsSetIAMPolicy pPlkrsipPayload_ pPlkrsipResource_ =- ProjectsLocationsKeyRingsSetIAMPolicy'- { _plkrsipXgafv = Nothing- , _plkrsipUploadProtocol = Nothing- , _plkrsipAccessToken = Nothing- , _plkrsipUploadType = Nothing- , _plkrsipPayload = pPlkrsipPayload_- , _plkrsipResource = pPlkrsipResource_- , _plkrsipCallback = Nothing- }----- | V1 error format.-plkrsipXgafv :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy (Maybe Xgafv)-plkrsipXgafv- = lens _plkrsipXgafv (\ s a -> s{_plkrsipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrsipUploadProtocol :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy (Maybe Text)-plkrsipUploadProtocol- = lens _plkrsipUploadProtocol- (\ s a -> s{_plkrsipUploadProtocol = a})---- | OAuth access token.-plkrsipAccessToken :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy (Maybe Text)-plkrsipAccessToken- = lens _plkrsipAccessToken- (\ s a -> s{_plkrsipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrsipUploadType :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy (Maybe Text)-plkrsipUploadType- = lens _plkrsipUploadType- (\ s a -> s{_plkrsipUploadType = a})---- | Multipart request metadata.-plkrsipPayload :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy SetIAMPolicyRequest-plkrsipPayload- = lens _plkrsipPayload- (\ s a -> s{_plkrsipPayload = a})---- | REQUIRED: The resource for which the policy is being specified. See the--- operation documentation for the appropriate value for this field.-plkrsipResource :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy Text-plkrsipResource- = lens _plkrsipResource- (\ s a -> s{_plkrsipResource = a})---- | JSONP-plkrsipCallback :: Lens' ProjectsLocationsKeyRingsSetIAMPolicy (Maybe Text)-plkrsipCallback- = lens _plkrsipCallback- (\ s a -> s{_plkrsipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsSetIAMPolicy- where- type Rs ProjectsLocationsKeyRingsSetIAMPolicy =- Policy- type Scopes ProjectsLocationsKeyRingsSetIAMPolicy =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsSetIAMPolicy'{..}- = go _plkrsipResource _plkrsipXgafv- _plkrsipUploadProtocol- _plkrsipAccessToken- _plkrsipUploadType- _plkrsipCallback- (Just AltJSON)- _plkrsipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsKeyRingsSetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/KeyRings/TestIAMPermissions.hs
@@ -1,190 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.TestIAMPermissions--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.keyRings.testIamPermissions@.-module Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.TestIAMPermissions- (- -- * REST Resource- ProjectsLocationsKeyRingsTestIAMPermissionsResource-- -- * Creating a Request- , projectsLocationsKeyRingsTestIAMPermissions- , ProjectsLocationsKeyRingsTestIAMPermissions-- -- * Request Lenses- , plkrtipXgafv- , plkrtipUploadProtocol- , plkrtipAccessToken- , plkrtipUploadType- , plkrtipPayload- , plkrtipResource- , plkrtipCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.keyRings.testIamPermissions@ method which the--- 'ProjectsLocationsKeyRingsTestIAMPermissions' request conforms to.-type ProjectsLocationsKeyRingsTestIAMPermissionsResource- =- "v1" :>- CaptureMode "resource" "testIamPermissions" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] TestIAMPermissionsRequest :>- Post '[JSON] TestIAMPermissionsResponse---- | Returns permissions that a caller has on the specified resource. If the--- resource does not exist, this will return an empty set of permissions,--- not a NOT_FOUND error. Note: This operation is designed to be used for--- building permission-aware UIs and command-line tools, not for--- authorization checking. This operation may \"fail open\" without--- warning.------ /See:/ 'projectsLocationsKeyRingsTestIAMPermissions' smart constructor.-data ProjectsLocationsKeyRingsTestIAMPermissions =- ProjectsLocationsKeyRingsTestIAMPermissions'- { _plkrtipXgafv :: !(Maybe Xgafv)- , _plkrtipUploadProtocol :: !(Maybe Text)- , _plkrtipAccessToken :: !(Maybe Text)- , _plkrtipUploadType :: !(Maybe Text)- , _plkrtipPayload :: !TestIAMPermissionsRequest- , _plkrtipResource :: !Text- , _plkrtipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsKeyRingsTestIAMPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plkrtipXgafv'------ * 'plkrtipUploadProtocol'------ * 'plkrtipAccessToken'------ * 'plkrtipUploadType'------ * 'plkrtipPayload'------ * 'plkrtipResource'------ * 'plkrtipCallback'-projectsLocationsKeyRingsTestIAMPermissions- :: TestIAMPermissionsRequest -- ^ 'plkrtipPayload'- -> Text -- ^ 'plkrtipResource'- -> ProjectsLocationsKeyRingsTestIAMPermissions-projectsLocationsKeyRingsTestIAMPermissions pPlkrtipPayload_ pPlkrtipResource_ =- ProjectsLocationsKeyRingsTestIAMPermissions'- { _plkrtipXgafv = Nothing- , _plkrtipUploadProtocol = Nothing- , _plkrtipAccessToken = Nothing- , _plkrtipUploadType = Nothing- , _plkrtipPayload = pPlkrtipPayload_- , _plkrtipResource = pPlkrtipResource_- , _plkrtipCallback = Nothing- }----- | V1 error format.-plkrtipXgafv :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions (Maybe Xgafv)-plkrtipXgafv- = lens _plkrtipXgafv (\ s a -> s{_plkrtipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plkrtipUploadProtocol :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions (Maybe Text)-plkrtipUploadProtocol- = lens _plkrtipUploadProtocol- (\ s a -> s{_plkrtipUploadProtocol = a})---- | OAuth access token.-plkrtipAccessToken :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions (Maybe Text)-plkrtipAccessToken- = lens _plkrtipAccessToken- (\ s a -> s{_plkrtipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plkrtipUploadType :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions (Maybe Text)-plkrtipUploadType- = lens _plkrtipUploadType- (\ s a -> s{_plkrtipUploadType = a})---- | Multipart request metadata.-plkrtipPayload :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions TestIAMPermissionsRequest-plkrtipPayload- = lens _plkrtipPayload- (\ s a -> s{_plkrtipPayload = a})---- | REQUIRED: The resource for which the policy detail is being requested.--- See the operation documentation for the appropriate value for this--- field.-plkrtipResource :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions Text-plkrtipResource- = lens _plkrtipResource- (\ s a -> s{_plkrtipResource = a})---- | JSONP-plkrtipCallback :: Lens' ProjectsLocationsKeyRingsTestIAMPermissions (Maybe Text)-plkrtipCallback- = lens _plkrtipCallback- (\ s a -> s{_plkrtipCallback = a})--instance GoogleRequest- ProjectsLocationsKeyRingsTestIAMPermissions- where- type Rs ProjectsLocationsKeyRingsTestIAMPermissions =- TestIAMPermissionsResponse- type Scopes- ProjectsLocationsKeyRingsTestIAMPermissions- =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient- ProjectsLocationsKeyRingsTestIAMPermissions'{..}- = go _plkrtipResource _plkrtipXgafv- _plkrtipUploadProtocol- _plkrtipAccessToken- _plkrtipUploadType- _plkrtipCallback- (Just AltJSON)- _plkrtipPayload- cloudKMSService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsKeyRingsTestIAMPermissionsResource)- mempty
− gen/Network/Google/Resource/CloudKMS/Projects/Locations/List.hs
@@ -1,188 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudKMS.Projects.Locations.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists information about the supported locations for this service.------ /See:/ <https://cloud.google.com/kms/ Cloud Key Management Service (KMS) API Reference> for @cloudkms.projects.locations.list@.-module Network.Google.Resource.CloudKMS.Projects.Locations.List- (- -- * REST Resource- ProjectsLocationsListResource-- -- * Creating a Request- , projectsLocationsList- , ProjectsLocationsList-- -- * Request Lenses- , pllXgafv- , pllUploadProtocol- , pllAccessToken- , pllUploadType- , pllName- , pllFilter- , pllPageToken- , pllPageSize- , pllCallback- ) where--import Network.Google.CloudKMS.Types-import Network.Google.Prelude---- | A resource alias for @cloudkms.projects.locations.list@ method which the--- 'ProjectsLocationsList' request conforms to.-type ProjectsLocationsListResource =- "v1" :>- Capture "name" Text :>- "locations" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListLocationsResponse---- | Lists information about the supported locations for this service.------ /See:/ 'projectsLocationsList' smart constructor.-data ProjectsLocationsList =- ProjectsLocationsList'- { _pllXgafv :: !(Maybe Xgafv)- , _pllUploadProtocol :: !(Maybe Text)- , _pllAccessToken :: !(Maybe Text)- , _pllUploadType :: !(Maybe Text)- , _pllName :: !Text- , _pllFilter :: !(Maybe Text)- , _pllPageToken :: !(Maybe Text)- , _pllPageSize :: !(Maybe (Textual Int32))- , _pllCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pllXgafv'------ * 'pllUploadProtocol'------ * 'pllAccessToken'------ * 'pllUploadType'------ * 'pllName'------ * 'pllFilter'------ * 'pllPageToken'------ * 'pllPageSize'------ * 'pllCallback'-projectsLocationsList- :: Text -- ^ 'pllName'- -> ProjectsLocationsList-projectsLocationsList pPllName_ =- ProjectsLocationsList'- { _pllXgafv = Nothing- , _pllUploadProtocol = Nothing- , _pllAccessToken = Nothing- , _pllUploadType = Nothing- , _pllName = pPllName_- , _pllFilter = Nothing- , _pllPageToken = Nothing- , _pllPageSize = Nothing- , _pllCallback = Nothing- }----- | V1 error format.-pllXgafv :: Lens' ProjectsLocationsList (Maybe Xgafv)-pllXgafv = lens _pllXgafv (\ s a -> s{_pllXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pllUploadProtocol :: Lens' ProjectsLocationsList (Maybe Text)-pllUploadProtocol- = lens _pllUploadProtocol- (\ s a -> s{_pllUploadProtocol = a})---- | OAuth access token.-pllAccessToken :: Lens' ProjectsLocationsList (Maybe Text)-pllAccessToken- = lens _pllAccessToken- (\ s a -> s{_pllAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pllUploadType :: Lens' ProjectsLocationsList (Maybe Text)-pllUploadType- = lens _pllUploadType- (\ s a -> s{_pllUploadType = a})---- | The resource that owns the locations collection, if applicable.-pllName :: Lens' ProjectsLocationsList Text-pllName = lens _pllName (\ s a -> s{_pllName = a})---- | The standard list filter.-pllFilter :: Lens' ProjectsLocationsList (Maybe Text)-pllFilter- = lens _pllFilter (\ s a -> s{_pllFilter = a})---- | The standard list page token.-pllPageToken :: Lens' ProjectsLocationsList (Maybe Text)-pllPageToken- = lens _pllPageToken (\ s a -> s{_pllPageToken = a})---- | The standard list page size.-pllPageSize :: Lens' ProjectsLocationsList (Maybe Int32)-pllPageSize- = lens _pllPageSize (\ s a -> s{_pllPageSize = a}) .- mapping _Coerce---- | JSONP-pllCallback :: Lens' ProjectsLocationsList (Maybe Text)-pllCallback- = lens _pllCallback (\ s a -> s{_pllCallback = a})--instance GoogleRequest ProjectsLocationsList where- type Rs ProjectsLocationsList = ListLocationsResponse- type Scopes ProjectsLocationsList =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/cloudkms"]- requestClient ProjectsLocationsList'{..}- = go _pllName _pllXgafv _pllUploadProtocol- _pllAccessToken- _pllUploadType- _pllFilter- _pllPageToken- _pllPageSize- _pllCallback- (Just AltJSON)- cloudKMSService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsListResource)- mempty
gogol-cloudkms.cabal view
@@ -1,76 +1,119 @@-name: gogol-cloudkms-version: 0.5.0-synopsis: Google Cloud Key Management Service (KMS) SDK.-homepage: https://github.com/brendanhay/gogol-bug-reports: https://github.com/brendanhay/gogol/issues-license: OtherLicense-license-file: LICENSE-author: Brendan Hay-maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2015-2016 Brendan Hay-category: Network, Google, Cloud-build-type: Simple-cabal-version: >= 1.10-extra-source-files: README.md src/.gitkeep+cabal-version: 2.2+name: gogol-cloudkms+version: 1.0.0+synopsis: Google Cloud Key Management Service (KMS) SDK.+homepage: https://github.com/brendanhay/gogol+bug-reports: https://github.com/brendanhay/gogol/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+gogol@gmail.com>, Toni Cebrián <toni@tonicebrian.com> +copyright: Copyright (c) 2015-2025 Brendan Hay+category: Google+build-type: Simple+extra-source-files:+ README.md+ src/.gitkeep+ description:- Manages keys and performs cryptographic operations in a central cloud- service, for direct use by other cloud resources and applications.- .- /Warning:/ This is an experimental prototype/preview release which is still- under exploratory development and not intended for public use, caveat emptor!- .- This library is compatible with version @v1@- of the API.+ Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications.+ .+ /Warning:/ This is an experimental prototype/preview release which is still+ under exploratory development and not intended for public use, caveat emptor!+ .+ This library is compatible with version @v1@+ of the API. source-repository head- type: git- location: git://github.com/brendanhay/gogol.git+ type: git+ location: git://github.com/brendanhay/gogol.git+ subdir: gogol-cloudkms +flag field-selectors+ description:+ If record field selectors should be enabled. Disabling this requires GHC >=9.2 and the NoFieldSelectors extension.++ default: False+ manual: True+ library- default-language: Haskell2010- hs-source-dirs: src gen+ default-language: GHC2021+ hs-source-dirs: src gen+ ghc-options:+ -Wall -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates -funbox-strict-fields+ -fwarn-unused-packages - ghc-options: -Wall+ if (!flag(field-selectors) && impl(ghc >=9.2))+ default-extensions: NoFieldSelectors - exposed-modules:- Network.Google.CloudKMS- , Network.Google.CloudKMS.Types- , Network.Google.Resource.CloudKMS.Projects.Locations.Get- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Create- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIAMPermissions- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.Get- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.GetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIAMPermissions- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.List- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.SetIAMPolicy- , Network.Google.Resource.CloudKMS.Projects.Locations.KeyRings.TestIAMPermissions- , Network.Google.Resource.CloudKMS.Projects.Locations.List+ exposed-modules:+ Gogol.CloudKMS+ Gogol.CloudKMS.Folders.GetAutokeyConfig+ Gogol.CloudKMS.Folders.UpdateAutokeyConfig+ Gogol.CloudKMS.Projects.Locations.EkmConfig.GetIamPolicy+ Gogol.CloudKMS.Projects.Locations.EkmConfig.SetIamPolicy+ Gogol.CloudKMS.Projects.Locations.EkmConfig.TestIamPermissions+ Gogol.CloudKMS.Projects.Locations.EkmConnections.Create+ Gogol.CloudKMS.Projects.Locations.EkmConnections.Get+ Gogol.CloudKMS.Projects.Locations.EkmConnections.GetIamPolicy+ Gogol.CloudKMS.Projects.Locations.EkmConnections.List+ Gogol.CloudKMS.Projects.Locations.EkmConnections.Patch+ Gogol.CloudKMS.Projects.Locations.EkmConnections.SetIamPolicy+ Gogol.CloudKMS.Projects.Locations.EkmConnections.TestIamPermissions+ Gogol.CloudKMS.Projects.Locations.EkmConnections.VerifyConnectivity+ Gogol.CloudKMS.Projects.Locations.GenerateRandomBytes+ Gogol.CloudKMS.Projects.Locations.Get+ Gogol.CloudKMS.Projects.Locations.GetEkmConfig+ Gogol.CloudKMS.Projects.Locations.KeyHandles.Create+ Gogol.CloudKMS.Projects.Locations.KeyHandles.Get+ Gogol.CloudKMS.Projects.Locations.KeyHandles.List+ Gogol.CloudKMS.Projects.Locations.KeyRings.Create+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Create+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricDecrypt+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.AsymmetricSign+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Create+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Destroy+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Get+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.GetPublicKey+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Import+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.List+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacSign+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.MacVerify+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Patch+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawDecrypt+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.RawEncrypt+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.CryptoKeyVersions.Restore+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Decrypt+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Encrypt+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Get+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.GetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.List+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.Patch+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.SetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.TestIamPermissions+ Gogol.CloudKMS.Projects.Locations.KeyRings.CryptoKeys.UpdatePrimaryVersion+ Gogol.CloudKMS.Projects.Locations.KeyRings.Get+ Gogol.CloudKMS.Projects.Locations.KeyRings.GetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Create+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.Get+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.GetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.List+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.SetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.ImportJobs.TestIamPermissions+ Gogol.CloudKMS.Projects.Locations.KeyRings.List+ Gogol.CloudKMS.Projects.Locations.KeyRings.SetIamPolicy+ Gogol.CloudKMS.Projects.Locations.KeyRings.TestIamPermissions+ Gogol.CloudKMS.Projects.Locations.List+ Gogol.CloudKMS.Projects.Locations.Operations.Get+ Gogol.CloudKMS.Projects.Locations.UpdateEkmConfig+ Gogol.CloudKMS.Projects.ShowEffectiveAutokeyConfig+ Gogol.CloudKMS.Types - other-modules:- Network.Google.CloudKMS.Types.Product- , Network.Google.CloudKMS.Types.Sum+ other-modules:+ Gogol.CloudKMS.Internal.Product+ Gogol.CloudKMS.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0