gogol-cloudfunctions 0.5.0 → 1.0.0
raw patch · 45 files changed
+7079/−5685 lines, 45 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/CloudFunctions.hs +448/−0
- gen/Gogol/CloudFunctions/Internal/Product.hs +2699/−0
- gen/Gogol/CloudFunctions/Internal/Sum.hs +974/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/AbortFunctionUpgrade.hs +130/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/CommitFunctionUpgrade.hs +130/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/Create.hs +128/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/Delete.hs +115/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/DetachFunction.hs +128/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/GenerateDownloadUrl.hs +129/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/GenerateUploadUrl.hs +130/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/Get.hs +119/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/GetIamPolicy.hs +125/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/List.hs +138/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/Patch.hs +127/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/RedirectFunctionUpgradeTraffic.hs +133/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/RollbackFunctionUpgradeTraffic.hs +133/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/SetIamPolicy.hs +128/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/SetupFunctionUpgradeConfig.hs +131/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Functions/TestIamPermissions.hs +129/−0
- gen/Gogol/CloudFunctions/Projects/Locations/List.hs +127/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Operations/Get.hs +115/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Operations/List.hs +133/−0
- gen/Gogol/CloudFunctions/Projects/Locations/Runtimes/List.hs +122/−0
- gen/Gogol/CloudFunctions/Types.hs +335/−0
- gen/Network/Google/CloudFunctions.hs +0/−371
- gen/Network/Google/CloudFunctions/Types.hs +0/−293
- gen/Network/Google/CloudFunctions/Types/Product.hs +0/−2293
- gen/Network/Google/CloudFunctions/Types/Sum.hs +0/−215
- gen/Network/Google/Resource/CloudFunctions/Operations/Get.hs +0/−150
- gen/Network/Google/Resource/CloudFunctions/Operations/List.hs +0/−205
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Call.hs +0/−167
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Create.hs +0/−173
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Delete.hs +0/−156
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GenerateDownloadURL.hs +0/−181
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GenerateUploadURL.hs +0/−207
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Get.hs +0/−151
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GetIAMPolicy.hs +0/−161
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/List.hs +0/−185
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Patch.hs +0/−180
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/SetIAMPolicy.hs +0/−176
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/TestIAMPermissions.hs +0/−182
- gen/Network/Google/Resource/CloudFunctions/Projects/Locations/List.hs +0/−187
- gogol-cloudfunctions.cabal +70/−50
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/CloudFunctions.hs view
@@ -0,0 +1,448 @@+{-# 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.CloudFunctions+-- 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 lightweight user-provided functions executed in response to events.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference>+module Gogol.CloudFunctions+ ( -- * Configuration+ cloudFunctionsService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,++ -- * Resources++ -- ** cloudfunctions.projects.locations.functions.abortFunctionUpgrade+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgradeResource,+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade (..),+ newCloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade,++ -- ** cloudfunctions.projects.locations.functions.commitFunctionUpgrade+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgradeResource,+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade (..),+ newCloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade,++ -- ** cloudfunctions.projects.locations.functions.create+ CloudFunctionsProjectsLocationsFunctionsCreateResource,+ CloudFunctionsProjectsLocationsFunctionsCreate (..),+ newCloudFunctionsProjectsLocationsFunctionsCreate,++ -- ** cloudfunctions.projects.locations.functions.delete+ CloudFunctionsProjectsLocationsFunctionsDeleteResource,+ CloudFunctionsProjectsLocationsFunctionsDelete (..),+ newCloudFunctionsProjectsLocationsFunctionsDelete,++ -- ** cloudfunctions.projects.locations.functions.detachFunction+ CloudFunctionsProjectsLocationsFunctionsDetachFunctionResource,+ CloudFunctionsProjectsLocationsFunctionsDetachFunction (..),+ newCloudFunctionsProjectsLocationsFunctionsDetachFunction,++ -- ** cloudfunctions.projects.locations.functions.generateDownloadUrl+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrlResource,+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl (..),+ newCloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl,++ -- ** cloudfunctions.projects.locations.functions.generateUploadUrl+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrlResource,+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl (..),+ newCloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl,++ -- ** cloudfunctions.projects.locations.functions.get+ CloudFunctionsProjectsLocationsFunctionsGetResource,+ CloudFunctionsProjectsLocationsFunctionsGet (..),+ newCloudFunctionsProjectsLocationsFunctionsGet,++ -- ** cloudfunctions.projects.locations.functions.getIamPolicy+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicyResource,+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy (..),+ newCloudFunctionsProjectsLocationsFunctionsGetIamPolicy,++ -- ** cloudfunctions.projects.locations.functions.list+ CloudFunctionsProjectsLocationsFunctionsListResource,+ CloudFunctionsProjectsLocationsFunctionsList (..),+ newCloudFunctionsProjectsLocationsFunctionsList,++ -- ** cloudfunctions.projects.locations.functions.patch+ CloudFunctionsProjectsLocationsFunctionsPatchResource,+ CloudFunctionsProjectsLocationsFunctionsPatch (..),+ newCloudFunctionsProjectsLocationsFunctionsPatch,++ -- ** cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficResource,+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic (..),+ newCloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic,++ -- ** cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficResource,+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic (..),+ newCloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic,++ -- ** cloudfunctions.projects.locations.functions.setIamPolicy+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicyResource,+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy (..),+ newCloudFunctionsProjectsLocationsFunctionsSetIamPolicy,++ -- ** cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfigResource,+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig (..),+ newCloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig,++ -- ** cloudfunctions.projects.locations.functions.testIamPermissions+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissionsResource,+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions (..),+ newCloudFunctionsProjectsLocationsFunctionsTestIamPermissions,++ -- ** cloudfunctions.projects.locations.list+ CloudFunctionsProjectsLocationsListResource,+ CloudFunctionsProjectsLocationsList (..),+ newCloudFunctionsProjectsLocationsList,++ -- ** cloudfunctions.projects.locations.operations.get+ CloudFunctionsProjectsLocationsOperationsGetResource,+ CloudFunctionsProjectsLocationsOperationsGet (..),+ newCloudFunctionsProjectsLocationsOperationsGet,++ -- ** cloudfunctions.projects.locations.operations.list+ CloudFunctionsProjectsLocationsOperationsListResource,+ CloudFunctionsProjectsLocationsOperationsList (..),+ newCloudFunctionsProjectsLocationsOperationsList,++ -- ** cloudfunctions.projects.locations.runtimes.list+ CloudFunctionsProjectsLocationsRuntimesListResource,+ CloudFunctionsProjectsLocationsRuntimesList (..),+ newCloudFunctionsProjectsLocationsRuntimesList,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AbortFunctionUpgradeRequest+ AbortFunctionUpgradeRequest (..),+ newAbortFunctionUpgradeRequest,++ -- ** AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- ** AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- ** AuditLogConfig_LogType+ AuditLogConfig_LogType (..),++ -- ** AutomaticUpdatePolicy+ AutomaticUpdatePolicy (..),+ newAutomaticUpdatePolicy,++ -- ** Binding+ Binding (..),+ newBinding,++ -- ** BuildConfig+ BuildConfig (..),+ newBuildConfig,++ -- ** BuildConfig_DockerRegistry+ BuildConfig_DockerRegistry (..),++ -- ** BuildConfig_EnvironmentVariables+ BuildConfig_EnvironmentVariables (..),+ newBuildConfig_EnvironmentVariables,++ -- ** CommitFunctionUpgradeRequest+ CommitFunctionUpgradeRequest (..),+ newCommitFunctionUpgradeRequest,++ -- ** Date+ Date (..),+ newDate,++ -- ** DetachFunctionRequest+ DetachFunctionRequest (..),+ newDetachFunctionRequest,++ -- ** EventFilter+ EventFilter (..),+ newEventFilter,++ -- ** EventTrigger+ EventTrigger (..),+ newEventTrigger,++ -- ** EventTrigger_RetryPolicy+ EventTrigger_RetryPolicy (..),++ -- ** Expr+ Expr (..),+ newExpr,++ -- ** Function+ Function (..),+ newFunction,++ -- ** Function_Environment+ Function_Environment (..),++ -- ** Function_Labels+ Function_Labels (..),+ newFunction_Labels,++ -- ** Function_State+ Function_State (..),++ -- ** GenerateDownloadUrlRequest+ GenerateDownloadUrlRequest (..),+ newGenerateDownloadUrlRequest,++ -- ** GenerateDownloadUrlResponse+ GenerateDownloadUrlResponse (..),+ newGenerateDownloadUrlResponse,++ -- ** GenerateUploadUrlRequest+ GenerateUploadUrlRequest (..),+ newGenerateUploadUrlRequest,++ -- ** GenerateUploadUrlRequest_Environment+ GenerateUploadUrlRequest_Environment (..),++ -- ** GenerateUploadUrlResponse+ GenerateUploadUrlResponse (..),+ newGenerateUploadUrlResponse,++ -- ** GoogleCloudFunctionsV2LocationMetadata+ GoogleCloudFunctionsV2LocationMetadata (..),+ newGoogleCloudFunctionsV2LocationMetadata,++ -- ** GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem (..),++ -- ** GoogleCloudFunctionsV2OperationMetadata+ GoogleCloudFunctionsV2OperationMetadata (..),+ newGoogleCloudFunctionsV2OperationMetadata,++ -- ** GoogleCloudFunctionsV2OperationMetadata_OperationType+ GoogleCloudFunctionsV2OperationMetadata_OperationType (..),++ -- ** GoogleCloudFunctionsV2OperationMetadata_RequestResource+ GoogleCloudFunctionsV2OperationMetadata_RequestResource (..),+ newGoogleCloudFunctionsV2OperationMetadata_RequestResource,++ -- ** GoogleCloudFunctionsV2Stage+ GoogleCloudFunctionsV2Stage (..),+ newGoogleCloudFunctionsV2Stage,++ -- ** GoogleCloudFunctionsV2Stage_Name+ GoogleCloudFunctionsV2Stage_Name (..),++ -- ** GoogleCloudFunctionsV2Stage_State+ GoogleCloudFunctionsV2Stage_State (..),++ -- ** GoogleCloudFunctionsV2StateMessage+ GoogleCloudFunctionsV2StateMessage (..),+ newGoogleCloudFunctionsV2StateMessage,++ -- ** GoogleCloudFunctionsV2StateMessage_Severity+ GoogleCloudFunctionsV2StateMessage_Severity (..),++ -- ** ListFunctionsResponse+ ListFunctionsResponse (..),+ newListFunctionsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** ListRuntimesResponse+ ListRuntimesResponse (..),+ newListRuntimesResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** OnDeployUpdatePolicy+ OnDeployUpdatePolicy (..),+ newOnDeployUpdatePolicy,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OperationMetadataV1+ OperationMetadataV1 (..),+ newOperationMetadataV1,++ -- ** OperationMetadataV1_Request+ OperationMetadataV1_Request (..),+ newOperationMetadataV1_Request,++ -- ** OperationMetadataV1_Type+ OperationMetadataV1_Type (..),++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** RedirectFunctionUpgradeTrafficRequest+ RedirectFunctionUpgradeTrafficRequest (..),+ newRedirectFunctionUpgradeTrafficRequest,++ -- ** RepoSource+ RepoSource (..),+ newRepoSource,++ -- ** RollbackFunctionUpgradeTrafficRequest+ RollbackFunctionUpgradeTrafficRequest (..),+ newRollbackFunctionUpgradeTrafficRequest,++ -- ** Runtime+ Runtime (..),+ newRuntime,++ -- ** Runtime_Environment+ Runtime_Environment (..),++ -- ** Runtime_Stage+ Runtime_Stage (..),++ -- ** SecretEnvVar+ SecretEnvVar (..),+ newSecretEnvVar,++ -- ** SecretVersion+ SecretVersion (..),+ newSecretVersion,++ -- ** SecretVolume+ SecretVolume (..),+ newSecretVolume,++ -- ** ServiceConfig+ ServiceConfig (..),+ newServiceConfig,++ -- ** ServiceConfig_EnvironmentVariables+ ServiceConfig_EnvironmentVariables (..),+ newServiceConfig_EnvironmentVariables,++ -- ** ServiceConfig_IngressSettings+ ServiceConfig_IngressSettings (..),++ -- ** ServiceConfig_SecurityLevel+ ServiceConfig_SecurityLevel (..),++ -- ** ServiceConfig_VpcConnectorEgressSettings+ ServiceConfig_VpcConnectorEgressSettings (..),++ -- ** SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- ** SetupFunctionUpgradeConfigRequest+ SetupFunctionUpgradeConfigRequest (..),+ newSetupFunctionUpgradeConfigRequest,++ -- ** Source+ Source (..),+ newSource,++ -- ** SourceProvenance+ SourceProvenance (..),+ newSourceProvenance,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StorageSource+ StorageSource (..),+ newStorageSource,++ -- ** TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- ** TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- ** UpgradeInfo+ UpgradeInfo (..),+ newUpgradeInfo,++ -- ** UpgradeInfo_UpgradeState+ UpgradeInfo_UpgradeState (..),+ )+where++import Gogol.CloudFunctions.Projects.Locations.Functions.AbortFunctionUpgrade+import Gogol.CloudFunctions.Projects.Locations.Functions.CommitFunctionUpgrade+import Gogol.CloudFunctions.Projects.Locations.Functions.Create+import Gogol.CloudFunctions.Projects.Locations.Functions.Delete+import Gogol.CloudFunctions.Projects.Locations.Functions.DetachFunction+import Gogol.CloudFunctions.Projects.Locations.Functions.GenerateDownloadUrl+import Gogol.CloudFunctions.Projects.Locations.Functions.GenerateUploadUrl+import Gogol.CloudFunctions.Projects.Locations.Functions.Get+import Gogol.CloudFunctions.Projects.Locations.Functions.GetIamPolicy+import Gogol.CloudFunctions.Projects.Locations.Functions.List+import Gogol.CloudFunctions.Projects.Locations.Functions.Patch+import Gogol.CloudFunctions.Projects.Locations.Functions.RedirectFunctionUpgradeTraffic+import Gogol.CloudFunctions.Projects.Locations.Functions.RollbackFunctionUpgradeTraffic+import Gogol.CloudFunctions.Projects.Locations.Functions.SetIamPolicy+import Gogol.CloudFunctions.Projects.Locations.Functions.SetupFunctionUpgradeConfig+import Gogol.CloudFunctions.Projects.Locations.Functions.TestIamPermissions+import Gogol.CloudFunctions.Projects.Locations.List+import Gogol.CloudFunctions.Projects.Locations.Operations.Get+import Gogol.CloudFunctions.Projects.Locations.Operations.List+import Gogol.CloudFunctions.Projects.Locations.Runtimes.List+import Gogol.CloudFunctions.Types
+ gen/Gogol/CloudFunctions/Internal/Product.hs view
@@ -0,0 +1,2699 @@+{-# 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.CloudFunctions.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.CloudFunctions.Internal.Product+ ( -- * AbortFunctionUpgradeRequest+ AbortFunctionUpgradeRequest (..),+ newAbortFunctionUpgradeRequest,++ -- * AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- * AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- * AutomaticUpdatePolicy+ AutomaticUpdatePolicy (..),+ newAutomaticUpdatePolicy,++ -- * Binding+ Binding (..),+ newBinding,++ -- * BuildConfig+ BuildConfig (..),+ newBuildConfig,++ -- * BuildConfig_EnvironmentVariables+ BuildConfig_EnvironmentVariables (..),+ newBuildConfig_EnvironmentVariables,++ -- * CommitFunctionUpgradeRequest+ CommitFunctionUpgradeRequest (..),+ newCommitFunctionUpgradeRequest,++ -- * Date+ Date (..),+ newDate,++ -- * DetachFunctionRequest+ DetachFunctionRequest (..),+ newDetachFunctionRequest,++ -- * EventFilter+ EventFilter (..),+ newEventFilter,++ -- * EventTrigger+ EventTrigger (..),+ newEventTrigger,++ -- * Expr+ Expr (..),+ newExpr,++ -- * Function+ Function (..),+ newFunction,++ -- * Function_Labels+ Function_Labels (..),+ newFunction_Labels,++ -- * GenerateDownloadUrlRequest+ GenerateDownloadUrlRequest (..),+ newGenerateDownloadUrlRequest,++ -- * GenerateDownloadUrlResponse+ GenerateDownloadUrlResponse (..),+ newGenerateDownloadUrlResponse,++ -- * GenerateUploadUrlRequest+ GenerateUploadUrlRequest (..),+ newGenerateUploadUrlRequest,++ -- * GenerateUploadUrlResponse+ GenerateUploadUrlResponse (..),+ newGenerateUploadUrlResponse,++ -- * GoogleCloudFunctionsV2LocationMetadata+ GoogleCloudFunctionsV2LocationMetadata (..),+ newGoogleCloudFunctionsV2LocationMetadata,++ -- * GoogleCloudFunctionsV2OperationMetadata+ GoogleCloudFunctionsV2OperationMetadata (..),+ newGoogleCloudFunctionsV2OperationMetadata,++ -- * GoogleCloudFunctionsV2OperationMetadata_RequestResource+ GoogleCloudFunctionsV2OperationMetadata_RequestResource (..),+ newGoogleCloudFunctionsV2OperationMetadata_RequestResource,++ -- * GoogleCloudFunctionsV2Stage+ GoogleCloudFunctionsV2Stage (..),+ newGoogleCloudFunctionsV2Stage,++ -- * GoogleCloudFunctionsV2StateMessage+ GoogleCloudFunctionsV2StateMessage (..),+ newGoogleCloudFunctionsV2StateMessage,++ -- * ListFunctionsResponse+ ListFunctionsResponse (..),+ newListFunctionsResponse,++ -- * ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- * ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- * ListRuntimesResponse+ ListRuntimesResponse (..),+ newListRuntimesResponse,++ -- * Location+ Location (..),+ newLocation,++ -- * Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- * Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- * OnDeployUpdatePolicy+ OnDeployUpdatePolicy (..),+ newOnDeployUpdatePolicy,++ -- * Operation+ Operation (..),+ newOperation,++ -- * Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- * Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- * OperationMetadataV1+ OperationMetadataV1 (..),+ newOperationMetadataV1,++ -- * OperationMetadataV1_Request+ OperationMetadataV1_Request (..),+ newOperationMetadataV1_Request,++ -- * Policy+ Policy (..),+ newPolicy,++ -- * RedirectFunctionUpgradeTrafficRequest+ RedirectFunctionUpgradeTrafficRequest (..),+ newRedirectFunctionUpgradeTrafficRequest,++ -- * RepoSource+ RepoSource (..),+ newRepoSource,++ -- * RollbackFunctionUpgradeTrafficRequest+ RollbackFunctionUpgradeTrafficRequest (..),+ newRollbackFunctionUpgradeTrafficRequest,++ -- * Runtime+ Runtime (..),+ newRuntime,++ -- * SecretEnvVar+ SecretEnvVar (..),+ newSecretEnvVar,++ -- * SecretVersion+ SecretVersion (..),+ newSecretVersion,++ -- * SecretVolume+ SecretVolume (..),+ newSecretVolume,++ -- * ServiceConfig+ ServiceConfig (..),+ newServiceConfig,++ -- * ServiceConfig_EnvironmentVariables+ ServiceConfig_EnvironmentVariables (..),+ newServiceConfig_EnvironmentVariables,++ -- * SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- * SetupFunctionUpgradeConfigRequest+ SetupFunctionUpgradeConfigRequest (..),+ newSetupFunctionUpgradeConfigRequest,++ -- * Source+ Source (..),+ newSource,++ -- * SourceProvenance+ SourceProvenance (..),+ newSourceProvenance,++ -- * Status+ Status (..),+ newStatus,++ -- * Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- * StorageSource+ StorageSource (..),+ newStorageSource,++ -- * TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- * TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- * UpgradeInfo+ UpgradeInfo (..),+ newUpgradeInfo,+ )+where++import Gogol.CloudFunctions.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Request for the @AbortFunctionUpgrade@ method.+--+-- /See:/ 'newAbortFunctionUpgradeRequest' smart constructor.+data AbortFunctionUpgradeRequest = AbortFunctionUpgradeRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AbortFunctionUpgradeRequest' with the minimum fields required to make a request.+newAbortFunctionUpgradeRequest ::+ AbortFunctionUpgradeRequest+newAbortFunctionUpgradeRequest = AbortFunctionUpgradeRequest++instance Core.FromJSON AbortFunctionUpgradeRequest where+ parseJSON =+ Core.withObject+ "AbortFunctionUpgradeRequest"+ (\o -> Core.pure AbortFunctionUpgradeRequest)++instance Core.ToJSON AbortFunctionUpgradeRequest where+ toJSON = Core.const Core.emptyObject++-- | 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+ ]+ )++-- | Security patches are applied automatically to the runtime without requiring the function to be redeployed.+--+-- /See:/ 'newAutomaticUpdatePolicy' smart constructor.+data AutomaticUpdatePolicy = AutomaticUpdatePolicy+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AutomaticUpdatePolicy' with the minimum fields required to make a request.+newAutomaticUpdatePolicy ::+ AutomaticUpdatePolicy+newAutomaticUpdatePolicy = AutomaticUpdatePolicy++instance Core.FromJSON AutomaticUpdatePolicy where+ parseJSON =+ Core.withObject+ "AutomaticUpdatePolicy"+ (\o -> Core.pure AutomaticUpdatePolicy)++instance Core.ToJSON AutomaticUpdatePolicy where+ toJSON = Core.const Core.emptyObject++-- | 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'+ ]+ )++-- | Describes the Build step of the function that builds a container from the given source.+--+-- /See:/ 'newBuildConfig' smart constructor.+data BuildConfig = BuildConfig+ { automaticUpdatePolicy :: (Core.Maybe AutomaticUpdatePolicy),+ -- | Output only. The Cloud Build name of the latest successful deployment of the function.+ build :: (Core.Maybe Core.Text),+ -- | Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https:\/\/cloud.google.com\/artifact-registry\/docs\/transition\/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to @ARTIFACT_REGISTRY@. If @docker_repository@ field is specified, this field should either be left unspecified or set to @ARTIFACT_REGISTRY@.+ dockerRegistry :: (Core.Maybe BuildConfig_DockerRegistry),+ -- | Repository in Artifact Registry to which the function docker image will be pushed after it is built by Cloud Build. If specified by user, it is created and managed by user with a customer managed encryption key. Otherwise, GCF will create and use a repository named \'gcf-artifacts\' for every deployed region. It must match the pattern @projects\/{project}\/locations\/{location}\/repositories\/{repository}@. Repository format must be \'DOCKER\'.+ dockerRepository :: (Core.Maybe Core.Text),+ -- | The name of the function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified. For backward compatibility, if function with given name is not found, then the system will try to use function named \"function\". For Node.js this is name of a function exported by the module specified in @source_location@.+ entryPoint :: (Core.Maybe Core.Text),+ -- | User-provided build-time environment variables for the function+ environmentVariables :: (Core.Maybe BuildConfig_EnvironmentVariables),+ onDeployUpdatePolicy :: (Core.Maybe OnDeployUpdatePolicy),+ -- | The runtime in which to run the function. Required when deploying a new function, optional when updating an existing function. For a complete list of possible choices, see the <https://cloud.google.com/sdk/gcloud/reference/functions/deploy#--runtime gcloud command reference>.+ runtime :: (Core.Maybe Core.Text),+ -- | Service account to be used for building the container. The format of this field is @projects\/{projectId}\/serviceAccounts\/{serviceAccountEmail}@.+ serviceAccount :: (Core.Maybe Core.Text),+ -- | The location of the function source code.+ source :: (Core.Maybe Source),+ -- | Output only. A permanent fixed identifier for source.+ sourceProvenance :: (Core.Maybe SourceProvenance),+ -- | An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.+ sourceToken :: (Core.Maybe Core.Text),+ -- | Name of the Cloud Build Custom Worker Pool that should be used to build the function. The format of this field is @projects\/{project}\/locations\/{region}\/workerPools\/{workerPool}@ where {project} and {region} are the project id and region respectively where the worker pool is defined and {workerPool} is the short name of the worker pool. If the project id is not the same as the function, then the Cloud Functions Service Agent (service-\@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role Cloud Build Custom Workers Builder (roles\/cloudbuild.customworkers.builder) in the project.+ workerPool :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BuildConfig' with the minimum fields required to make a request.+newBuildConfig ::+ BuildConfig+newBuildConfig =+ BuildConfig+ { automaticUpdatePolicy = Core.Nothing,+ build = Core.Nothing,+ dockerRegistry = Core.Nothing,+ dockerRepository = Core.Nothing,+ entryPoint = Core.Nothing,+ environmentVariables = Core.Nothing,+ onDeployUpdatePolicy = Core.Nothing,+ runtime = Core.Nothing,+ serviceAccount = Core.Nothing,+ source = Core.Nothing,+ sourceProvenance = Core.Nothing,+ sourceToken = Core.Nothing,+ workerPool = Core.Nothing+ }++instance Core.FromJSON BuildConfig where+ parseJSON =+ Core.withObject+ "BuildConfig"+ ( \o ->+ BuildConfig+ Core.<$> (o Core..:? "automaticUpdatePolicy")+ Core.<*> (o Core..:? "build")+ Core.<*> (o Core..:? "dockerRegistry")+ Core.<*> (o Core..:? "dockerRepository")+ Core.<*> (o Core..:? "entryPoint")+ Core.<*> (o Core..:? "environmentVariables")+ Core.<*> (o Core..:? "onDeployUpdatePolicy")+ Core.<*> (o Core..:? "runtime")+ Core.<*> (o Core..:? "serviceAccount")+ Core.<*> (o Core..:? "source")+ Core.<*> (o Core..:? "sourceProvenance")+ Core.<*> (o Core..:? "sourceToken")+ Core.<*> (o Core..:? "workerPool")+ )++instance Core.ToJSON BuildConfig where+ toJSON BuildConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("automaticUpdatePolicy" Core..=) Core.<$> automaticUpdatePolicy,+ ("build" Core..=) Core.<$> build,+ ("dockerRegistry" Core..=) Core.<$> dockerRegistry,+ ("dockerRepository" Core..=) Core.<$> dockerRepository,+ ("entryPoint" Core..=) Core.<$> entryPoint,+ ("environmentVariables" Core..=) Core.<$> environmentVariables,+ ("onDeployUpdatePolicy" Core..=) Core.<$> onDeployUpdatePolicy,+ ("runtime" Core..=) Core.<$> runtime,+ ("serviceAccount" Core..=) Core.<$> serviceAccount,+ ("source" Core..=) Core.<$> source,+ ("sourceProvenance" Core..=) Core.<$> sourceProvenance,+ ("sourceToken" Core..=) Core.<$> sourceToken,+ ("workerPool" Core..=) Core.<$> workerPool+ ]+ )++-- | User-provided build-time environment variables for the function+--+-- /See:/ 'newBuildConfig_EnvironmentVariables' smart constructor.+newtype BuildConfig_EnvironmentVariables = BuildConfig_EnvironmentVariables+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BuildConfig_EnvironmentVariables' with the minimum fields required to make a request.+newBuildConfig_EnvironmentVariables ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ BuildConfig_EnvironmentVariables+newBuildConfig_EnvironmentVariables additional =+ BuildConfig_EnvironmentVariables {additional = additional}++instance Core.FromJSON BuildConfig_EnvironmentVariables where+ parseJSON =+ Core.withObject+ "BuildConfig_EnvironmentVariables"+ ( \o ->+ BuildConfig_EnvironmentVariables Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON BuildConfig_EnvironmentVariables where+ toJSON BuildConfig_EnvironmentVariables {..} =+ Core.toJSON additional++-- | Request for the @CommitFunctionUpgrade@ method.+--+-- /See:/ 'newCommitFunctionUpgradeRequest' smart constructor.+data CommitFunctionUpgradeRequest = CommitFunctionUpgradeRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CommitFunctionUpgradeRequest' with the minimum fields required to make a request.+newCommitFunctionUpgradeRequest ::+ CommitFunctionUpgradeRequest+newCommitFunctionUpgradeRequest = CommitFunctionUpgradeRequest++instance Core.FromJSON CommitFunctionUpgradeRequest where+ parseJSON =+ Core.withObject+ "CommitFunctionUpgradeRequest"+ (\o -> Core.pure CommitFunctionUpgradeRequest)++instance Core.ToJSON CommitFunctionUpgradeRequest where+ toJSON = Core.const Core.emptyObject++-- | Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp+--+-- /See:/ 'newDate' smart constructor.+data Date = Date+ { -- | Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn\'t significant.+ day :: (Core.Maybe Core.Int32),+ -- | Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.+ month :: (Core.Maybe Core.Int32),+ -- | Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.+ year :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Date' with the minimum fields required to make a request.+newDate ::+ Date+newDate =+ Date+ { day = Core.Nothing,+ month = Core.Nothing,+ year = Core.Nothing+ }++instance Core.FromJSON Date where+ parseJSON =+ Core.withObject+ "Date"+ ( \o ->+ Date+ Core.<$> (o Core..:? "day")+ Core.<*> (o Core..:? "month")+ Core.<*> (o Core..:? "year")+ )++instance Core.ToJSON Date where+ toJSON Date {..} =+ Core.object+ ( Core.catMaybes+ [ ("day" Core..=) Core.<$> day,+ ("month" Core..=) Core.<$> month,+ ("year" Core..=) Core.<$> year+ ]+ )++-- | Request for the @DetachFunction@ method.+--+-- /See:/ 'newDetachFunctionRequest' smart constructor.+data DetachFunctionRequest = DetachFunctionRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DetachFunctionRequest' with the minimum fields required to make a request.+newDetachFunctionRequest ::+ DetachFunctionRequest+newDetachFunctionRequest = DetachFunctionRequest++instance Core.FromJSON DetachFunctionRequest where+ parseJSON =+ Core.withObject+ "DetachFunctionRequest"+ (\o -> Core.pure DetachFunctionRequest)++instance Core.ToJSON DetachFunctionRequest where+ toJSON = Core.const Core.emptyObject++-- | Filters events based on exact matches on the CloudEvents attributes.+--+-- /See:/ 'newEventFilter' smart constructor.+data EventFilter = EventFilter+ { -- | Required. The name of a CloudEvents attribute.+ attribute :: (Core.Maybe Core.Text),+ -- | Optional. The operator used for matching the events with the value of the filter. If not specified, only events that have an exact key-value pair specified in the filter are matched. The only allowed value is @match-path-pattern@.+ operator :: (Core.Maybe Core.Text),+ -- | Required. The value for the attribute.+ value :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EventFilter' with the minimum fields required to make a request.+newEventFilter ::+ EventFilter+newEventFilter =+ EventFilter+ { attribute = Core.Nothing,+ operator = Core.Nothing,+ value = Core.Nothing+ }++instance Core.FromJSON EventFilter where+ parseJSON =+ Core.withObject+ "EventFilter"+ ( \o ->+ EventFilter+ Core.<$> (o Core..:? "attribute")+ Core.<*> (o Core..:? "operator")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON EventFilter where+ toJSON EventFilter {..} =+ Core.object+ ( Core.catMaybes+ [ ("attribute" Core..=) Core.<$> attribute,+ ("operator" Core..=) Core.<$> operator,+ ("value" Core..=) Core.<$> value+ ]+ )++-- | Describes EventTrigger, used to request events to be sent from another service.+--+-- /See:/ 'newEventTrigger' smart constructor.+data EventTrigger = EventTrigger+ { -- | Optional. The name of the channel associated with the trigger in @projects\/{project}\/locations\/{location}\/channels\/{channel}@ format. You must provide a channel to receive events from Eventarc SaaS partners.+ channel :: (Core.Maybe Core.Text),+ -- | Criteria used to filter events.+ eventFilters :: (Core.Maybe [EventFilter]),+ -- | Required. The type of event to observe. For example: @google.cloud.audit.log.v1.written@ or @google.cloud.pubsub.topic.v1.messagePublished@.+ eventType :: (Core.Maybe Core.Text),+ -- | Optional. The name of a Pub\/Sub topic in the same project that will be used as the transport topic for the event delivery. Format: @projects\/{project}\/topics\/{topic}@. This is only valid for events of type @google.cloud.pubsub.topic.v1.messagePublished@. The topic provided here will not be deleted at function deletion.+ pubsubTopic :: (Core.Maybe Core.Text),+ -- | Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).+ retryPolicy :: (Core.Maybe EventTrigger_RetryPolicy),+ -- | Optional. The hostname of the service that 1st Gen function should be observed. If no string is provided, the default service implementing the API will be used. For example, @storage.googleapis.com@ is the default for all event types in the @google.storage@ namespace. The field is only applicable to 1st Gen functions.+ service :: (Core.Maybe Core.Text),+ -- | Optional. The email of the trigger\'s service account. The service account must have permission to invoke Cloud Run services, the permission is @run.routes.invoke@. If empty, defaults to the Compute Engine default service account: @{project_number}-compute\@developer.gserviceaccount.com@.+ serviceAccountEmail :: (Core.Maybe Core.Text),+ -- | Output only. The resource name of the Eventarc trigger. The format of this field is @projects\/{project}\/locations\/{region}\/triggers\/{trigger}@.+ trigger :: (Core.Maybe Core.Text),+ -- | The region that the trigger will be in. The trigger will only receive events originating in this region. It can be the same region as the function, a different region or multi-region, or the global region. If not provided, defaults to the same region as the function.+ triggerRegion :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EventTrigger' with the minimum fields required to make a request.+newEventTrigger ::+ EventTrigger+newEventTrigger =+ EventTrigger+ { channel = Core.Nothing,+ eventFilters = Core.Nothing,+ eventType = Core.Nothing,+ pubsubTopic = Core.Nothing,+ retryPolicy = Core.Nothing,+ service = Core.Nothing,+ serviceAccountEmail = Core.Nothing,+ trigger = Core.Nothing,+ triggerRegion = Core.Nothing+ }++instance Core.FromJSON EventTrigger where+ parseJSON =+ Core.withObject+ "EventTrigger"+ ( \o ->+ EventTrigger+ Core.<$> (o Core..:? "channel")+ Core.<*> (o Core..:? "eventFilters")+ Core.<*> (o Core..:? "eventType")+ Core.<*> (o Core..:? "pubsubTopic")+ Core.<*> (o Core..:? "retryPolicy")+ Core.<*> (o Core..:? "service")+ Core.<*> (o Core..:? "serviceAccountEmail")+ Core.<*> (o Core..:? "trigger")+ Core.<*> (o Core..:? "triggerRegion")+ )++instance Core.ToJSON EventTrigger where+ toJSON EventTrigger {..} =+ Core.object+ ( Core.catMaybes+ [ ("channel" Core..=) Core.<$> channel,+ ("eventFilters" Core..=) Core.<$> eventFilters,+ ("eventType" Core..=) Core.<$> eventType,+ ("pubsubTopic" Core..=) Core.<$> pubsubTopic,+ ("retryPolicy" Core..=) Core.<$> retryPolicy,+ ("service" Core..=) Core.<$> service,+ ("serviceAccountEmail" Core..=) Core.<$> serviceAccountEmail,+ ("trigger" Core..=) Core.<$> trigger,+ ("triggerRegion" Core..=) Core.<$> triggerRegion+ ]+ )++-- | 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+ ]+ )++-- | Describes a Cloud Function that contains user computation executed in response to an event. It encapsulates function and trigger configurations.+--+-- /See:/ 'newFunction' smart constructor.+data Function = Function+ { -- | Describes the Build step of the function that builds a container from the given source.+ buildConfig :: (Core.Maybe BuildConfig),+ -- | Output only. The create timestamp of a Cloud Function. This is only applicable to 2nd Gen functions.+ createTime :: (Core.Maybe Core.DateTime),+ -- | User-provided description of a function.+ description :: (Core.Maybe Core.Text),+ -- | Describe whether the function is 1st Gen or 2nd Gen.+ environment :: (Core.Maybe Function_Environment),+ -- | An Eventarc trigger managed by Google Cloud Functions that fires events in response to a condition in another service.+ eventTrigger :: (Core.Maybe EventTrigger),+ -- | Resource name of a KMS crypto key (managed by the user) used to encrypt\/decrypt function resources. It must match the pattern @projects\/{project}\/locations\/{location}\/keyRings\/{key_ring}\/cryptoKeys\/{crypto_key}@.+ kmsKeyName :: (Core.Maybe Core.Text),+ -- | Labels associated with this Cloud Function.+ labels :: (Core.Maybe Function_Labels),+ -- | A user-defined name of the function. Function names must be unique globally and match pattern @projects\/*\/locations\/*\/functions\/*@+ name :: (Core.Maybe Core.Text),+ -- | Output only. Reserved for future use.+ satisfiesPzi :: (Core.Maybe Core.Bool),+ -- | Output only. Reserved for future use.+ satisfiesPzs :: (Core.Maybe Core.Bool),+ -- | Describes the Service being deployed. Currently deploys services to Cloud Run (fully managed).+ serviceConfig :: (Core.Maybe ServiceConfig),+ -- | Output only. State of the function.+ state :: (Core.Maybe Function_State),+ -- | Output only. State Messages for this Cloud Function.+ stateMessages :: (Core.Maybe [GoogleCloudFunctionsV2StateMessage]),+ -- | Output only. The last update timestamp of a Cloud Function.+ updateTime :: (Core.Maybe Core.DateTime),+ -- | Output only. UpgradeInfo for this Cloud Function+ upgradeInfo :: (Core.Maybe UpgradeInfo),+ -- | Output only. The deployed url for the function.+ url :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Function' with the minimum fields required to make a request.+newFunction ::+ Function+newFunction =+ Function+ { buildConfig = Core.Nothing,+ createTime = Core.Nothing,+ description = Core.Nothing,+ environment = Core.Nothing,+ eventTrigger = Core.Nothing,+ kmsKeyName = Core.Nothing,+ labels = Core.Nothing,+ name = Core.Nothing,+ satisfiesPzi = Core.Nothing,+ satisfiesPzs = Core.Nothing,+ serviceConfig = Core.Nothing,+ state = Core.Nothing,+ stateMessages = Core.Nothing,+ updateTime = Core.Nothing,+ upgradeInfo = Core.Nothing,+ url = Core.Nothing+ }++instance Core.FromJSON Function where+ parseJSON =+ Core.withObject+ "Function"+ ( \o ->+ Function+ Core.<$> (o Core..:? "buildConfig")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "environment")+ Core.<*> (o Core..:? "eventTrigger")+ Core.<*> (o Core..:? "kmsKeyName")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "satisfiesPzi")+ Core.<*> (o Core..:? "satisfiesPzs")+ Core.<*> (o Core..:? "serviceConfig")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "stateMessages")+ Core.<*> (o Core..:? "updateTime")+ Core.<*> (o Core..:? "upgradeInfo")+ Core.<*> (o Core..:? "url")+ )++instance Core.ToJSON Function where+ toJSON Function {..} =+ Core.object+ ( Core.catMaybes+ [ ("buildConfig" Core..=) Core.<$> buildConfig,+ ("createTime" Core..=) Core.<$> createTime,+ ("description" Core..=) Core.<$> description,+ ("environment" Core..=) Core.<$> environment,+ ("eventTrigger" Core..=) Core.<$> eventTrigger,+ ("kmsKeyName" Core..=) Core.<$> kmsKeyName,+ ("labels" Core..=) Core.<$> labels,+ ("name" Core..=) Core.<$> name,+ ("satisfiesPzi" Core..=) Core.<$> satisfiesPzi,+ ("satisfiesPzs" Core..=) Core.<$> satisfiesPzs,+ ("serviceConfig" Core..=) Core.<$> serviceConfig,+ ("state" Core..=) Core.<$> state,+ ("stateMessages" Core..=) Core.<$> stateMessages,+ ("updateTime" Core..=) Core.<$> updateTime,+ ("upgradeInfo" Core..=) Core.<$> upgradeInfo,+ ("url" Core..=) Core.<$> url+ ]+ )++-- | Labels associated with this Cloud Function.+--+-- /See:/ 'newFunction_Labels' smart constructor.+newtype Function_Labels = Function_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Function_Labels' with the minimum fields required to make a request.+newFunction_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Function_Labels+newFunction_Labels additional =+ Function_Labels {additional = additional}++instance Core.FromJSON Function_Labels where+ parseJSON =+ Core.withObject+ "Function_Labels"+ (\o -> Function_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Function_Labels where+ toJSON Function_Labels {..} = Core.toJSON additional++-- | Request of @GenerateDownloadUrl@ method.+--+-- /See:/ 'newGenerateDownloadUrlRequest' smart constructor.+data GenerateDownloadUrlRequest = GenerateDownloadUrlRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateDownloadUrlRequest' with the minimum fields required to make a request.+newGenerateDownloadUrlRequest ::+ GenerateDownloadUrlRequest+newGenerateDownloadUrlRequest = GenerateDownloadUrlRequest++instance Core.FromJSON GenerateDownloadUrlRequest where+ parseJSON =+ Core.withObject+ "GenerateDownloadUrlRequest"+ (\o -> Core.pure GenerateDownloadUrlRequest)++instance Core.ToJSON GenerateDownloadUrlRequest where+ toJSON = Core.const Core.emptyObject++-- | Response of @GenerateDownloadUrl@ method.+--+-- /See:/ 'newGenerateDownloadUrlResponse' smart constructor.+newtype GenerateDownloadUrlResponse = GenerateDownloadUrlResponse+ { -- | The generated Google Cloud Storage signed URL that should be used for function source code download.+ downloadUrl :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateDownloadUrlResponse' with the minimum fields required to make a request.+newGenerateDownloadUrlResponse ::+ GenerateDownloadUrlResponse+newGenerateDownloadUrlResponse =+ GenerateDownloadUrlResponse {downloadUrl = Core.Nothing}++instance Core.FromJSON GenerateDownloadUrlResponse where+ parseJSON =+ Core.withObject+ "GenerateDownloadUrlResponse"+ ( \o ->+ GenerateDownloadUrlResponse Core.<$> (o Core..:? "downloadUrl")+ )++instance Core.ToJSON GenerateDownloadUrlResponse where+ toJSON GenerateDownloadUrlResponse {..} =+ Core.object+ (Core.catMaybes [("downloadUrl" Core..=) Core.<$> downloadUrl])++-- | Request of @GenerateSourceUploadUrl@ method.+--+-- /See:/ 'newGenerateUploadUrlRequest' smart constructor.+data GenerateUploadUrlRequest = GenerateUploadUrlRequest+ { -- | The function environment the generated upload url will be used for. The upload url for 2nd Gen functions can also be used for 1st gen functions, but not vice versa. If not specified, 2nd generation-style upload URLs are generated.+ environment :: (Core.Maybe GenerateUploadUrlRequest_Environment),+ -- | Resource name of a KMS crypto key (managed by the user) used to encrypt\/decrypt function source code objects in intermediate Cloud Storage buckets. When you generate an upload url and upload your source code, it gets copied to an intermediate Cloud Storage bucket. The source code is then copied to a versioned directory in the sources bucket in the consumer project during the function deployment. It must match the pattern @projects\/{project}\/locations\/{location}\/keyRings\/{key_ring}\/cryptoKeys\/{crypto_key}@. The Google Cloud Functions service account (service-{project_number}\@gcf-admin-robot.iam.gserviceaccount.com) must be granted the role \'Cloud KMS CryptoKey Encrypter\/Decrypter (roles\/cloudkms.cryptoKeyEncrypterDecrypter)\' on the Key\/KeyRing\/Project\/Organization (least access preferred).+ kmsKeyName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateUploadUrlRequest' with the minimum fields required to make a request.+newGenerateUploadUrlRequest ::+ GenerateUploadUrlRequest+newGenerateUploadUrlRequest =+ GenerateUploadUrlRequest+ { environment = Core.Nothing,+ kmsKeyName = Core.Nothing+ }++instance Core.FromJSON GenerateUploadUrlRequest where+ parseJSON =+ Core.withObject+ "GenerateUploadUrlRequest"+ ( \o ->+ GenerateUploadUrlRequest+ Core.<$> (o Core..:? "environment")+ Core.<*> (o Core..:? "kmsKeyName")+ )++instance Core.ToJSON GenerateUploadUrlRequest where+ toJSON GenerateUploadUrlRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("environment" Core..=) Core.<$> environment,+ ("kmsKeyName" Core..=) Core.<$> kmsKeyName+ ]+ )++-- | Response of @GenerateSourceUploadUrl@ method.+--+-- /See:/ 'newGenerateUploadUrlResponse' smart constructor.+data GenerateUploadUrlResponse = GenerateUploadUrlResponse+ { -- | The location of the source code in the upload bucket. Once the archive is uploaded using the @upload_url@ use this field to set the @function.build_config.source.storage_source@ during CreateFunction and UpdateFunction. Generation defaults to 0, as Cloud Storage provides a new generation only upon uploading a new object or version of an object.+ storageSource :: (Core.Maybe StorageSource),+ -- | The generated Google Cloud Storage signed URL that should be used for a function source code upload. The uploaded file should be a zip archive which contains a function.+ uploadUrl :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateUploadUrlResponse' with the minimum fields required to make a request.+newGenerateUploadUrlResponse ::+ GenerateUploadUrlResponse+newGenerateUploadUrlResponse =+ GenerateUploadUrlResponse+ { storageSource = Core.Nothing,+ uploadUrl = Core.Nothing+ }++instance Core.FromJSON GenerateUploadUrlResponse where+ parseJSON =+ Core.withObject+ "GenerateUploadUrlResponse"+ ( \o ->+ GenerateUploadUrlResponse+ Core.<$> (o Core..:? "storageSource")+ Core.<*> (o Core..:? "uploadUrl")+ )++instance Core.ToJSON GenerateUploadUrlResponse where+ toJSON GenerateUploadUrlResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("storageSource" Core..=) Core.<$> storageSource,+ ("uploadUrl" Core..=) Core.<$> uploadUrl+ ]+ )++-- | Extra GCF specific location information.+--+-- /See:/ 'newGoogleCloudFunctionsV2LocationMetadata' smart constructor.+newtype GoogleCloudFunctionsV2LocationMetadata = GoogleCloudFunctionsV2LocationMetadata+ { -- | The Cloud Function environments this location supports.+ environments ::+ ( Core.Maybe+ [GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem]+ )+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleCloudFunctionsV2LocationMetadata' with the minimum fields required to make a request.+newGoogleCloudFunctionsV2LocationMetadata ::+ GoogleCloudFunctionsV2LocationMetadata+newGoogleCloudFunctionsV2LocationMetadata =+ GoogleCloudFunctionsV2LocationMetadata+ { environments =+ Core.Nothing+ }++instance Core.FromJSON GoogleCloudFunctionsV2LocationMetadata where+ parseJSON =+ Core.withObject+ "GoogleCloudFunctionsV2LocationMetadata"+ ( \o ->+ GoogleCloudFunctionsV2LocationMetadata+ Core.<$> (o Core..:? "environments")+ )++instance Core.ToJSON GoogleCloudFunctionsV2LocationMetadata where+ toJSON GoogleCloudFunctionsV2LocationMetadata {..} =+ Core.object+ (Core.catMaybes [("environments" Core..=) Core.<$> environments])++-- | Represents the metadata of the long-running operation.+--+-- /See:/ 'newGoogleCloudFunctionsV2OperationMetadata' smart constructor.+data GoogleCloudFunctionsV2OperationMetadata = GoogleCloudFunctionsV2OperationMetadata+ { -- | API version used to start the operation.+ apiVersion :: (Core.Maybe Core.Text),+ -- | The build name of the function for create and update operations.+ buildName :: (Core.Maybe Core.Text),+ -- | Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have google.longrunning.Operation.error value with a google.rpc.Status.code of 1, corresponding to @Code.CANCELLED@.+ cancelRequested :: (Core.Maybe Core.Bool),+ -- | The time the operation was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. Whether a custom IAM role binding was detected during the upgrade.+ customIamRoleDetected :: (Core.Maybe Core.Bool),+ -- | The time the operation finished running.+ endTime :: (Core.Maybe Core.DateTime),+ -- | The operation type.+ operationType :: (Core.Maybe GoogleCloudFunctionsV2OperationMetadata_OperationType),+ -- | The original request that started the operation.+ requestResource ::+ ( Core.Maybe+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+ ),+ -- | An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.+ sourceToken :: (Core.Maybe Core.Text),+ -- | Mechanism for reporting in-progress stages+ stages :: (Core.Maybe [GoogleCloudFunctionsV2Stage]),+ -- | Human-readable status of the operation, if any.+ statusDetail :: (Core.Maybe Core.Text),+ -- | Server-defined resource path for the target of the operation.+ target :: (Core.Maybe Core.Text),+ -- | Name of the verb executed by the operation.+ verb :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleCloudFunctionsV2OperationMetadata' with the minimum fields required to make a request.+newGoogleCloudFunctionsV2OperationMetadata ::+ GoogleCloudFunctionsV2OperationMetadata+newGoogleCloudFunctionsV2OperationMetadata =+ GoogleCloudFunctionsV2OperationMetadata+ { apiVersion =+ Core.Nothing,+ buildName = Core.Nothing,+ cancelRequested = Core.Nothing,+ createTime = Core.Nothing,+ customIamRoleDetected = Core.Nothing,+ endTime = Core.Nothing,+ operationType = Core.Nothing,+ requestResource = Core.Nothing,+ sourceToken = Core.Nothing,+ stages = Core.Nothing,+ statusDetail = Core.Nothing,+ target = Core.Nothing,+ verb = Core.Nothing+ }++instance Core.FromJSON GoogleCloudFunctionsV2OperationMetadata where+ parseJSON =+ Core.withObject+ "GoogleCloudFunctionsV2OperationMetadata"+ ( \o ->+ GoogleCloudFunctionsV2OperationMetadata+ Core.<$> (o Core..:? "apiVersion")+ Core.<*> (o Core..:? "buildName")+ Core.<*> (o Core..:? "cancelRequested")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "customIamRoleDetected")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "operationType")+ Core.<*> (o Core..:? "requestResource")+ Core.<*> (o Core..:? "sourceToken")+ Core.<*> (o Core..:? "stages")+ Core.<*> (o Core..:? "statusDetail")+ Core.<*> (o Core..:? "target")+ Core.<*> (o Core..:? "verb")+ )++instance Core.ToJSON GoogleCloudFunctionsV2OperationMetadata where+ toJSON GoogleCloudFunctionsV2OperationMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiVersion" Core..=) Core.<$> apiVersion,+ ("buildName" Core..=) Core.<$> buildName,+ ("cancelRequested" Core..=) Core.<$> cancelRequested,+ ("createTime" Core..=) Core.<$> createTime,+ ("customIamRoleDetected" Core..=) Core.<$> customIamRoleDetected,+ ("endTime" Core..=) Core.<$> endTime,+ ("operationType" Core..=) Core.<$> operationType,+ ("requestResource" Core..=) Core.<$> requestResource,+ ("sourceToken" Core..=) Core.<$> sourceToken,+ ("stages" Core..=) Core.<$> stages,+ ("statusDetail" Core..=) Core.<$> statusDetail,+ ("target" Core..=) Core.<$> target,+ ("verb" Core..=) Core.<$> verb+ ]+ )++-- | The original request that started the operation.+--+-- /See:/ 'newGoogleCloudFunctionsV2OperationMetadata_RequestResource' smart constructor.+newtype GoogleCloudFunctionsV2OperationMetadata_RequestResource = GoogleCloudFunctionsV2OperationMetadata_RequestResource+ { -- | 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 'GoogleCloudFunctionsV2OperationMetadata_RequestResource' with the minimum fields required to make a request.+newGoogleCloudFunctionsV2OperationMetadata_RequestResource ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+newGoogleCloudFunctionsV2OperationMetadata_RequestResource+ additional =+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+ { additional =+ additional+ }++instance+ Core.FromJSON+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+ where+ parseJSON =+ Core.withObject+ "GoogleCloudFunctionsV2OperationMetadata_RequestResource"+ ( \o ->+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+ Core.<$> (Core.parseJSONObject o)+ )++instance+ Core.ToJSON+ GoogleCloudFunctionsV2OperationMetadata_RequestResource+ where+ toJSON GoogleCloudFunctionsV2OperationMetadata_RequestResource {..} =+ Core.toJSON additional++-- | Each Stage of the deployment process+--+-- /See:/ 'newGoogleCloudFunctionsV2Stage' smart constructor.+data GoogleCloudFunctionsV2Stage = GoogleCloudFunctionsV2Stage+ { -- | Message describing the Stage+ message :: (Core.Maybe Core.Text),+ -- | Name of the Stage. This will be unique for each Stage.+ name :: (Core.Maybe GoogleCloudFunctionsV2Stage_Name),+ -- | Resource of the Stage+ resource :: (Core.Maybe Core.Text),+ -- | Link to the current Stage resource+ resourceUri :: (Core.Maybe Core.Text),+ -- | Current state of the Stage+ state :: (Core.Maybe GoogleCloudFunctionsV2Stage_State),+ -- | State messages from the current Stage.+ stateMessages :: (Core.Maybe [GoogleCloudFunctionsV2StateMessage])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleCloudFunctionsV2Stage' with the minimum fields required to make a request.+newGoogleCloudFunctionsV2Stage ::+ GoogleCloudFunctionsV2Stage+newGoogleCloudFunctionsV2Stage =+ GoogleCloudFunctionsV2Stage+ { message = Core.Nothing,+ name = Core.Nothing,+ resource = Core.Nothing,+ resourceUri = Core.Nothing,+ state = Core.Nothing,+ stateMessages = Core.Nothing+ }++instance Core.FromJSON GoogleCloudFunctionsV2Stage where+ parseJSON =+ Core.withObject+ "GoogleCloudFunctionsV2Stage"+ ( \o ->+ GoogleCloudFunctionsV2Stage+ Core.<$> (o Core..:? "message")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "resource")+ Core.<*> (o Core..:? "resourceUri")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "stateMessages")+ )++instance Core.ToJSON GoogleCloudFunctionsV2Stage where+ toJSON GoogleCloudFunctionsV2Stage {..} =+ Core.object+ ( Core.catMaybes+ [ ("message" Core..=) Core.<$> message,+ ("name" Core..=) Core.<$> name,+ ("resource" Core..=) Core.<$> resource,+ ("resourceUri" Core..=) Core.<$> resourceUri,+ ("state" Core..=) Core.<$> state,+ ("stateMessages" Core..=) Core.<$> stateMessages+ ]+ )++-- | Informational messages about the state of the Cloud Function or Operation.+--+-- /See:/ 'newGoogleCloudFunctionsV2StateMessage' smart constructor.+data GoogleCloudFunctionsV2StateMessage = GoogleCloudFunctionsV2StateMessage+ { -- | The message.+ message :: (Core.Maybe Core.Text),+ -- | Severity of the state message.+ severity :: (Core.Maybe GoogleCloudFunctionsV2StateMessage_Severity),+ -- | One-word CamelCase type of the state message.+ type' :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleCloudFunctionsV2StateMessage' with the minimum fields required to make a request.+newGoogleCloudFunctionsV2StateMessage ::+ GoogleCloudFunctionsV2StateMessage+newGoogleCloudFunctionsV2StateMessage =+ GoogleCloudFunctionsV2StateMessage+ { message = Core.Nothing,+ severity = Core.Nothing,+ type' = Core.Nothing+ }++instance Core.FromJSON GoogleCloudFunctionsV2StateMessage where+ parseJSON =+ Core.withObject+ "GoogleCloudFunctionsV2StateMessage"+ ( \o ->+ GoogleCloudFunctionsV2StateMessage+ Core.<$> (o Core..:? "message")+ Core.<*> (o Core..:? "severity")+ Core.<*> (o Core..:? "type")+ )++instance Core.ToJSON GoogleCloudFunctionsV2StateMessage where+ toJSON GoogleCloudFunctionsV2StateMessage {..} =+ Core.object+ ( Core.catMaybes+ [ ("message" Core..=) Core.<$> message,+ ("severity" Core..=) Core.<$> severity,+ ("type" Core..=) Core.<$> type'+ ]+ )++-- | Response for the @ListFunctions@ method.+--+-- /See:/ 'newListFunctionsResponse' smart constructor.+data ListFunctionsResponse = ListFunctionsResponse+ { -- | The functions that match the request.+ functions :: (Core.Maybe [Function]),+ -- | A token, which can be sent as @page_token@ to retrieve the next page. If this field is omitted, there are no subsequent pages.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | Locations that could not be reached. The response does not include any functions from these locations.+ unreachable :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListFunctionsResponse' with the minimum fields required to make a request.+newListFunctionsResponse ::+ ListFunctionsResponse+newListFunctionsResponse =+ ListFunctionsResponse+ { functions = Core.Nothing,+ nextPageToken = Core.Nothing,+ unreachable = Core.Nothing+ }++instance Core.FromJSON ListFunctionsResponse where+ parseJSON =+ Core.withObject+ "ListFunctionsResponse"+ ( \o ->+ ListFunctionsResponse+ Core.<$> (o Core..:? "functions")+ Core.<*> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "unreachable")+ )++instance Core.ToJSON ListFunctionsResponse where+ toJSON ListFunctionsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("functions" Core..=) Core.<$> functions,+ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("unreachable" Core..=) Core.<$> unreachable+ ]+ )++-- | 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+ ]+ )++-- | The response message for Operations.ListOperations.+--+-- /See:/ 'newListOperationsResponse' smart constructor.+data ListOperationsResponse = ListOperationsResponse+ { -- | The standard List next-page token.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | A list of operations that matches the specified filter in the request.+ operations :: (Core.Maybe [Operation])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListOperationsResponse' with the minimum fields required to make a request.+newListOperationsResponse ::+ ListOperationsResponse+newListOperationsResponse =+ ListOperationsResponse+ { nextPageToken = Core.Nothing,+ operations = Core.Nothing+ }++instance Core.FromJSON ListOperationsResponse where+ parseJSON =+ Core.withObject+ "ListOperationsResponse"+ ( \o ->+ ListOperationsResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "operations")+ )++instance Core.ToJSON ListOperationsResponse where+ toJSON ListOperationsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("operations" Core..=) Core.<$> operations+ ]+ )++-- | Response for the @ListRuntimes@ method.+--+-- /See:/ 'newListRuntimesResponse' smart constructor.+newtype ListRuntimesResponse = ListRuntimesResponse+ { -- | The runtimes that match the request.+ runtimes :: (Core.Maybe [Runtime])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListRuntimesResponse' with the minimum fields required to make a request.+newListRuntimesResponse ::+ ListRuntimesResponse+newListRuntimesResponse =+ ListRuntimesResponse {runtimes = Core.Nothing}++instance Core.FromJSON ListRuntimesResponse where+ parseJSON =+ Core.withObject+ "ListRuntimesResponse"+ (\o -> ListRuntimesResponse Core.<$> (o Core..:? "runtimes"))++instance Core.ToJSON ListRuntimesResponse where+ toJSON ListRuntimesResponse {..} =+ Core.object+ (Core.catMaybes [("runtimes" Core..=) Core.<$> runtimes])++-- | 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++-- | Security patches are only applied when a function is redeployed.+--+-- /See:/ 'newOnDeployUpdatePolicy' smart constructor.+newtype OnDeployUpdatePolicy = OnDeployUpdatePolicy+ { -- | Output only. contains the runtime version which was used during latest function deployment.+ runtimeVersion :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OnDeployUpdatePolicy' with the minimum fields required to make a request.+newOnDeployUpdatePolicy ::+ OnDeployUpdatePolicy+newOnDeployUpdatePolicy =+ OnDeployUpdatePolicy {runtimeVersion = Core.Nothing}++instance Core.FromJSON OnDeployUpdatePolicy where+ parseJSON =+ Core.withObject+ "OnDeployUpdatePolicy"+ ( \o ->+ OnDeployUpdatePolicy Core.<$> (o Core..:? "runtimeVersion")+ )++instance Core.ToJSON OnDeployUpdatePolicy where+ toJSON OnDeployUpdatePolicy {..} =+ Core.object+ ( Core.catMaybes+ [("runtimeVersion" Core..=) Core.<$> runtimeVersion]+ )++-- | 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++-- | Metadata describing an Operation+--+-- /See:/ 'newOperationMetadataV1' smart constructor.+data OperationMetadataV1 = OperationMetadataV1+ { -- | The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations.+ buildId :: (Core.Maybe Core.Text),+ -- | The Cloud Build Name of the function deployment. This field is only populated for Create and Update operations. @projects\/\/locations\/\/builds\/@.+ buildName :: (Core.Maybe Core.Text),+ -- | The original request that started the operation.+ request' :: (Core.Maybe OperationMetadataV1_Request),+ -- | An identifier for Firebase function sources. Disclaimer: This field is only supported for Firebase function deployments.+ sourceToken :: (Core.Maybe Core.Text),+ -- | Target of the operation - for example @projects\/project-1\/locations\/region-1\/functions\/function-1@+ target :: (Core.Maybe Core.Text),+ -- | Type of operation.+ type' :: (Core.Maybe OperationMetadataV1_Type),+ -- | The last update timestamp of the operation.+ updateTime :: (Core.Maybe Core.DateTime),+ -- | Version id of the function created or updated by an API call. This field is only populated for Create and Update operations.+ versionId :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OperationMetadataV1' with the minimum fields required to make a request.+newOperationMetadataV1 ::+ OperationMetadataV1+newOperationMetadataV1 =+ OperationMetadataV1+ { buildId = Core.Nothing,+ buildName = Core.Nothing,+ request' = Core.Nothing,+ sourceToken = Core.Nothing,+ target = Core.Nothing,+ type' = Core.Nothing,+ updateTime = Core.Nothing,+ versionId = Core.Nothing+ }++instance Core.FromJSON OperationMetadataV1 where+ parseJSON =+ Core.withObject+ "OperationMetadataV1"+ ( \o ->+ OperationMetadataV1+ Core.<$> (o Core..:? "buildId")+ Core.<*> (o Core..:? "buildName")+ Core.<*> (o Core..:? "request")+ Core.<*> (o Core..:? "sourceToken")+ Core.<*> (o Core..:? "target")+ Core.<*> (o Core..:? "type")+ Core.<*> (o Core..:? "updateTime")+ Core.<*> (o Core..:? "versionId" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON OperationMetadataV1 where+ toJSON OperationMetadataV1 {..} =+ Core.object+ ( Core.catMaybes+ [ ("buildId" Core..=) Core.<$> buildId,+ ("buildName" Core..=) Core.<$> buildName,+ ("request" Core..=) Core.<$> request',+ ("sourceToken" Core..=) Core.<$> sourceToken,+ ("target" Core..=) Core.<$> target,+ ("type" Core..=) Core.<$> type',+ ("updateTime" Core..=) Core.<$> updateTime,+ ("versionId" Core..=) Core.. Core.AsText Core.<$> versionId+ ]+ )++-- | The original request that started the operation.+--+-- /See:/ 'newOperationMetadataV1_Request' smart constructor.+newtype OperationMetadataV1_Request = OperationMetadataV1_Request+ { -- | 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 'OperationMetadataV1_Request' with the minimum fields required to make a request.+newOperationMetadataV1_Request ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ OperationMetadataV1_Request+newOperationMetadataV1_Request additional =+ OperationMetadataV1_Request {additional = additional}++instance Core.FromJSON OperationMetadataV1_Request where+ parseJSON =+ Core.withObject+ "OperationMetadataV1_Request"+ ( \o ->+ OperationMetadataV1_Request Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON OperationMetadataV1_Request where+ toJSON OperationMetadataV1_Request {..} = 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+ ]+ )++-- | Request for the @RedirectFunctionUpgradeTraffic@ method.+--+-- /See:/ 'newRedirectFunctionUpgradeTrafficRequest' smart constructor.+data RedirectFunctionUpgradeTrafficRequest = RedirectFunctionUpgradeTrafficRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RedirectFunctionUpgradeTrafficRequest' with the minimum fields required to make a request.+newRedirectFunctionUpgradeTrafficRequest ::+ RedirectFunctionUpgradeTrafficRequest+newRedirectFunctionUpgradeTrafficRequest =+ RedirectFunctionUpgradeTrafficRequest++instance Core.FromJSON RedirectFunctionUpgradeTrafficRequest where+ parseJSON =+ Core.withObject+ "RedirectFunctionUpgradeTrafficRequest"+ (\o -> Core.pure RedirectFunctionUpgradeTrafficRequest)++instance Core.ToJSON RedirectFunctionUpgradeTrafficRequest where+ toJSON = Core.const Core.emptyObject++-- | Location of the source in a Google Cloud Source Repository.+--+-- /See:/ 'newRepoSource' smart constructor.+data RepoSource = RepoSource+ { -- | Regex matching branches to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https:\/\/github.com\/google\/re2\/wiki\/Syntax+ branchName :: (Core.Maybe Core.Text),+ -- | Explicit commit SHA to build.+ commitSha :: (Core.Maybe Core.Text),+ -- | Directory, relative to the source root, in which to run the build. This must be a relative path. If a step\'s @dir@ is specified and is an absolute path, this value is ignored for that step\'s execution. eg. helloworld (no leading slash allowed)+ dir :: (Core.Maybe Core.Text),+ -- | ID of the project that owns the Cloud Source Repository. If omitted, the project ID requesting the build is assumed.+ projectId :: (Core.Maybe Core.Text),+ -- | Name of the Cloud Source Repository.+ repoName :: (Core.Maybe Core.Text),+ -- | Regex matching tags to build. The syntax of the regular expressions accepted is the syntax accepted by RE2 and described at https:\/\/github.com\/google\/re2\/wiki\/Syntax+ tagName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RepoSource' with the minimum fields required to make a request.+newRepoSource ::+ RepoSource+newRepoSource =+ RepoSource+ { branchName = Core.Nothing,+ commitSha = Core.Nothing,+ dir = Core.Nothing,+ projectId = Core.Nothing,+ repoName = Core.Nothing,+ tagName = Core.Nothing+ }++instance Core.FromJSON RepoSource where+ parseJSON =+ Core.withObject+ "RepoSource"+ ( \o ->+ RepoSource+ Core.<$> (o Core..:? "branchName")+ Core.<*> (o Core..:? "commitSha")+ Core.<*> (o Core..:? "dir")+ Core.<*> (o Core..:? "projectId")+ Core.<*> (o Core..:? "repoName")+ Core.<*> (o Core..:? "tagName")+ )++instance Core.ToJSON RepoSource where+ toJSON RepoSource {..} =+ Core.object+ ( Core.catMaybes+ [ ("branchName" Core..=) Core.<$> branchName,+ ("commitSha" Core..=) Core.<$> commitSha,+ ("dir" Core..=) Core.<$> dir,+ ("projectId" Core..=) Core.<$> projectId,+ ("repoName" Core..=) Core.<$> repoName,+ ("tagName" Core..=) Core.<$> tagName+ ]+ )++-- | Request for the @RollbackFunctionUpgradeTraffic@ method.+--+-- /See:/ 'newRollbackFunctionUpgradeTrafficRequest' smart constructor.+data RollbackFunctionUpgradeTrafficRequest = RollbackFunctionUpgradeTrafficRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RollbackFunctionUpgradeTrafficRequest' with the minimum fields required to make a request.+newRollbackFunctionUpgradeTrafficRequest ::+ RollbackFunctionUpgradeTrafficRequest+newRollbackFunctionUpgradeTrafficRequest =+ RollbackFunctionUpgradeTrafficRequest++instance Core.FromJSON RollbackFunctionUpgradeTrafficRequest where+ parseJSON =+ Core.withObject+ "RollbackFunctionUpgradeTrafficRequest"+ (\o -> Core.pure RollbackFunctionUpgradeTrafficRequest)++instance Core.ToJSON RollbackFunctionUpgradeTrafficRequest where+ toJSON = Core.const Core.emptyObject++-- | Describes a runtime and any special information (e.g., deprecation status) related to it.+--+-- /See:/ 'newRuntime' smart constructor.+data Runtime = Runtime+ { -- | Decommission date for the runtime.+ decommissionDate :: (Core.Maybe Date),+ -- | Deprecation date for the runtime.+ deprecationDate :: (Core.Maybe Date),+ -- | The user facing name, eg \'Go 1.13\', \'Node.js 12\', etc.+ displayName :: (Core.Maybe Core.Text),+ -- | The environment for the runtime.+ environment :: (Core.Maybe Runtime_Environment),+ -- | The name of the runtime, e.g., \'go113\', \'nodejs12\', etc.+ name :: (Core.Maybe Core.Text),+ -- | The stage of life this runtime is in, e.g., BETA, GA, etc.+ stage :: (Core.Maybe Runtime_Stage),+ -- | Warning messages, e.g., a deprecation warning.+ warnings :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Runtime' with the minimum fields required to make a request.+newRuntime ::+ Runtime+newRuntime =+ Runtime+ { decommissionDate = Core.Nothing,+ deprecationDate = Core.Nothing,+ displayName = Core.Nothing,+ environment = Core.Nothing,+ name = Core.Nothing,+ stage = Core.Nothing,+ warnings = Core.Nothing+ }++instance Core.FromJSON Runtime where+ parseJSON =+ Core.withObject+ "Runtime"+ ( \o ->+ Runtime+ Core.<$> (o Core..:? "decommissionDate")+ Core.<*> (o Core..:? "deprecationDate")+ Core.<*> (o Core..:? "displayName")+ Core.<*> (o Core..:? "environment")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "stage")+ Core.<*> (o Core..:? "warnings")+ )++instance Core.ToJSON Runtime where+ toJSON Runtime {..} =+ Core.object+ ( Core.catMaybes+ [ ("decommissionDate" Core..=) Core.<$> decommissionDate,+ ("deprecationDate" Core..=) Core.<$> deprecationDate,+ ("displayName" Core..=) Core.<$> displayName,+ ("environment" Core..=) Core.<$> environment,+ ("name" Core..=) Core.<$> name,+ ("stage" Core..=) Core.<$> stage,+ ("warnings" Core..=) Core.<$> warnings+ ]+ )++-- | Configuration for a secret environment variable. It has the information necessary to fetch the secret value from secret manager and expose it as an environment variable.+--+-- /See:/ 'newSecretEnvVar' smart constructor.+data SecretEnvVar = SecretEnvVar+ { -- | Name of the environment variable.+ key :: (Core.Maybe Core.Text),+ -- | Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.+ projectId :: (Core.Maybe Core.Text),+ -- | Name of the secret in secret manager (not the full resource name).+ secret :: (Core.Maybe Core.Text),+ -- | Version of the secret (version number or the string \'latest\'). It is recommended to use a numeric version for secret environment variables as any updates to the secret value is not reflected until new instances start.+ version :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SecretEnvVar' with the minimum fields required to make a request.+newSecretEnvVar ::+ SecretEnvVar+newSecretEnvVar =+ SecretEnvVar+ { key = Core.Nothing,+ projectId = Core.Nothing,+ secret = Core.Nothing,+ version = Core.Nothing+ }++instance Core.FromJSON SecretEnvVar where+ parseJSON =+ Core.withObject+ "SecretEnvVar"+ ( \o ->+ SecretEnvVar+ Core.<$> (o Core..:? "key")+ Core.<*> (o Core..:? "projectId")+ Core.<*> (o Core..:? "secret")+ Core.<*> (o Core..:? "version")+ )++instance Core.ToJSON SecretEnvVar where+ toJSON SecretEnvVar {..} =+ Core.object+ ( Core.catMaybes+ [ ("key" Core..=) Core.<$> key,+ ("projectId" Core..=) Core.<$> projectId,+ ("secret" Core..=) Core.<$> secret,+ ("version" Core..=) Core.<$> version+ ]+ )++-- | Configuration for a single version.+--+-- /See:/ 'newSecretVersion' smart constructor.+data SecretVersion = SecretVersion+ { -- | Relative path of the file under the mount path where the secret value for this version will be fetched and made available. For example, setting the mount_path as \'\/etc\/secrets\' and path as @secret_foo@ would mount the secret value file at @\/etc\/secrets\/secret_foo@.+ path :: (Core.Maybe Core.Text),+ -- | Version of the secret (version number or the string \'latest\'). It is preferable to use @latest@ version with secret volumes as secret value changes are reflected immediately.+ version :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SecretVersion' with the minimum fields required to make a request.+newSecretVersion ::+ SecretVersion+newSecretVersion =+ SecretVersion {path = Core.Nothing, version = Core.Nothing}++instance Core.FromJSON SecretVersion where+ parseJSON =+ Core.withObject+ "SecretVersion"+ ( \o ->+ SecretVersion+ Core.<$> (o Core..:? "path")+ Core.<*> (o Core..:? "version")+ )++instance Core.ToJSON SecretVersion where+ toJSON SecretVersion {..} =+ Core.object+ ( Core.catMaybes+ [ ("path" Core..=) Core.<$> path,+ ("version" Core..=) Core.<$> version+ ]+ )++-- | Configuration for a secret volume. It has the information necessary to fetch the secret value from secret manager and make it available as files mounted at the requested paths within the application container.+--+-- /See:/ 'newSecretVolume' smart constructor.+data SecretVolume = SecretVolume+ { -- | The path within the container to mount the secret volume. For example, setting the mount_path as @\/etc\/secrets@ would mount the secret value files under the @\/etc\/secrets@ directory. This directory will also be completely shadowed and unavailable to mount any other secrets. Recommended mount path: \/etc\/secrets+ mountPath :: (Core.Maybe Core.Text),+ -- | Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it is assumed that the secret is in the same project as the function.+ projectId :: (Core.Maybe Core.Text),+ -- | Name of the secret in secret manager (not the full resource name).+ secret :: (Core.Maybe Core.Text),+ -- | List of secret versions to mount for this secret. If empty, the @latest@ version of the secret will be made available in a file named after the secret under the mount point.+ versions :: (Core.Maybe [SecretVersion])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SecretVolume' with the minimum fields required to make a request.+newSecretVolume ::+ SecretVolume+newSecretVolume =+ SecretVolume+ { mountPath = Core.Nothing,+ projectId = Core.Nothing,+ secret = Core.Nothing,+ versions = Core.Nothing+ }++instance Core.FromJSON SecretVolume where+ parseJSON =+ Core.withObject+ "SecretVolume"+ ( \o ->+ SecretVolume+ Core.<$> (o Core..:? "mountPath")+ Core.<*> (o Core..:? "projectId")+ Core.<*> (o Core..:? "secret")+ Core.<*> (o Core..:? "versions")+ )++instance Core.ToJSON SecretVolume where+ toJSON SecretVolume {..} =+ Core.object+ ( Core.catMaybes+ [ ("mountPath" Core..=) Core.<$> mountPath,+ ("projectId" Core..=) Core.<$> projectId,+ ("secret" Core..=) Core.<$> secret,+ ("versions" Core..=) Core.<$> versions+ ]+ )++-- | Describes the Service being deployed. Currently Supported : Cloud Run (fully managed).+--+-- /See:/ 'newServiceConfig' smart constructor.+data ServiceConfig = ServiceConfig+ { -- | Whether 100% of traffic is routed to the latest revision. On CreateFunction and UpdateFunction, when set to true, the revision being deployed will serve 100% of traffic, ignoring any traffic split settings, if any. On GetFunction, true will be returned if the latest revision is serving 100% of traffic.+ allTrafficOnLatestRevision :: (Core.Maybe Core.Bool),+ -- | The number of CPUs used in a single container instance. Default value is calculated from available memory. Supports the same values as Cloud Run, see https:\/\/cloud.google.com\/run\/docs\/reference\/rest\/v1\/Container#resourcerequirements Example: \"1\" indicates 1 vCPU+ availableCpu :: (Core.Maybe Core.Text),+ -- | The amount of memory available for a function. Defaults to 256M. Supported units are k, M, G, Mi, Gi. If no unit is supplied the value is interpreted as bytes. See https:\/\/github.com\/kubernetes\/kubernetes\/blob\/master\/staging\/src\/k8s.io\/apimachinery\/pkg\/api\/resource\/quantity.go a full description.+ availableMemory :: (Core.Maybe Core.Text),+ -- | Optional. The binary authorization policy to be checked when deploying the Cloud Run service.+ binaryAuthorizationPolicy :: (Core.Maybe Core.Text),+ -- | Environment variables that shall be available during function execution.+ environmentVariables :: (Core.Maybe ServiceConfig_EnvironmentVariables),+ -- | The ingress settings for the function, controlling what traffic can reach it.+ ingressSettings :: (Core.Maybe ServiceConfig_IngressSettings),+ -- | The limit on the maximum number of function instances that may coexist at a given time. In some cases, such as rapid traffic surges, Cloud Functions may, for a short period of time, create more instances than the specified max instances limit. If your function cannot tolerate this temporary behavior, you may want to factor in a safety margin and set a lower max instances value than your function can tolerate. See the <https://cloud.google.com/functions/docs/max-instances Max Instances> Guide for more details.+ maxInstanceCount :: (Core.Maybe Core.Int32),+ -- | Sets the maximum number of concurrent requests that each instance can receive. Defaults to 1.+ maxInstanceRequestConcurrency :: (Core.Maybe Core.Int32),+ -- | The limit on the minimum number of function instances that may coexist at a given time. Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.+ minInstanceCount :: (Core.Maybe Core.Int32),+ -- | Output only. The name of service revision.+ revision :: (Core.Maybe Core.Text),+ -- | Secret environment variables configuration.+ secretEnvironmentVariables :: (Core.Maybe [SecretEnvVar]),+ -- | Secret volumes configuration.+ secretVolumes :: (Core.Maybe [SecretVolume]),+ -- | Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.+ securityLevel :: (Core.Maybe ServiceConfig_SecurityLevel),+ -- | Output only. Name of the service associated with a Function. The format of this field is @projects\/{project}\/locations\/{region}\/services\/{service}@+ service :: (Core.Maybe Core.Text),+ -- | The email of the service\'s service account. If empty, defaults to @{project_number}-compute\@developer.gserviceaccount.com@.+ serviceAccountEmail :: (Core.Maybe Core.Text),+ -- | The function execution timeout. Execution is considered failed and can be terminated if the function is not completed at the end of the timeout period. Defaults to 60 seconds.+ timeoutSeconds :: (Core.Maybe Core.Int32),+ -- | Output only. URI of the Service deployed.+ uri :: (Core.Maybe Core.Text),+ -- | The Serverless VPC Access connector that this cloud function can connect to. The format of this field is @projects\/*\/locations\/*\/connectors\/*@.+ vpcConnector :: (Core.Maybe Core.Text),+ -- | The egress settings for the connector, controlling what traffic is diverted through it.+ vpcConnectorEgressSettings :: (Core.Maybe ServiceConfig_VpcConnectorEgressSettings)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceConfig' with the minimum fields required to make a request.+newServiceConfig ::+ ServiceConfig+newServiceConfig =+ ServiceConfig+ { allTrafficOnLatestRevision = Core.Nothing,+ availableCpu = Core.Nothing,+ availableMemory = Core.Nothing,+ binaryAuthorizationPolicy = Core.Nothing,+ environmentVariables = Core.Nothing,+ ingressSettings = Core.Nothing,+ maxInstanceCount = Core.Nothing,+ maxInstanceRequestConcurrency = Core.Nothing,+ minInstanceCount = Core.Nothing,+ revision = Core.Nothing,+ secretEnvironmentVariables = Core.Nothing,+ secretVolumes = Core.Nothing,+ securityLevel = Core.Nothing,+ service = Core.Nothing,+ serviceAccountEmail = Core.Nothing,+ timeoutSeconds = Core.Nothing,+ uri = Core.Nothing,+ vpcConnector = Core.Nothing,+ vpcConnectorEgressSettings = Core.Nothing+ }++instance Core.FromJSON ServiceConfig where+ parseJSON =+ Core.withObject+ "ServiceConfig"+ ( \o ->+ ServiceConfig+ Core.<$> (o Core..:? "allTrafficOnLatestRevision")+ Core.<*> (o Core..:? "availableCpu")+ Core.<*> (o Core..:? "availableMemory")+ Core.<*> (o Core..:? "binaryAuthorizationPolicy")+ Core.<*> (o Core..:? "environmentVariables")+ Core.<*> (o Core..:? "ingressSettings")+ Core.<*> (o Core..:? "maxInstanceCount")+ Core.<*> (o Core..:? "maxInstanceRequestConcurrency")+ Core.<*> (o Core..:? "minInstanceCount")+ Core.<*> (o Core..:? "revision")+ Core.<*> (o Core..:? "secretEnvironmentVariables")+ Core.<*> (o Core..:? "secretVolumes")+ Core.<*> (o Core..:? "securityLevel")+ Core.<*> (o Core..:? "service")+ Core.<*> (o Core..:? "serviceAccountEmail")+ Core.<*> (o Core..:? "timeoutSeconds")+ Core.<*> (o Core..:? "uri")+ Core.<*> (o Core..:? "vpcConnector")+ Core.<*> (o Core..:? "vpcConnectorEgressSettings")+ )++instance Core.ToJSON ServiceConfig where+ toJSON ServiceConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("allTrafficOnLatestRevision" Core..=)+ Core.<$> allTrafficOnLatestRevision,+ ("availableCpu" Core..=) Core.<$> availableCpu,+ ("availableMemory" Core..=) Core.<$> availableMemory,+ ("binaryAuthorizationPolicy" Core..=)+ Core.<$> binaryAuthorizationPolicy,+ ("environmentVariables" Core..=) Core.<$> environmentVariables,+ ("ingressSettings" Core..=) Core.<$> ingressSettings,+ ("maxInstanceCount" Core..=) Core.<$> maxInstanceCount,+ ("maxInstanceRequestConcurrency" Core..=)+ Core.<$> maxInstanceRequestConcurrency,+ ("minInstanceCount" Core..=) Core.<$> minInstanceCount,+ ("revision" Core..=) Core.<$> revision,+ ("secretEnvironmentVariables" Core..=)+ Core.<$> secretEnvironmentVariables,+ ("secretVolumes" Core..=) Core.<$> secretVolumes,+ ("securityLevel" Core..=) Core.<$> securityLevel,+ ("service" Core..=) Core.<$> service,+ ("serviceAccountEmail" Core..=) Core.<$> serviceAccountEmail,+ ("timeoutSeconds" Core..=) Core.<$> timeoutSeconds,+ ("uri" Core..=) Core.<$> uri,+ ("vpcConnector" Core..=) Core.<$> vpcConnector,+ ("vpcConnectorEgressSettings" Core..=)+ Core.<$> vpcConnectorEgressSettings+ ]+ )++-- | Environment variables that shall be available during function execution.+--+-- /See:/ 'newServiceConfig_EnvironmentVariables' smart constructor.+newtype ServiceConfig_EnvironmentVariables = ServiceConfig_EnvironmentVariables+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceConfig_EnvironmentVariables' with the minimum fields required to make a request.+newServiceConfig_EnvironmentVariables ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ ServiceConfig_EnvironmentVariables+newServiceConfig_EnvironmentVariables additional =+ ServiceConfig_EnvironmentVariables {additional = additional}++instance Core.FromJSON ServiceConfig_EnvironmentVariables where+ parseJSON =+ Core.withObject+ "ServiceConfig_EnvironmentVariables"+ ( \o ->+ ServiceConfig_EnvironmentVariables+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON ServiceConfig_EnvironmentVariables where+ toJSON ServiceConfig_EnvironmentVariables {..} =+ Core.toJSON additional++-- | 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+ ]+ )++-- | Request for the @SetupFunctionUpgradeConfig@ method.+--+-- /See:/ 'newSetupFunctionUpgradeConfigRequest' smart constructor.+data SetupFunctionUpgradeConfigRequest = SetupFunctionUpgradeConfigRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SetupFunctionUpgradeConfigRequest' with the minimum fields required to make a request.+newSetupFunctionUpgradeConfigRequest ::+ SetupFunctionUpgradeConfigRequest+newSetupFunctionUpgradeConfigRequest =+ SetupFunctionUpgradeConfigRequest++instance Core.FromJSON SetupFunctionUpgradeConfigRequest where+ parseJSON =+ Core.withObject+ "SetupFunctionUpgradeConfigRequest"+ (\o -> Core.pure SetupFunctionUpgradeConfigRequest)++instance Core.ToJSON SetupFunctionUpgradeConfigRequest where+ toJSON = Core.const Core.emptyObject++-- | The location of the function source code.+--+-- /See:/ 'newSource' smart constructor.+data Source = Source+ { -- | If provided, get the source from GitHub repository. This option is valid only for GCF 1st Gen function. Example: https:\/\/github.com\/\/\/blob\/\/+ gitUri :: (Core.Maybe Core.Text),+ -- | If provided, get the source from this location in a Cloud Source Repository.+ repoSource :: (Core.Maybe RepoSource),+ -- | If provided, get the source from this location in Google Cloud Storage.+ storageSource :: (Core.Maybe StorageSource)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Source' with the minimum fields required to make a request.+newSource ::+ Source+newSource =+ Source+ { gitUri = Core.Nothing,+ repoSource = Core.Nothing,+ storageSource = Core.Nothing+ }++instance Core.FromJSON Source where+ parseJSON =+ Core.withObject+ "Source"+ ( \o ->+ Source+ Core.<$> (o Core..:? "gitUri")+ Core.<*> (o Core..:? "repoSource")+ Core.<*> (o Core..:? "storageSource")+ )++instance Core.ToJSON Source where+ toJSON Source {..} =+ Core.object+ ( Core.catMaybes+ [ ("gitUri" Core..=) Core.<$> gitUri,+ ("repoSource" Core..=) Core.<$> repoSource,+ ("storageSource" Core..=) Core.<$> storageSource+ ]+ )++-- | Provenance of the source. Ways to find the original source, or verify that some source was used for this build.+--+-- /See:/ 'newSourceProvenance' smart constructor.+data SourceProvenance = SourceProvenance+ { -- | A copy of the build\'s @source.git_uri@, if exists, with any commits resolved.+ gitUri :: (Core.Maybe Core.Text),+ -- | A copy of the build\'s @source.repo_source@, if exists, with any revisions resolved.+ resolvedRepoSource :: (Core.Maybe RepoSource),+ -- | A copy of the build\'s @source.storage_source@, if exists, with any generations resolved.+ resolvedStorageSource :: (Core.Maybe StorageSource)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SourceProvenance' with the minimum fields required to make a request.+newSourceProvenance ::+ SourceProvenance+newSourceProvenance =+ SourceProvenance+ { gitUri = Core.Nothing,+ resolvedRepoSource = Core.Nothing,+ resolvedStorageSource = Core.Nothing+ }++instance Core.FromJSON SourceProvenance where+ parseJSON =+ Core.withObject+ "SourceProvenance"+ ( \o ->+ SourceProvenance+ Core.<$> (o Core..:? "gitUri")+ Core.<*> (o Core..:? "resolvedRepoSource")+ Core.<*> (o Core..:? "resolvedStorageSource")+ )++instance Core.ToJSON SourceProvenance where+ toJSON SourceProvenance {..} =+ Core.object+ ( Core.catMaybes+ [ ("gitUri" Core..=) Core.<$> gitUri,+ ("resolvedRepoSource" Core..=) Core.<$> resolvedRepoSource,+ ("resolvedStorageSource" Core..=) Core.<$> resolvedStorageSource+ ]+ )++-- | 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++-- | Location of the source in an archive file in Google Cloud Storage.+--+-- /See:/ 'newStorageSource' smart constructor.+data StorageSource = StorageSource+ { -- | Google Cloud Storage bucket containing the source (see <https://cloud.google.com/storage/docs/bucket-naming#requirements Bucket Name Requirements>).+ bucket :: (Core.Maybe Core.Text),+ -- | Google Cloud Storage generation for the object. If the generation is omitted, the latest generation will be used.+ generation :: (Core.Maybe Core.Int64),+ -- | Google Cloud Storage object containing the source. This object must be a gzipped archive file (@.tar.gz@) containing source to build.+ object :: (Core.Maybe Core.Text),+ -- | When the specified storage bucket is a 1st gen function uploard url bucket, this field should be set as the generated upload url for 1st gen deployment.+ sourceUploadUrl :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorageSource' with the minimum fields required to make a request.+newStorageSource ::+ StorageSource+newStorageSource =+ StorageSource+ { bucket = Core.Nothing,+ generation = Core.Nothing,+ object = Core.Nothing,+ sourceUploadUrl = Core.Nothing+ }++instance Core.FromJSON StorageSource where+ parseJSON =+ Core.withObject+ "StorageSource"+ ( \o ->+ StorageSource+ Core.<$> (o Core..:? "bucket")+ Core.<*> (o Core..:? "generation" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "object")+ Core.<*> (o Core..:? "sourceUploadUrl")+ )++instance Core.ToJSON StorageSource where+ toJSON StorageSource {..} =+ Core.object+ ( Core.catMaybes+ [ ("bucket" Core..=) Core.<$> bucket,+ ("generation" Core..=) Core.. Core.AsText Core.<$> generation,+ ("object" Core..=) Core.<$> object,+ ("sourceUploadUrl" Core..=) Core.<$> sourceUploadUrl+ ]+ )++-- | 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])++-- | Information related to: * A function\'s eligibility for 1st Gen to 2nd Gen migration. * Current state of migration for function undergoing migration.+--+-- /See:/ 'newUpgradeInfo' smart constructor.+data UpgradeInfo = UpgradeInfo+ { -- | Describes the Build step of the function that builds a container to prepare for 2nd gen upgrade.+ buildConfig :: (Core.Maybe BuildConfig),+ -- | Describes the Event trigger which has been setup to prepare for 2nd gen upgrade.+ eventTrigger :: (Core.Maybe EventTrigger),+ -- | Describes the Cloud Run service which has been setup to prepare for 2nd gen upgrade.+ serviceConfig :: (Core.Maybe ServiceConfig),+ -- | UpgradeState of the function+ upgradeState :: (Core.Maybe UpgradeInfo_UpgradeState)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UpgradeInfo' with the minimum fields required to make a request.+newUpgradeInfo ::+ UpgradeInfo+newUpgradeInfo =+ UpgradeInfo+ { buildConfig = Core.Nothing,+ eventTrigger = Core.Nothing,+ serviceConfig = Core.Nothing,+ upgradeState = Core.Nothing+ }++instance Core.FromJSON UpgradeInfo where+ parseJSON =+ Core.withObject+ "UpgradeInfo"+ ( \o ->+ UpgradeInfo+ Core.<$> (o Core..:? "buildConfig")+ Core.<*> (o Core..:? "eventTrigger")+ Core.<*> (o Core..:? "serviceConfig")+ Core.<*> (o Core..:? "upgradeState")+ )++instance Core.ToJSON UpgradeInfo where+ toJSON UpgradeInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("buildConfig" Core..=) Core.<$> buildConfig,+ ("eventTrigger" Core..=) Core.<$> eventTrigger,+ ("serviceConfig" Core..=) Core.<$> serviceConfig,+ ("upgradeState" Core..=) Core.<$> upgradeState+ ]+ )
+ gen/Gogol/CloudFunctions/Internal/Sum.hs view
@@ -0,0 +1,974 @@+{-# 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.CloudFunctions.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.CloudFunctions.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * AuditLogConfig_LogType+ AuditLogConfig_LogType+ ( AuditLogConfig_LogType_LOGTYPEUNSPECIFIED,+ AuditLogConfig_LogType_ADMINREAD,+ AuditLogConfig_LogType_DATAWRITE,+ AuditLogConfig_LogType_DATAREAD,+ ..+ ),++ -- * BuildConfig_DockerRegistry+ BuildConfig_DockerRegistry+ ( BuildConfig_DockerRegistry_DOCKERREGISTRYUNSPECIFIED,+ BuildConfig_DockerRegistry_CONTAINERREGISTRY,+ BuildConfig_DockerRegistry_ARTIFACTREGISTRY,+ ..+ ),++ -- * EventTrigger_RetryPolicy+ EventTrigger_RetryPolicy+ ( EventTrigger_RetryPolicy_RETRYPOLICYUNSPECIFIED,+ EventTrigger_RetryPolicy_RETRYPOLICYDONOTRETRY,+ EventTrigger_RetryPolicy_RETRYPOLICYRETRY,+ ..+ ),++ -- * Function_Environment+ Function_Environment+ ( Function_Environment_ENVIRONMENTUNSPECIFIED,+ Function_Environment_GEN_1,+ Function_Environment_GEN_2,+ ..+ ),++ -- * Function_State+ Function_State+ ( Function_State_STATEUNSPECIFIED,+ Function_State_Active,+ Function_State_Failed,+ Function_State_Deploying,+ Function_State_Deleting,+ Function_State_Unknown,+ Function_State_Detaching,+ Function_State_DETACHFAILED,+ ..+ ),++ -- * GenerateUploadUrlRequest_Environment+ GenerateUploadUrlRequest_Environment+ ( GenerateUploadUrlRequest_Environment_ENVIRONMENTUNSPECIFIED,+ GenerateUploadUrlRequest_Environment_GEN_1,+ GenerateUploadUrlRequest_Environment_GEN_2,+ ..+ ),++ -- * GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+ ( GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_ENVIRONMENTUNSPECIFIED,+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_1,+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_2,+ ..+ ),++ -- * GoogleCloudFunctionsV2OperationMetadata_OperationType+ GoogleCloudFunctionsV2OperationMetadata_OperationType+ ( GoogleCloudFunctionsV2OperationMetadata_OperationType_OPERATIONTYPEUNSPECIFIED,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_CREATEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_UPDATEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_DELETEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_REDIRECTFUNCTIONUPGRADETRAFFIC,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_ROLLBACKFUNCTIONUPGRADETRAFFIC,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_SETUPFUNCTIONUPGRADECONFIG,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_ABORTFUNCTIONUPGRADE,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_COMMITFUNCTIONUPGRADE,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_DETACHFUNCTION,+ ..+ ),++ -- * GoogleCloudFunctionsV2Stage_Name+ GoogleCloudFunctionsV2Stage_Name+ ( GoogleCloudFunctionsV2Stage_Name_NAMEUNSPECIFIED,+ GoogleCloudFunctionsV2Stage_Name_ARTIFACTREGISTRY,+ GoogleCloudFunctionsV2Stage_Name_Build,+ GoogleCloudFunctionsV2Stage_Name_Service,+ GoogleCloudFunctionsV2Stage_Name_Trigger,+ GoogleCloudFunctionsV2Stage_Name_SERVICEROLLBACK,+ GoogleCloudFunctionsV2Stage_Name_TRIGGERROLLBACK,+ ..+ ),++ -- * GoogleCloudFunctionsV2Stage_State+ GoogleCloudFunctionsV2Stage_State+ ( GoogleCloudFunctionsV2Stage_State_STATEUNSPECIFIED,+ GoogleCloudFunctionsV2Stage_State_NOTSTARTED,+ GoogleCloudFunctionsV2Stage_State_INPROGRESS,+ GoogleCloudFunctionsV2Stage_State_Complete,+ ..+ ),++ -- * GoogleCloudFunctionsV2StateMessage_Severity+ GoogleCloudFunctionsV2StateMessage_Severity+ ( GoogleCloudFunctionsV2StateMessage_Severity_SEVERITYUNSPECIFIED,+ GoogleCloudFunctionsV2StateMessage_Severity_Error',+ GoogleCloudFunctionsV2StateMessage_Severity_Warning,+ GoogleCloudFunctionsV2StateMessage_Severity_Info,+ ..+ ),++ -- * OperationMetadataV1_Type+ OperationMetadataV1_Type+ ( OperationMetadataV1_Type_OPERATIONUNSPECIFIED,+ OperationMetadataV1_Type_CREATEFUNCTION,+ OperationMetadataV1_Type_UPDATEFUNCTION,+ OperationMetadataV1_Type_DELETEFUNCTION,+ ..+ ),++ -- * Runtime_Environment+ Runtime_Environment+ ( Runtime_Environment_ENVIRONMENTUNSPECIFIED,+ Runtime_Environment_GEN_1,+ Runtime_Environment_GEN_2,+ ..+ ),++ -- * Runtime_Stage+ Runtime_Stage+ ( Runtime_Stage_RUNTIMESTAGEUNSPECIFIED,+ Runtime_Stage_Development,+ Runtime_Stage_Alpha,+ Runtime_Stage_Beta,+ Runtime_Stage_GA,+ Runtime_Stage_Deprecated,+ Runtime_Stage_Decommissioned,+ ..+ ),++ -- * ServiceConfig_IngressSettings+ ServiceConfig_IngressSettings+ ( ServiceConfig_IngressSettings_INGRESSSETTINGSUNSPECIFIED,+ ServiceConfig_IngressSettings_ALLOWALL,+ ServiceConfig_IngressSettings_ALLOWINTERNALONLY,+ ServiceConfig_IngressSettings_ALLOWINTERNALANDGCLB,+ ..+ ),++ -- * ServiceConfig_SecurityLevel+ ServiceConfig_SecurityLevel+ ( ServiceConfig_SecurityLevel_SECURITYLEVELUNSPECIFIED,+ ServiceConfig_SecurityLevel_SECUREALWAYS,+ ServiceConfig_SecurityLevel_SECUREOPTIONAL,+ ..+ ),++ -- * ServiceConfig_VpcConnectorEgressSettings+ ServiceConfig_VpcConnectorEgressSettings+ ( ServiceConfig_VpcConnectorEgressSettings_VPCCONNECTOREGRESSSETTINGSUNSPECIFIED,+ ServiceConfig_VpcConnectorEgressSettings_PRIVATERANGESONLY,+ ServiceConfig_VpcConnectorEgressSettings_ALLTRAFFIC,+ ..+ ),++ -- * UpgradeInfo_UpgradeState+ UpgradeInfo_UpgradeState+ ( UpgradeInfo_UpgradeState_UPGRADESTATEUNSPECIFIED,+ UpgradeInfo_UpgradeState_ELIGIBLEFOR2NDGENUPGRADE,+ UpgradeInfo_UpgradeState_UPGRADEOPERATIONINPROGRESS,+ UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGSUCCESSFUL,+ UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGERROR,+ UpgradeInfo_UpgradeState_ABORTFUNCTIONUPGRADEERROR,+ UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICSUCCESSFUL,+ UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICERROR,+ UpgradeInfo_UpgradeState_ROLLBACKFUNCTIONUPGRADETRAFFICERROR,+ UpgradeInfo_UpgradeState_COMMITFUNCTIONUPGRADEERROR,+ ..+ ),+ )+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 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+ #-}++-- | Docker Registry to use for this deployment. This configuration is only applicable to 1st Gen functions, 2nd Gen functions can only use Artifact Registry. Deprecated: Container Registry option will no longer be available after March 2025: https:\/\/cloud.google.com\/artifact-registry\/docs\/transition\/transition-from-gcr Please use Artifact Registry instead, which is the default choice. If unspecified, it defaults to @ARTIFACT_REGISTRY@. If @docker_repository@ field is specified, this field should either be left unspecified or set to @ARTIFACT_REGISTRY@.+newtype BuildConfig_DockerRegistry = BuildConfig_DockerRegistry {fromBuildConfig_DockerRegistry :: 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.+pattern BuildConfig_DockerRegistry_DOCKERREGISTRYUNSPECIFIED :: BuildConfig_DockerRegistry+pattern BuildConfig_DockerRegistry_DOCKERREGISTRYUNSPECIFIED = BuildConfig_DockerRegistry "DOCKER_REGISTRY_UNSPECIFIED"++-- | Docker images will be stored in multi-regional Container Registry repositories named @gcf@.+pattern BuildConfig_DockerRegistry_CONTAINERREGISTRY :: BuildConfig_DockerRegistry+pattern BuildConfig_DockerRegistry_CONTAINERREGISTRY = BuildConfig_DockerRegistry "CONTAINER_REGISTRY"++-- | Docker images will be stored in regional Artifact Registry repositories. By default, GCF will create and use repositories named @gcf-artifacts@ in every region in which a function is deployed. But the repository to use can also be specified by the user using the @docker_repository@ field.+pattern BuildConfig_DockerRegistry_ARTIFACTREGISTRY :: BuildConfig_DockerRegistry+pattern BuildConfig_DockerRegistry_ARTIFACTREGISTRY = BuildConfig_DockerRegistry "ARTIFACT_REGISTRY"++{-# COMPLETE+ BuildConfig_DockerRegistry_DOCKERREGISTRYUNSPECIFIED,+ BuildConfig_DockerRegistry_CONTAINERREGISTRY,+ BuildConfig_DockerRegistry_ARTIFACTREGISTRY,+ BuildConfig_DockerRegistry+ #-}++-- | Optional. If unset, then defaults to ignoring failures (i.e. not retrying them).+newtype EventTrigger_RetryPolicy = EventTrigger_RetryPolicy {fromEventTrigger_RetryPolicy :: 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 EventTrigger_RetryPolicy_RETRYPOLICYUNSPECIFIED :: EventTrigger_RetryPolicy+pattern EventTrigger_RetryPolicy_RETRYPOLICYUNSPECIFIED = EventTrigger_RetryPolicy "RETRY_POLICY_UNSPECIFIED"++-- | Do not retry.+pattern EventTrigger_RetryPolicy_RETRYPOLICYDONOTRETRY :: EventTrigger_RetryPolicy+pattern EventTrigger_RetryPolicy_RETRYPOLICYDONOTRETRY = EventTrigger_RetryPolicy "RETRY_POLICY_DO_NOT_RETRY"++-- | Retry on any failure, retry up to 7 days with an exponential backoff (capped at 10 seconds).+pattern EventTrigger_RetryPolicy_RETRYPOLICYRETRY :: EventTrigger_RetryPolicy+pattern EventTrigger_RetryPolicy_RETRYPOLICYRETRY = EventTrigger_RetryPolicy "RETRY_POLICY_RETRY"++{-# COMPLETE+ EventTrigger_RetryPolicy_RETRYPOLICYUNSPECIFIED,+ EventTrigger_RetryPolicy_RETRYPOLICYDONOTRETRY,+ EventTrigger_RetryPolicy_RETRYPOLICYRETRY,+ EventTrigger_RetryPolicy+ #-}++-- | Describe whether the function is 1st Gen or 2nd Gen.+newtype Function_Environment = Function_Environment {fromFunction_Environment :: 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+pattern Function_Environment_ENVIRONMENTUNSPECIFIED :: Function_Environment+pattern Function_Environment_ENVIRONMENTUNSPECIFIED = Function_Environment "ENVIRONMENT_UNSPECIFIED"++-- | Gen 1+pattern Function_Environment_GEN_1 :: Function_Environment+pattern Function_Environment_GEN_1 = Function_Environment "GEN_1"++-- | Gen 2+pattern Function_Environment_GEN_2 :: Function_Environment+pattern Function_Environment_GEN_2 = Function_Environment "GEN_2"++{-# COMPLETE+ Function_Environment_ENVIRONMENTUNSPECIFIED,+ Function_Environment_GEN_1,+ Function_Environment_GEN_2,+ Function_Environment+ #-}++-- | Output only. State of the function.+newtype Function_State = Function_State {fromFunction_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. Invalid state.+pattern Function_State_STATEUNSPECIFIED :: Function_State+pattern Function_State_STATEUNSPECIFIED = Function_State "STATE_UNSPECIFIED"++-- | Function has been successfully deployed and is serving.+pattern Function_State_Active :: Function_State+pattern Function_State_Active = Function_State "ACTIVE"++-- | Function deployment failed and the function is not serving.+pattern Function_State_Failed :: Function_State+pattern Function_State_Failed = Function_State "FAILED"++-- | Function is being created or updated.+pattern Function_State_Deploying :: Function_State+pattern Function_State_Deploying = Function_State "DEPLOYING"++-- | Function is being deleted.+pattern Function_State_Deleting :: Function_State+pattern Function_State_Deleting = Function_State "DELETING"++-- | Function deployment failed and the function serving state is undefined. The function should be updated or deleted to move it out of this state.+pattern Function_State_Unknown :: Function_State+pattern Function_State_Unknown = Function_State "UNKNOWN"++-- | Function is being detached.+pattern Function_State_Detaching :: Function_State+pattern Function_State_Detaching = Function_State "DETACHING"++-- | Function detach failed and the function is still serving.+pattern Function_State_DETACHFAILED :: Function_State+pattern Function_State_DETACHFAILED = Function_State "DETACH_FAILED"++{-# COMPLETE+ Function_State_STATEUNSPECIFIED,+ Function_State_Active,+ Function_State_Failed,+ Function_State_Deploying,+ Function_State_Deleting,+ Function_State_Unknown,+ Function_State_Detaching,+ Function_State_DETACHFAILED,+ Function_State+ #-}++-- | The function environment the generated upload url will be used for. The upload url for 2nd Gen functions can also be used for 1st gen functions, but not vice versa. If not specified, 2nd generation-style upload URLs are generated.+newtype GenerateUploadUrlRequest_Environment = GenerateUploadUrlRequest_Environment {fromGenerateUploadUrlRequest_Environment :: 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+pattern GenerateUploadUrlRequest_Environment_ENVIRONMENTUNSPECIFIED :: GenerateUploadUrlRequest_Environment+pattern GenerateUploadUrlRequest_Environment_ENVIRONMENTUNSPECIFIED = GenerateUploadUrlRequest_Environment "ENVIRONMENT_UNSPECIFIED"++-- | Gen 1+pattern GenerateUploadUrlRequest_Environment_GEN_1 :: GenerateUploadUrlRequest_Environment+pattern GenerateUploadUrlRequest_Environment_GEN_1 = GenerateUploadUrlRequest_Environment "GEN_1"++-- | Gen 2+pattern GenerateUploadUrlRequest_Environment_GEN_2 :: GenerateUploadUrlRequest_Environment+pattern GenerateUploadUrlRequest_Environment_GEN_2 = GenerateUploadUrlRequest_Environment "GEN_2"++{-# COMPLETE+ GenerateUploadUrlRequest_Environment_ENVIRONMENTUNSPECIFIED,+ GenerateUploadUrlRequest_Environment_GEN_1,+ GenerateUploadUrlRequest_Environment_GEN_2,+ GenerateUploadUrlRequest_Environment+ #-}++newtype GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem = GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem {fromGoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem :: 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+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_ENVIRONMENTUNSPECIFIED :: GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_ENVIRONMENTUNSPECIFIED = GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem "ENVIRONMENT_UNSPECIFIED"++-- | Gen 1+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_1 :: GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_1 = GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem "GEN_1"++-- | Gen 2+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_2 :: GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+pattern GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_2 = GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem "GEN_2"++{-# COMPLETE+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_ENVIRONMENTUNSPECIFIED,+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_1,+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem_GEN_2,+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+ #-}++-- | The operation type.+newtype GoogleCloudFunctionsV2OperationMetadata_OperationType = GoogleCloudFunctionsV2OperationMetadata_OperationType {fromGoogleCloudFunctionsV2OperationMetadata_OperationType :: 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+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_OPERATIONTYPEUNSPECIFIED :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_OPERATIONTYPEUNSPECIFIED = GoogleCloudFunctionsV2OperationMetadata_OperationType "OPERATIONTYPE_UNSPECIFIED"++-- | CreateFunction+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_CREATEFUNCTION :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_CREATEFUNCTION = GoogleCloudFunctionsV2OperationMetadata_OperationType "CREATE_FUNCTION"++-- | UpdateFunction+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_UPDATEFUNCTION :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_UPDATEFUNCTION = GoogleCloudFunctionsV2OperationMetadata_OperationType "UPDATE_FUNCTION"++-- | DeleteFunction+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_DELETEFUNCTION :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_DELETEFUNCTION = GoogleCloudFunctionsV2OperationMetadata_OperationType "DELETE_FUNCTION"++-- | RedirectFunctionUpgradeTraffic+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_REDIRECTFUNCTIONUPGRADETRAFFIC :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_REDIRECTFUNCTIONUPGRADETRAFFIC = GoogleCloudFunctionsV2OperationMetadata_OperationType "REDIRECT_FUNCTION_UPGRADE_TRAFFIC"++-- | RollbackFunctionUpgradeTraffic+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_ROLLBACKFUNCTIONUPGRADETRAFFIC :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_ROLLBACKFUNCTIONUPGRADETRAFFIC = GoogleCloudFunctionsV2OperationMetadata_OperationType "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC"++-- | SetupFunctionUpgradeConfig+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_SETUPFUNCTIONUPGRADECONFIG :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_SETUPFUNCTIONUPGRADECONFIG = GoogleCloudFunctionsV2OperationMetadata_OperationType "SETUP_FUNCTION_UPGRADE_CONFIG"++-- | AbortFunctionUpgrade+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_ABORTFUNCTIONUPGRADE :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_ABORTFUNCTIONUPGRADE = GoogleCloudFunctionsV2OperationMetadata_OperationType "ABORT_FUNCTION_UPGRADE"++-- | CommitFunctionUpgrade+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_COMMITFUNCTIONUPGRADE :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_COMMITFUNCTIONUPGRADE = GoogleCloudFunctionsV2OperationMetadata_OperationType "COMMIT_FUNCTION_UPGRADE"++-- | DetachFunction+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_DETACHFUNCTION :: GoogleCloudFunctionsV2OperationMetadata_OperationType+pattern GoogleCloudFunctionsV2OperationMetadata_OperationType_DETACHFUNCTION = GoogleCloudFunctionsV2OperationMetadata_OperationType "DETACH_FUNCTION"++{-# COMPLETE+ GoogleCloudFunctionsV2OperationMetadata_OperationType_OPERATIONTYPEUNSPECIFIED,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_CREATEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_UPDATEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_DELETEFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_REDIRECTFUNCTIONUPGRADETRAFFIC,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_ROLLBACKFUNCTIONUPGRADETRAFFIC,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_SETUPFUNCTIONUPGRADECONFIG,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_ABORTFUNCTIONUPGRADE,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_COMMITFUNCTIONUPGRADE,+ GoogleCloudFunctionsV2OperationMetadata_OperationType_DETACHFUNCTION,+ GoogleCloudFunctionsV2OperationMetadata_OperationType+ #-}++-- | Name of the Stage. This will be unique for each Stage.+newtype GoogleCloudFunctionsV2Stage_Name = GoogleCloudFunctionsV2Stage_Name {fromGoogleCloudFunctionsV2Stage_Name :: 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. Invalid name.+pattern GoogleCloudFunctionsV2Stage_Name_NAMEUNSPECIFIED :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_NAMEUNSPECIFIED = GoogleCloudFunctionsV2Stage_Name "NAME_UNSPECIFIED"++-- | Artifact Registry Stage+pattern GoogleCloudFunctionsV2Stage_Name_ARTIFACTREGISTRY :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_ARTIFACTREGISTRY = GoogleCloudFunctionsV2Stage_Name "ARTIFACT_REGISTRY"++-- | Build Stage+pattern GoogleCloudFunctionsV2Stage_Name_Build :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_Build = GoogleCloudFunctionsV2Stage_Name "BUILD"++-- | Service Stage+pattern GoogleCloudFunctionsV2Stage_Name_Service :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_Service = GoogleCloudFunctionsV2Stage_Name "SERVICE"++-- | Trigger Stage+pattern GoogleCloudFunctionsV2Stage_Name_Trigger :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_Trigger = GoogleCloudFunctionsV2Stage_Name "TRIGGER"++-- | Service Rollback Stage+pattern GoogleCloudFunctionsV2Stage_Name_SERVICEROLLBACK :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_SERVICEROLLBACK = GoogleCloudFunctionsV2Stage_Name "SERVICE_ROLLBACK"++-- | Trigger Rollback Stage+pattern GoogleCloudFunctionsV2Stage_Name_TRIGGERROLLBACK :: GoogleCloudFunctionsV2Stage_Name+pattern GoogleCloudFunctionsV2Stage_Name_TRIGGERROLLBACK = GoogleCloudFunctionsV2Stage_Name "TRIGGER_ROLLBACK"++{-# COMPLETE+ GoogleCloudFunctionsV2Stage_Name_NAMEUNSPECIFIED,+ GoogleCloudFunctionsV2Stage_Name_ARTIFACTREGISTRY,+ GoogleCloudFunctionsV2Stage_Name_Build,+ GoogleCloudFunctionsV2Stage_Name_Service,+ GoogleCloudFunctionsV2Stage_Name_Trigger,+ GoogleCloudFunctionsV2Stage_Name_SERVICEROLLBACK,+ GoogleCloudFunctionsV2Stage_Name_TRIGGERROLLBACK,+ GoogleCloudFunctionsV2Stage_Name+ #-}++-- | Current state of the Stage+newtype GoogleCloudFunctionsV2Stage_State = GoogleCloudFunctionsV2Stage_State {fromGoogleCloudFunctionsV2Stage_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. Invalid state.+pattern GoogleCloudFunctionsV2Stage_State_STATEUNSPECIFIED :: GoogleCloudFunctionsV2Stage_State+pattern GoogleCloudFunctionsV2Stage_State_STATEUNSPECIFIED = GoogleCloudFunctionsV2Stage_State "STATE_UNSPECIFIED"++-- | Stage has not started.+pattern GoogleCloudFunctionsV2Stage_State_NOTSTARTED :: GoogleCloudFunctionsV2Stage_State+pattern GoogleCloudFunctionsV2Stage_State_NOTSTARTED = GoogleCloudFunctionsV2Stage_State "NOT_STARTED"++-- | Stage is in progress.+pattern GoogleCloudFunctionsV2Stage_State_INPROGRESS :: GoogleCloudFunctionsV2Stage_State+pattern GoogleCloudFunctionsV2Stage_State_INPROGRESS = GoogleCloudFunctionsV2Stage_State "IN_PROGRESS"++-- | Stage has completed.+pattern GoogleCloudFunctionsV2Stage_State_Complete :: GoogleCloudFunctionsV2Stage_State+pattern GoogleCloudFunctionsV2Stage_State_Complete = GoogleCloudFunctionsV2Stage_State "COMPLETE"++{-# COMPLETE+ GoogleCloudFunctionsV2Stage_State_STATEUNSPECIFIED,+ GoogleCloudFunctionsV2Stage_State_NOTSTARTED,+ GoogleCloudFunctionsV2Stage_State_INPROGRESS,+ GoogleCloudFunctionsV2Stage_State_Complete,+ GoogleCloudFunctionsV2Stage_State+ #-}++-- | Severity of the state message.+newtype GoogleCloudFunctionsV2StateMessage_Severity = GoogleCloudFunctionsV2StateMessage_Severity {fromGoogleCloudFunctionsV2StateMessage_Severity :: 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. Invalid severity.+pattern GoogleCloudFunctionsV2StateMessage_Severity_SEVERITYUNSPECIFIED :: GoogleCloudFunctionsV2StateMessage_Severity+pattern GoogleCloudFunctionsV2StateMessage_Severity_SEVERITYUNSPECIFIED = GoogleCloudFunctionsV2StateMessage_Severity "SEVERITY_UNSPECIFIED"++-- | ERROR-level severity.+pattern GoogleCloudFunctionsV2StateMessage_Severity_Error' :: GoogleCloudFunctionsV2StateMessage_Severity+pattern GoogleCloudFunctionsV2StateMessage_Severity_Error' = GoogleCloudFunctionsV2StateMessage_Severity "ERROR"++-- | WARNING-level severity.+pattern GoogleCloudFunctionsV2StateMessage_Severity_Warning :: GoogleCloudFunctionsV2StateMessage_Severity+pattern GoogleCloudFunctionsV2StateMessage_Severity_Warning = GoogleCloudFunctionsV2StateMessage_Severity "WARNING"++-- | INFO-level severity.+pattern GoogleCloudFunctionsV2StateMessage_Severity_Info :: GoogleCloudFunctionsV2StateMessage_Severity+pattern GoogleCloudFunctionsV2StateMessage_Severity_Info = GoogleCloudFunctionsV2StateMessage_Severity "INFO"++{-# COMPLETE+ GoogleCloudFunctionsV2StateMessage_Severity_SEVERITYUNSPECIFIED,+ GoogleCloudFunctionsV2StateMessage_Severity_Error',+ GoogleCloudFunctionsV2StateMessage_Severity_Warning,+ GoogleCloudFunctionsV2StateMessage_Severity_Info,+ GoogleCloudFunctionsV2StateMessage_Severity+ #-}++-- | Type of operation.+newtype OperationMetadataV1_Type = OperationMetadataV1_Type {fromOperationMetadataV1_Type :: 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+ )++-- | Unknown operation type.+pattern OperationMetadataV1_Type_OPERATIONUNSPECIFIED :: OperationMetadataV1_Type+pattern OperationMetadataV1_Type_OPERATIONUNSPECIFIED = OperationMetadataV1_Type "OPERATION_UNSPECIFIED"++-- | Triggered by CreateFunction call+pattern OperationMetadataV1_Type_CREATEFUNCTION :: OperationMetadataV1_Type+pattern OperationMetadataV1_Type_CREATEFUNCTION = OperationMetadataV1_Type "CREATE_FUNCTION"++-- | Triggered by UpdateFunction call+pattern OperationMetadataV1_Type_UPDATEFUNCTION :: OperationMetadataV1_Type+pattern OperationMetadataV1_Type_UPDATEFUNCTION = OperationMetadataV1_Type "UPDATE_FUNCTION"++-- | Triggered by DeleteFunction call.+pattern OperationMetadataV1_Type_DELETEFUNCTION :: OperationMetadataV1_Type+pattern OperationMetadataV1_Type_DELETEFUNCTION = OperationMetadataV1_Type "DELETE_FUNCTION"++{-# COMPLETE+ OperationMetadataV1_Type_OPERATIONUNSPECIFIED,+ OperationMetadataV1_Type_CREATEFUNCTION,+ OperationMetadataV1_Type_UPDATEFUNCTION,+ OperationMetadataV1_Type_DELETEFUNCTION,+ OperationMetadataV1_Type+ #-}++-- | The environment for the runtime.+newtype Runtime_Environment = Runtime_Environment {fromRuntime_Environment :: 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+pattern Runtime_Environment_ENVIRONMENTUNSPECIFIED :: Runtime_Environment+pattern Runtime_Environment_ENVIRONMENTUNSPECIFIED = Runtime_Environment "ENVIRONMENT_UNSPECIFIED"++-- | Gen 1+pattern Runtime_Environment_GEN_1 :: Runtime_Environment+pattern Runtime_Environment_GEN_1 = Runtime_Environment "GEN_1"++-- | Gen 2+pattern Runtime_Environment_GEN_2 :: Runtime_Environment+pattern Runtime_Environment_GEN_2 = Runtime_Environment "GEN_2"++{-# COMPLETE+ Runtime_Environment_ENVIRONMENTUNSPECIFIED,+ Runtime_Environment_GEN_1,+ Runtime_Environment_GEN_2,+ Runtime_Environment+ #-}++-- | The stage of life this runtime is in, e.g., BETA, GA, etc.+newtype Runtime_Stage = Runtime_Stage {fromRuntime_Stage :: 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 Runtime_Stage_RUNTIMESTAGEUNSPECIFIED :: Runtime_Stage+pattern Runtime_Stage_RUNTIMESTAGEUNSPECIFIED = Runtime_Stage "RUNTIME_STAGE_UNSPECIFIED"++-- | The runtime is in development.+pattern Runtime_Stage_Development :: Runtime_Stage+pattern Runtime_Stage_Development = Runtime_Stage "DEVELOPMENT"++-- | The runtime is in the Alpha stage.+pattern Runtime_Stage_Alpha :: Runtime_Stage+pattern Runtime_Stage_Alpha = Runtime_Stage "ALPHA"++-- | The runtime is in the Beta stage.+pattern Runtime_Stage_Beta :: Runtime_Stage+pattern Runtime_Stage_Beta = Runtime_Stage "BETA"++-- | The runtime is generally available.+pattern Runtime_Stage_GA :: Runtime_Stage+pattern Runtime_Stage_GA = Runtime_Stage "GA"++-- | The runtime is deprecated.+pattern Runtime_Stage_Deprecated :: Runtime_Stage+pattern Runtime_Stage_Deprecated = Runtime_Stage "DEPRECATED"++-- | The runtime is no longer supported.+pattern Runtime_Stage_Decommissioned :: Runtime_Stage+pattern Runtime_Stage_Decommissioned = Runtime_Stage "DECOMMISSIONED"++{-# COMPLETE+ Runtime_Stage_RUNTIMESTAGEUNSPECIFIED,+ Runtime_Stage_Development,+ Runtime_Stage_Alpha,+ Runtime_Stage_Beta,+ Runtime_Stage_GA,+ Runtime_Stage_Deprecated,+ Runtime_Stage_Decommissioned,+ Runtime_Stage+ #-}++-- | The ingress settings for the function, controlling what traffic can reach it.+newtype ServiceConfig_IngressSettings = ServiceConfig_IngressSettings {fromServiceConfig_IngressSettings :: 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.+pattern ServiceConfig_IngressSettings_INGRESSSETTINGSUNSPECIFIED :: ServiceConfig_IngressSettings+pattern ServiceConfig_IngressSettings_INGRESSSETTINGSUNSPECIFIED = ServiceConfig_IngressSettings "INGRESS_SETTINGS_UNSPECIFIED"++-- | Allow HTTP traffic from public and private sources.+pattern ServiceConfig_IngressSettings_ALLOWALL :: ServiceConfig_IngressSettings+pattern ServiceConfig_IngressSettings_ALLOWALL = ServiceConfig_IngressSettings "ALLOW_ALL"++-- | Allow HTTP traffic from only private VPC sources.+pattern ServiceConfig_IngressSettings_ALLOWINTERNALONLY :: ServiceConfig_IngressSettings+pattern ServiceConfig_IngressSettings_ALLOWINTERNALONLY = ServiceConfig_IngressSettings "ALLOW_INTERNAL_ONLY"++-- | Allow HTTP traffic from private VPC sources and through GCLB.+pattern ServiceConfig_IngressSettings_ALLOWINTERNALANDGCLB :: ServiceConfig_IngressSettings+pattern ServiceConfig_IngressSettings_ALLOWINTERNALANDGCLB = ServiceConfig_IngressSettings "ALLOW_INTERNAL_AND_GCLB"++{-# COMPLETE+ ServiceConfig_IngressSettings_INGRESSSETTINGSUNSPECIFIED,+ ServiceConfig_IngressSettings_ALLOWALL,+ ServiceConfig_IngressSettings_ALLOWINTERNALONLY,+ ServiceConfig_IngressSettings_ALLOWINTERNALANDGCLB,+ ServiceConfig_IngressSettings+ #-}++-- | Security level configure whether the function only accepts https. This configuration is only applicable to 1st Gen functions with Http trigger. By default https is optional for 1st Gen functions; 2nd Gen functions are https ONLY.+newtype ServiceConfig_SecurityLevel = ServiceConfig_SecurityLevel {fromServiceConfig_SecurityLevel :: 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.+pattern ServiceConfig_SecurityLevel_SECURITYLEVELUNSPECIFIED :: ServiceConfig_SecurityLevel+pattern ServiceConfig_SecurityLevel_SECURITYLEVELUNSPECIFIED = ServiceConfig_SecurityLevel "SECURITY_LEVEL_UNSPECIFIED"++-- | Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.+pattern ServiceConfig_SecurityLevel_SECUREALWAYS :: ServiceConfig_SecurityLevel+pattern ServiceConfig_SecurityLevel_SECUREALWAYS = ServiceConfig_SecurityLevel "SECURE_ALWAYS"++-- | Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.+pattern ServiceConfig_SecurityLevel_SECUREOPTIONAL :: ServiceConfig_SecurityLevel+pattern ServiceConfig_SecurityLevel_SECUREOPTIONAL = ServiceConfig_SecurityLevel "SECURE_OPTIONAL"++{-# COMPLETE+ ServiceConfig_SecurityLevel_SECURITYLEVELUNSPECIFIED,+ ServiceConfig_SecurityLevel_SECUREALWAYS,+ ServiceConfig_SecurityLevel_SECUREOPTIONAL,+ ServiceConfig_SecurityLevel+ #-}++-- | The egress settings for the connector, controlling what traffic is diverted through it.+newtype ServiceConfig_VpcConnectorEgressSettings = ServiceConfig_VpcConnectorEgressSettings {fromServiceConfig_VpcConnectorEgressSettings :: 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.+pattern ServiceConfig_VpcConnectorEgressSettings_VPCCONNECTOREGRESSSETTINGSUNSPECIFIED :: ServiceConfig_VpcConnectorEgressSettings+pattern ServiceConfig_VpcConnectorEgressSettings_VPCCONNECTOREGRESSSETTINGSUNSPECIFIED = ServiceConfig_VpcConnectorEgressSettings "VPC_CONNECTOR_EGRESS_SETTINGS_UNSPECIFIED"++-- | Use the VPC Access Connector only for private IP space from RFC1918.+pattern ServiceConfig_VpcConnectorEgressSettings_PRIVATERANGESONLY :: ServiceConfig_VpcConnectorEgressSettings+pattern ServiceConfig_VpcConnectorEgressSettings_PRIVATERANGESONLY = ServiceConfig_VpcConnectorEgressSettings "PRIVATE_RANGES_ONLY"++-- | Force the use of VPC Access Connector for all egress traffic from the function.+pattern ServiceConfig_VpcConnectorEgressSettings_ALLTRAFFIC :: ServiceConfig_VpcConnectorEgressSettings+pattern ServiceConfig_VpcConnectorEgressSettings_ALLTRAFFIC = ServiceConfig_VpcConnectorEgressSettings "ALL_TRAFFIC"++{-# COMPLETE+ ServiceConfig_VpcConnectorEgressSettings_VPCCONNECTOREGRESSSETTINGSUNSPECIFIED,+ ServiceConfig_VpcConnectorEgressSettings_PRIVATERANGESONLY,+ ServiceConfig_VpcConnectorEgressSettings_ALLTRAFFIC,+ ServiceConfig_VpcConnectorEgressSettings+ #-}++-- | UpgradeState of the function+newtype UpgradeInfo_UpgradeState = UpgradeInfo_UpgradeState {fromUpgradeInfo_UpgradeState :: 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 state. Most functions are in this upgrade state.+pattern UpgradeInfo_UpgradeState_UPGRADESTATEUNSPECIFIED :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_UPGRADESTATEUNSPECIFIED = UpgradeInfo_UpgradeState "UPGRADE_STATE_UNSPECIFIED"++-- | Functions in this state are eligible for 1st Gen -> 2nd Gen upgrade.+pattern UpgradeInfo_UpgradeState_ELIGIBLEFOR2NDGENUPGRADE :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_ELIGIBLEFOR2NDGENUPGRADE = UpgradeInfo_UpgradeState "ELIGIBLE_FOR_2ND_GEN_UPGRADE"++-- | An upgrade related operation is in progress.+pattern UpgradeInfo_UpgradeState_UPGRADEOPERATIONINPROGRESS :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_UPGRADEOPERATIONINPROGRESS = UpgradeInfo_UpgradeState "UPGRADE_OPERATION_IN_PROGRESS"++-- | SetupFunctionUpgradeConfig API was successful and a 2nd Gen function has been created based on 1st Gen function instance.+pattern UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGSUCCESSFUL :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGSUCCESSFUL = UpgradeInfo_UpgradeState "SETUP_FUNCTION_UPGRADE_CONFIG_SUCCESSFUL"++-- | SetupFunctionUpgradeConfig API was un-successful.+pattern UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGERROR :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGERROR = UpgradeInfo_UpgradeState "SETUP_FUNCTION_UPGRADE_CONFIG_ERROR"++-- | AbortFunctionUpgrade API was un-successful.+pattern UpgradeInfo_UpgradeState_ABORTFUNCTIONUPGRADEERROR :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_ABORTFUNCTIONUPGRADEERROR = UpgradeInfo_UpgradeState "ABORT_FUNCTION_UPGRADE_ERROR"++-- | RedirectFunctionUpgradeTraffic API was successful and traffic is served by 2nd Gen function stack.+pattern UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICSUCCESSFUL :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICSUCCESSFUL = UpgradeInfo_UpgradeState "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_SUCCESSFUL"++-- | RedirectFunctionUpgradeTraffic API was un-successful.+pattern UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICERROR :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICERROR = UpgradeInfo_UpgradeState "REDIRECT_FUNCTION_UPGRADE_TRAFFIC_ERROR"++-- | RollbackFunctionUpgradeTraffic API was un-successful.+pattern UpgradeInfo_UpgradeState_ROLLBACKFUNCTIONUPGRADETRAFFICERROR :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_ROLLBACKFUNCTIONUPGRADETRAFFICERROR = UpgradeInfo_UpgradeState "ROLLBACK_FUNCTION_UPGRADE_TRAFFIC_ERROR"++-- | CommitFunctionUpgrade API was un-successful.+pattern UpgradeInfo_UpgradeState_COMMITFUNCTIONUPGRADEERROR :: UpgradeInfo_UpgradeState+pattern UpgradeInfo_UpgradeState_COMMITFUNCTIONUPGRADEERROR = UpgradeInfo_UpgradeState "COMMIT_FUNCTION_UPGRADE_ERROR"++{-# COMPLETE+ UpgradeInfo_UpgradeState_UPGRADESTATEUNSPECIFIED,+ UpgradeInfo_UpgradeState_ELIGIBLEFOR2NDGENUPGRADE,+ UpgradeInfo_UpgradeState_UPGRADEOPERATIONINPROGRESS,+ UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGSUCCESSFUL,+ UpgradeInfo_UpgradeState_SETUPFUNCTIONUPGRADECONFIGERROR,+ UpgradeInfo_UpgradeState_ABORTFUNCTIONUPGRADEERROR,+ UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICSUCCESSFUL,+ UpgradeInfo_UpgradeState_REDIRECTFUNCTIONUPGRADETRAFFICERROR,+ UpgradeInfo_UpgradeState_ROLLBACKFUNCTIONUPGRADETRAFFICERROR,+ UpgradeInfo_UpgradeState_COMMITFUNCTIONUPGRADEERROR,+ UpgradeInfo_UpgradeState+ #-}
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/AbortFunctionUpgrade.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.CloudFunctions.Projects.Locations.Functions.AbortFunctionUpgrade+-- 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)+--+-- Aborts generation upgrade process for a function with the given name from the specified project. Deletes all 2nd Gen copy related configuration and resources which were created during the upgrade process.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.abortFunctionUpgrade@.+module Gogol.CloudFunctions.Projects.Locations.Functions.AbortFunctionUpgrade+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgradeResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade (..),+ newCloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.abortFunctionUpgrade@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgradeResource =+ "v2"+ Core.:> Core.CaptureMode "name" "abortFunctionUpgrade" 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] AbortFunctionUpgradeRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Aborts generation upgrade process for a function with the given name from the specified project. Deletes all 2nd Gen copy related configuration and resources which were created during the upgrade process.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade = CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade+ { -- | 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 function for which upgrade should be aborted.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: AbortFunctionUpgradeRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade ::+ -- | Required. The name of the function for which upgrade should be aborted. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ AbortFunctionUpgradeRequest ->+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade+newCloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade+ where+ type+ Rs+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade =+ Operation+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgrade {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsAbortFunctionUpgradeResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/CommitFunctionUpgrade.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.CloudFunctions.Projects.Locations.Functions.CommitFunctionUpgrade+-- 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)+--+-- Finalizes the upgrade after which function upgrade can not be rolled back. This is the last step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Deletes all original 1st Gen related configuration and resources.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.commitFunctionUpgrade@.+module Gogol.CloudFunctions.Projects.Locations.Functions.CommitFunctionUpgrade+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgradeResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade (..),+ newCloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.commitFunctionUpgrade@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgradeResource =+ "v2"+ Core.:> Core.CaptureMode "name" "commitFunctionUpgrade" 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] CommitFunctionUpgradeRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Finalizes the upgrade after which function upgrade can not be rolled back. This is the last step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Deletes all original 1st Gen related configuration and resources.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade = CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade+ { -- | 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 function for which upgrade should be finalized.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: CommitFunctionUpgradeRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade ::+ -- | Required. The name of the function for which upgrade should be finalized. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CommitFunctionUpgradeRequest ->+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade+newCloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade+ where+ type+ Rs+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade =+ Operation+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgrade {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsCommitFunctionUpgradeResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/Create.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.CloudFunctions.Projects.Locations.Functions.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 function. If a function with the given name already exists in the specified project, the long running operation will return @ALREADY_EXISTS@ error.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.create@.+module Gogol.CloudFunctions.Projects.Locations.Functions.Create+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsCreateResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsCreate (..),+ newCloudFunctionsProjectsLocationsFunctionsCreate,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.create@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsCreate' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsCreateResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "functions"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "functionId" 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] Function+ Core.:> Core.Post '[Core.JSON] Operation++-- | Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return @ALREADY_EXISTS@ error.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsCreate' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsCreate = CloudFunctionsProjectsLocationsFunctionsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID to use for the function, which will become the final component of the function\'s resource name. This value should be 4-63 characters, and valid characters are \/a-z-\/.+ functionId :: (Core.Maybe Core.Text),+ -- | Required. The project and location in which the function should be created, specified in the format @projects\/*\/locations\/*@+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: Function,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsCreate' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsCreate ::+ -- | Required. The project and location in which the function should be created, specified in the format @projects\/*\/locations\/*@ See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Function ->+ CloudFunctionsProjectsLocationsFunctionsCreate+newCloudFunctionsProjectsLocationsFunctionsCreate parent payload =+ CloudFunctionsProjectsLocationsFunctionsCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ functionId = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsCreate+ where+ type Rs CloudFunctionsProjectsLocationsFunctionsCreate = Operation+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsCreate =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsFunctionsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ functionId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsFunctionsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/Delete.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.CloudFunctions.Projects.Locations.Functions.Delete+-- 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)+--+-- Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.delete@.+module Gogol.CloudFunctions.Projects.Locations.Functions.Delete+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsDeleteResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsDelete (..),+ newCloudFunctionsProjectsLocationsFunctionsDelete,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.delete@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsDelete' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsDeleteResource =+ "v2"+ 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.Delete '[Core.JSON] Operation++-- | Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsDelete' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsDelete = CloudFunctionsProjectsLocationsFunctionsDelete+ { -- | 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 function which should be deleted.+ 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 'CloudFunctionsProjectsLocationsFunctionsDelete' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsDelete ::+ -- | Required. The name of the function which should be deleted. See 'name'.+ Core.Text ->+ CloudFunctionsProjectsLocationsFunctionsDelete+newCloudFunctionsProjectsLocationsFunctionsDelete name =+ CloudFunctionsProjectsLocationsFunctionsDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsDelete+ where+ type Rs CloudFunctionsProjectsLocationsFunctionsDelete = Operation+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsDelete =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsFunctionsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsFunctionsDeleteResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/DetachFunction.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.CloudFunctions.Projects.Locations.Functions.DetachFunction+-- 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)+--+-- Detaches 2nd Gen function to Cloud Run function.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.detachFunction@.+module Gogol.CloudFunctions.Projects.Locations.Functions.DetachFunction+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsDetachFunctionResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsDetachFunction (..),+ newCloudFunctionsProjectsLocationsFunctionsDetachFunction,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.detachFunction@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsDetachFunction' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsDetachFunctionResource =+ "v2"+ Core.:> Core.CaptureMode "name" "detachFunction" 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] DetachFunctionRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Detaches 2nd Gen function to Cloud Run function.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsDetachFunction' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsDetachFunction = CloudFunctionsProjectsLocationsFunctionsDetachFunction+ { -- | 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 function for which should be detached.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: DetachFunctionRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsDetachFunction' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsDetachFunction ::+ -- | Required. The name of the function for which should be detached. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ DetachFunctionRequest ->+ CloudFunctionsProjectsLocationsFunctionsDetachFunction+newCloudFunctionsProjectsLocationsFunctionsDetachFunction+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsDetachFunction+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsDetachFunction+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsDetachFunction =+ Operation+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsDetachFunction =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsDetachFunction {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsDetachFunctionResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/GenerateDownloadUrl.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.CloudFunctions.Projects.Locations.Functions.GenerateDownloadUrl+-- 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 a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.generateDownloadUrl@.+module Gogol.CloudFunctions.Projects.Locations.Functions.GenerateDownloadUrl+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrlResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl (..),+ newCloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.generateDownloadUrl@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrlResource =+ "v2"+ Core.:> Core.CaptureMode "name" "generateDownloadUrl" 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] GenerateDownloadUrlRequest+ Core.:> Core.Post '[Core.JSON] GenerateDownloadUrlResponse++-- | Returns a signed URL for downloading deployed function source code. The URL is only valid for a limited period and should be used within 30 minutes of generation. For more information about the signed URL usage see: https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl = CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl+ { -- | 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 function for which source code Google Cloud Storage signed URL should be generated.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GenerateDownloadUrlRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl ::+ -- | Required. The name of function for which source code Google Cloud Storage signed URL should be generated. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GenerateDownloadUrlRequest ->+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl+newCloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl =+ GenerateDownloadUrlResponse+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrl {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsGenerateDownloadUrlResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/GenerateUploadUrl.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.CloudFunctions.Projects.Locations.Functions.GenerateUploadUrl+-- 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 a signed URL for uploading a function source code. For more information about the signed URL usage see: https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * @content-type: application\/zip@ Do not specify this header: * @Authorization: Bearer YOUR_TOKEN@+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.generateUploadUrl@.+module Gogol.CloudFunctions.Projects.Locations.Functions.GenerateUploadUrl+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrlResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl (..),+ newCloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.generateUploadUrl@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrlResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "functions:generateUploadUrl"+ 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] GenerateUploadUrlRequest+ Core.:> Core.Post '[Core.JSON] GenerateUploadUrlResponse++-- | Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, specify this header: * @content-type: application\/zip@ Do not specify this header: * @Authorization: Bearer YOUR_TOKEN@+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl = CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format @projects\/*\/locations\/*@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: GenerateUploadUrlRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl ::+ -- | Required. The project and location in which the Google Cloud Storage signed URL should be generated, specified in the format @projects\/*\/locations\/*@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GenerateUploadUrlRequest ->+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl+newCloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl+ parent+ payload =+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl =+ GenerateUploadUrlResponse+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrl {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsGenerateUploadUrlResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/Get.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudFunctions.Projects.Locations.Functions.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 a function with the given name from the requested project.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.get@.+module Gogol.CloudFunctions.Projects.Locations.Functions.Get+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsGetResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsGet (..),+ newCloudFunctionsProjectsLocationsFunctionsGet,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.get@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsGet' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsGetResource =+ "v2"+ 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 "revision" 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] Function++-- | Returns a function with the given name from the requested project.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsGet' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsGet = CloudFunctionsProjectsLocationsFunctionsGet+ { -- | 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 function which details should be obtained.+ name :: Core.Text,+ -- | Optional. The optional version of the 1st gen function whose details should be obtained. The version of a 1st gen function is an integer that starts from 1 and gets incremented on redeployments. GCF may keep historical configs for old versions of 1st gen function. This field can be specified to fetch the historical configs. This field is valid only for GCF 1st gen function.+ revision :: (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 'CloudFunctionsProjectsLocationsFunctionsGet' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsGet ::+ -- | Required. The name of the function which details should be obtained. See 'name'.+ Core.Text ->+ CloudFunctionsProjectsLocationsFunctionsGet+newCloudFunctionsProjectsLocationsFunctionsGet name =+ CloudFunctionsProjectsLocationsFunctionsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ revision = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsGet+ where+ type Rs CloudFunctionsProjectsLocationsFunctionsGet = Function+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsGet =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsFunctionsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ revision+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsFunctionsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/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.CloudFunctions.Projects.Locations.Functions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.getIamPolicy@.+module Gogol.CloudFunctions.Projects.Locations.Functions.GetIamPolicy+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicyResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy (..),+ newCloudFunctionsProjectsLocationsFunctionsGetIamPolicy,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.getIamPolicy@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsGetIamPolicy' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsGetIamPolicyResource =+ "v2"+ 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:/ 'newCloudFunctionsProjectsLocationsFunctionsGetIamPolicy' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsGetIamPolicy = CloudFunctionsProjectsLocationsFunctionsGetIamPolicy+ { -- | 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 'CloudFunctionsProjectsLocationsFunctionsGetIamPolicy' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsGetIamPolicy ::+ -- | 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 ->+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy+newCloudFunctionsProjectsLocationsFunctionsGetIamPolicy resource =+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ optionsRequestedPolicyVersion =+ Core.Nothing,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsGetIamPolicy =+ Policy+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsGetIamPolicy =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ optionsRequestedPolicyVersion+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsGetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/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.CloudFunctions.Projects.Locations.Functions.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)+--+-- Returns a list of functions that belong to the requested project.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.list@.+module Gogol.CloudFunctions.Projects.Locations.Functions.List+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsListResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsList (..),+ newCloudFunctionsProjectsLocationsFunctionsList,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.list@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsList' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsListResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "functions"+ 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] ListFunctionsResponse++-- | Returns a list of functions that belong to the requested project.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsList' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsList = CloudFunctionsProjectsLocationsFunctionsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The filter for Functions that match the filter expression, following the syntax outlined in https:\/\/google.aip.dev\/160.+ filter :: (Core.Maybe Core.Text),+ -- | The sorting order of the resources returned. Value should be a comma separated list of fields. The default sorting order is ascending. See https:\/\/google.aip.dev\/132#ordering.+ orderBy :: (Core.Maybe Core.Text),+ -- | Maximum number of functions to return per call. The largest allowed page/size is 1,000, if the page/size is omitted or specified as greater than 1,000 then it will be replaced as 1,000. The size of the list response can be less than specified when used with filters.+ pageSize :: (Core.Maybe Core.Int32),+ -- | The value returned by the last @ListFunctionsResponse@; indicates that this is a continuation of a prior @ListFunctions@ call, and that the system should return the next page of data.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The project and location from which the function should be listed, specified in the format @projects\/*\/locations\/*@ If you want to list functions in all locations, use \"-\" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable 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 'CloudFunctionsProjectsLocationsFunctionsList' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsList ::+ -- | Required. The project and location from which the function should be listed, specified in the format @projects\/*\/locations\/*@ If you want to list functions in all locations, use \"-\" in place of a location. When listing functions in all locations, if one or more location(s) are unreachable, the response will contain functions from all reachable locations along with the names of any unreachable locations. See 'parent'.+ Core.Text ->+ CloudFunctionsProjectsLocationsFunctionsList+newCloudFunctionsProjectsLocationsFunctionsList parent =+ CloudFunctionsProjectsLocationsFunctionsList+ { 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+ CloudFunctionsProjectsLocationsFunctionsList+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsList =+ ListFunctionsResponse+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsList =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsFunctionsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ orderBy+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsFunctionsListResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/Patch.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.CloudFunctions.Projects.Locations.Functions.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 existing function.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.patch@.+module Gogol.CloudFunctions.Projects.Locations.Functions.Patch+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsPatchResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsPatch (..),+ newCloudFunctionsProjectsLocationsFunctionsPatch,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.patch@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsPatch' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsPatchResource =+ "v2"+ 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] Function+ Core.:> Core.Patch '[Core.JSON] Operation++-- | Updates existing function.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsPatch' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsPatch = CloudFunctionsProjectsLocationsFunctionsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | A user-defined name of the function. Function names must be unique globally and match pattern @projects\/*\/locations\/*\/functions\/*@+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Function,+ -- | The list of fields to be updated. If no field mask is provided, all fields will be updated.+ 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 'CloudFunctionsProjectsLocationsFunctionsPatch' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsPatch ::+ -- | A user-defined name of the function. Function names must be unique globally and match pattern @projects\/*\/locations\/*\/functions\/*@ See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Function ->+ CloudFunctionsProjectsLocationsFunctionsPatch+newCloudFunctionsProjectsLocationsFunctionsPatch name payload =+ CloudFunctionsProjectsLocationsFunctionsPatch+ { 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+ CloudFunctionsProjectsLocationsFunctionsPatch+ where+ type Rs CloudFunctionsProjectsLocationsFunctionsPatch = Operation+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsPatch =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsFunctionsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsFunctionsPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/RedirectFunctionUpgradeTraffic.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.CloudFunctions.Projects.Locations.Functions.RedirectFunctionUpgradeTraffic+-- 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)+--+-- Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic@.+module Gogol.CloudFunctions.Projects.Locations.Functions.RedirectFunctionUpgradeTraffic+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic (..),+ newCloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.redirectFunctionUpgradeTraffic@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficResource =+ "v2"+ Core.:> Core.CaptureMode "name" "redirectFunctionUpgradeTraffic" 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] RedirectFunctionUpgradeTrafficRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Changes the traffic target of a function from the original 1st Gen function to the 2nd Gen copy. This is the second step of the multi step process to upgrade 1st Gen functions to 2nd Gen. After this operation, all new traffic will be served by 2nd Gen copy.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic = CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic+ { -- | 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 function for which traffic target should be changed to 2nd Gen from 1st Gen.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RedirectFunctionUpgradeTrafficRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic ::+ -- | Required. The name of the function for which traffic target should be changed to 2nd Gen from 1st Gen. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RedirectFunctionUpgradeTrafficRequest ->+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic+newCloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic+ where+ type+ Rs+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic =+ Operation+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTraffic {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsRedirectFunctionUpgradeTrafficResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/RollbackFunctionUpgradeTraffic.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.CloudFunctions.Projects.Locations.Functions.RollbackFunctionUpgradeTraffic+-- 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)+--+-- Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic@.+module Gogol.CloudFunctions.Projects.Locations.Functions.RollbackFunctionUpgradeTraffic+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic (..),+ newCloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.rollbackFunctionUpgradeTraffic@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficResource =+ "v2"+ Core.:> Core.CaptureMode "name" "rollbackFunctionUpgradeTraffic" 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] RollbackFunctionUpgradeTrafficRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Reverts the traffic target of a function from the 2nd Gen copy to the original 1st Gen function. After this operation, all new traffic would be served by the 1st Gen.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic = CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic+ { -- | 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 function for which traffic target should be changed back to 1st Gen from 2nd Gen.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RollbackFunctionUpgradeTrafficRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic ::+ -- | Required. The name of the function for which traffic target should be changed back to 1st Gen from 2nd Gen. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RollbackFunctionUpgradeTrafficRequest ->+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic+newCloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic+ { xgafv =+ Core.Nothing,+ accessToken =+ Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType =+ Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic+ where+ type+ Rs+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic =+ Operation+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTraffic {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsRollbackFunctionUpgradeTrafficResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/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.CloudFunctions.Projects.Locations.Functions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.setIamPolicy@.+module Gogol.CloudFunctions.Projects.Locations.Functions.SetIamPolicy+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicyResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy (..),+ newCloudFunctionsProjectsLocationsFunctionsSetIamPolicy,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.setIamPolicy@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsSetIamPolicy' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsSetIamPolicyResource =+ "v2"+ 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:/ 'newCloudFunctionsProjectsLocationsFunctionsSetIamPolicy' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsSetIamPolicy = CloudFunctionsProjectsLocationsFunctionsSetIamPolicy+ { -- | 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 'CloudFunctionsProjectsLocationsFunctionsSetIamPolicy' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsSetIamPolicy ::+ -- | 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 ->+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy+newCloudFunctionsProjectsLocationsFunctionsSetIamPolicy+ payload+ resource =+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsSetIamPolicy =+ Policy+ type+ Scopes CloudFunctionsProjectsLocationsFunctionsSetIamPolicy =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicy {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsSetIamPolicyResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/SetupFunctionUpgradeConfig.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.CloudFunctions.Projects.Locations.Functions.SetupFunctionUpgradeConfig+-- 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 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig@.+module Gogol.CloudFunctions.Projects.Locations.Functions.SetupFunctionUpgradeConfig+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfigResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig (..),+ newCloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.setupFunctionUpgradeConfig@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfigResource =+ "v2"+ Core.:> Core.CaptureMode "name" "setupFunctionUpgradeConfig" 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] SetupFunctionUpgradeConfigRequest+ Core.:> Core.Post '[Core.JSON] Operation++-- | Creates a 2nd Gen copy of the function configuration based on the 1st Gen function with the given name. This is the first step of the multi step process to upgrade 1st Gen functions to 2nd Gen. Only 2nd Gen configuration is setup as part of this request and traffic continues to be served by 1st Gen.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig = CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig+ { -- | 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 function which should have configuration copied for upgrade.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: SetupFunctionUpgradeConfigRequest,+ -- | 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 'CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig ::+ -- | Required. The name of the function which should have configuration copied for upgrade. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ SetupFunctionUpgradeConfigRequest ->+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig+newCloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig+ name+ payload =+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol =+ Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig+ where+ type+ Rs+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig =+ Operation+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfig {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsSetupFunctionUpgradeConfigResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Functions/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.CloudFunctions.Projects.Locations.Functions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.testIamPermissions@.+module Gogol.CloudFunctions.Projects.Locations.Functions.TestIamPermissions+ ( -- * Resource+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissionsResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions (..),+ newCloudFunctionsProjectsLocationsFunctionsTestIamPermissions,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.functions.testIamPermissions@ method which the+-- 'CloudFunctionsProjectsLocationsFunctionsTestIamPermissions' request conforms to.+type CloudFunctionsProjectsLocationsFunctionsTestIamPermissionsResource =+ "v2"+ 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:/ 'newCloudFunctionsProjectsLocationsFunctionsTestIamPermissions' smart constructor.+data CloudFunctionsProjectsLocationsFunctionsTestIamPermissions = CloudFunctionsProjectsLocationsFunctionsTestIamPermissions+ { -- | 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 'CloudFunctionsProjectsLocationsFunctionsTestIamPermissions' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsFunctionsTestIamPermissions ::+ -- | 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 ->+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions+newCloudFunctionsProjectsLocationsFunctionsTestIamPermissions+ payload+ resource =+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ resource = resource,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions+ where+ type+ Rs CloudFunctionsProjectsLocationsFunctionsTestIamPermissions =+ TestIamPermissionsResponse+ type+ Scopes+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions =+ '[CloudPlatform'FullControl]+ requestClient+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissions {..} =+ go+ resource+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ CloudFunctionsProjectsLocationsFunctionsTestIamPermissionsResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/List.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.CloudFunctions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.list@.+module Gogol.CloudFunctions.Projects.Locations.List+ ( -- * Resource+ CloudFunctionsProjectsLocationsListResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsList (..),+ newCloudFunctionsProjectsLocationsList,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.list@ method which the+-- 'CloudFunctionsProjectsLocationsList' request conforms to.+type CloudFunctionsProjectsLocationsListResource =+ "v2"+ 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:/ 'newCloudFunctionsProjectsLocationsList' smart constructor.+data CloudFunctionsProjectsLocationsList = CloudFunctionsProjectsLocationsList+ { -- | 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 'CloudFunctionsProjectsLocationsList' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsList ::+ -- | The resource that owns the locations collection, if applicable. See 'name'.+ Core.Text ->+ CloudFunctionsProjectsLocationsList+newCloudFunctionsProjectsLocationsList name =+ CloudFunctionsProjectsLocationsList+ { 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 CloudFunctionsProjectsLocationsList where+ type Rs CloudFunctionsProjectsLocationsList = ListLocationsResponse+ type+ Scopes CloudFunctionsProjectsLocationsList =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsListResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Operations/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.CloudFunctions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.operations.get@.+module Gogol.CloudFunctions.Projects.Locations.Operations.Get+ ( -- * Resource+ CloudFunctionsProjectsLocationsOperationsGetResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsOperationsGet (..),+ newCloudFunctionsProjectsLocationsOperationsGet,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.operations.get@ method which the+-- 'CloudFunctionsProjectsLocationsOperationsGet' request conforms to.+type CloudFunctionsProjectsLocationsOperationsGetResource =+ "v2"+ 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:/ 'newCloudFunctionsProjectsLocationsOperationsGet' smart constructor.+data CloudFunctionsProjectsLocationsOperationsGet = CloudFunctionsProjectsLocationsOperationsGet+ { -- | 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 'CloudFunctionsProjectsLocationsOperationsGet' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsOperationsGet ::+ -- | The name of the operation resource. See 'name'.+ Core.Text ->+ CloudFunctionsProjectsLocationsOperationsGet+newCloudFunctionsProjectsLocationsOperationsGet name =+ CloudFunctionsProjectsLocationsOperationsGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsOperationsGet+ where+ type Rs CloudFunctionsProjectsLocationsOperationsGet = Operation+ type+ Scopes CloudFunctionsProjectsLocationsOperationsGet =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsOperationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsOperationsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Operations/List.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.CloudFunctions.Projects.Locations.Operations.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 operations that match the specified filter in the request. If the server doesn\'t support this method, it returns @UNIMPLEMENTED@.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.operations.list@.+module Gogol.CloudFunctions.Projects.Locations.Operations.List+ ( -- * Resource+ CloudFunctionsProjectsLocationsOperationsListResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsOperationsList (..),+ newCloudFunctionsProjectsLocationsOperationsList,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.operations.list@ method which the+-- 'CloudFunctionsProjectsLocationsOperationsList' request conforms to.+type CloudFunctionsProjectsLocationsOperationsListResource =+ "v2"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "operations"+ 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] ListOperationsResponse++-- | Lists operations that match the specified filter in the request. If the server doesn\'t support this method, it returns @UNIMPLEMENTED@.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsOperationsList' smart constructor.+data CloudFunctionsProjectsLocationsOperationsList = CloudFunctionsProjectsLocationsOperationsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The standard list filter.+ filter :: (Core.Maybe Core.Text),+ -- | The name of the operation\'s parent resource.+ name :: Core.Text,+ -- | The standard list page size.+ pageSize :: (Core.Maybe Core.Int32),+ -- | The standard list page token.+ 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 'CloudFunctionsProjectsLocationsOperationsList' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsOperationsList ::+ -- | The name of the operation\'s parent resource. See 'name'.+ Core.Text ->+ CloudFunctionsProjectsLocationsOperationsList+newCloudFunctionsProjectsLocationsOperationsList name =+ CloudFunctionsProjectsLocationsOperationsList+ { 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+ CloudFunctionsProjectsLocationsOperationsList+ where+ type+ Rs CloudFunctionsProjectsLocationsOperationsList =+ ListOperationsResponse+ type+ Scopes CloudFunctionsProjectsLocationsOperationsList =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsOperationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsOperationsListResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Projects/Locations/Runtimes/List.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.CloudFunctions.Projects.Locations.Runtimes.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)+--+-- Returns a list of runtimes that are supported for the requested project.+--+-- /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.runtimes.list@.+module Gogol.CloudFunctions.Projects.Locations.Runtimes.List+ ( -- * Resource+ CloudFunctionsProjectsLocationsRuntimesListResource,++ -- ** Constructing a Request+ CloudFunctionsProjectsLocationsRuntimesList (..),+ newCloudFunctionsProjectsLocationsRuntimesList,+ )+where++import Gogol.CloudFunctions.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudfunctions.projects.locations.runtimes.list@ method which the+-- 'CloudFunctionsProjectsLocationsRuntimesList' request conforms to.+type CloudFunctionsProjectsLocationsRuntimesListResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "runtimes"+ 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 "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListRuntimesResponse++-- | Returns a list of runtimes that are supported for the requested project.+--+-- /See:/ 'newCloudFunctionsProjectsLocationsRuntimesList' smart constructor.+data CloudFunctionsProjectsLocationsRuntimesList = CloudFunctionsProjectsLocationsRuntimesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The filter for Runtimes that match the filter expression, following the syntax outlined in https:\/\/google.aip.dev\/160.+ filter :: (Core.Maybe Core.Text),+ -- | Required. The project and location from which the runtimes should be listed, specified 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 'CloudFunctionsProjectsLocationsRuntimesList' with the minimum fields required to make a request.+newCloudFunctionsProjectsLocationsRuntimesList ::+ -- | Required. The project and location from which the runtimes should be listed, specified in the format @projects\/*\/locations\/*@ See 'parent'.+ Core.Text ->+ CloudFunctionsProjectsLocationsRuntimesList+newCloudFunctionsProjectsLocationsRuntimesList parent =+ CloudFunctionsProjectsLocationsRuntimesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudFunctionsProjectsLocationsRuntimesList+ where+ type+ Rs CloudFunctionsProjectsLocationsRuntimesList =+ ListRuntimesResponse+ type+ Scopes CloudFunctionsProjectsLocationsRuntimesList =+ '[CloudPlatform'FullControl]+ requestClient CloudFunctionsProjectsLocationsRuntimesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ filter+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudFunctionsService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudFunctionsProjectsLocationsRuntimesListResource+ )+ Core.mempty
+ gen/Gogol/CloudFunctions/Types.hs view
@@ -0,0 +1,335 @@+{-# 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.CloudFunctions.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.CloudFunctions.Types+ ( -- * Configuration+ cloudFunctionsService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AbortFunctionUpgradeRequest+ AbortFunctionUpgradeRequest (..),+ newAbortFunctionUpgradeRequest,++ -- ** AuditConfig+ AuditConfig (..),+ newAuditConfig,++ -- ** AuditLogConfig+ AuditLogConfig (..),+ newAuditLogConfig,++ -- ** AuditLogConfig_LogType+ AuditLogConfig_LogType (..),++ -- ** AutomaticUpdatePolicy+ AutomaticUpdatePolicy (..),+ newAutomaticUpdatePolicy,++ -- ** Binding+ Binding (..),+ newBinding,++ -- ** BuildConfig+ BuildConfig (..),+ newBuildConfig,++ -- ** BuildConfig_DockerRegistry+ BuildConfig_DockerRegistry (..),++ -- ** BuildConfig_EnvironmentVariables+ BuildConfig_EnvironmentVariables (..),+ newBuildConfig_EnvironmentVariables,++ -- ** CommitFunctionUpgradeRequest+ CommitFunctionUpgradeRequest (..),+ newCommitFunctionUpgradeRequest,++ -- ** Date+ Date (..),+ newDate,++ -- ** DetachFunctionRequest+ DetachFunctionRequest (..),+ newDetachFunctionRequest,++ -- ** EventFilter+ EventFilter (..),+ newEventFilter,++ -- ** EventTrigger+ EventTrigger (..),+ newEventTrigger,++ -- ** EventTrigger_RetryPolicy+ EventTrigger_RetryPolicy (..),++ -- ** Expr+ Expr (..),+ newExpr,++ -- ** Function+ Function (..),+ newFunction,++ -- ** Function_Environment+ Function_Environment (..),++ -- ** Function_Labels+ Function_Labels (..),+ newFunction_Labels,++ -- ** Function_State+ Function_State (..),++ -- ** GenerateDownloadUrlRequest+ GenerateDownloadUrlRequest (..),+ newGenerateDownloadUrlRequest,++ -- ** GenerateDownloadUrlResponse+ GenerateDownloadUrlResponse (..),+ newGenerateDownloadUrlResponse,++ -- ** GenerateUploadUrlRequest+ GenerateUploadUrlRequest (..),+ newGenerateUploadUrlRequest,++ -- ** GenerateUploadUrlRequest_Environment+ GenerateUploadUrlRequest_Environment (..),++ -- ** GenerateUploadUrlResponse+ GenerateUploadUrlResponse (..),+ newGenerateUploadUrlResponse,++ -- ** GoogleCloudFunctionsV2LocationMetadata+ GoogleCloudFunctionsV2LocationMetadata (..),+ newGoogleCloudFunctionsV2LocationMetadata,++ -- ** GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem+ GoogleCloudFunctionsV2LocationMetadata_EnvironmentsItem (..),++ -- ** GoogleCloudFunctionsV2OperationMetadata+ GoogleCloudFunctionsV2OperationMetadata (..),+ newGoogleCloudFunctionsV2OperationMetadata,++ -- ** GoogleCloudFunctionsV2OperationMetadata_OperationType+ GoogleCloudFunctionsV2OperationMetadata_OperationType (..),++ -- ** GoogleCloudFunctionsV2OperationMetadata_RequestResource+ GoogleCloudFunctionsV2OperationMetadata_RequestResource (..),+ newGoogleCloudFunctionsV2OperationMetadata_RequestResource,++ -- ** GoogleCloudFunctionsV2Stage+ GoogleCloudFunctionsV2Stage (..),+ newGoogleCloudFunctionsV2Stage,++ -- ** GoogleCloudFunctionsV2Stage_Name+ GoogleCloudFunctionsV2Stage_Name (..),++ -- ** GoogleCloudFunctionsV2Stage_State+ GoogleCloudFunctionsV2Stage_State (..),++ -- ** GoogleCloudFunctionsV2StateMessage+ GoogleCloudFunctionsV2StateMessage (..),+ newGoogleCloudFunctionsV2StateMessage,++ -- ** GoogleCloudFunctionsV2StateMessage_Severity+ GoogleCloudFunctionsV2StateMessage_Severity (..),++ -- ** ListFunctionsResponse+ ListFunctionsResponse (..),+ newListFunctionsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** ListRuntimesResponse+ ListRuntimesResponse (..),+ newListRuntimesResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** OnDeployUpdatePolicy+ OnDeployUpdatePolicy (..),+ newOnDeployUpdatePolicy,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OperationMetadataV1+ OperationMetadataV1 (..),+ newOperationMetadataV1,++ -- ** OperationMetadataV1_Request+ OperationMetadataV1_Request (..),+ newOperationMetadataV1_Request,++ -- ** OperationMetadataV1_Type+ OperationMetadataV1_Type (..),++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** RedirectFunctionUpgradeTrafficRequest+ RedirectFunctionUpgradeTrafficRequest (..),+ newRedirectFunctionUpgradeTrafficRequest,++ -- ** RepoSource+ RepoSource (..),+ newRepoSource,++ -- ** RollbackFunctionUpgradeTrafficRequest+ RollbackFunctionUpgradeTrafficRequest (..),+ newRollbackFunctionUpgradeTrafficRequest,++ -- ** Runtime+ Runtime (..),+ newRuntime,++ -- ** Runtime_Environment+ Runtime_Environment (..),++ -- ** Runtime_Stage+ Runtime_Stage (..),++ -- ** SecretEnvVar+ SecretEnvVar (..),+ newSecretEnvVar,++ -- ** SecretVersion+ SecretVersion (..),+ newSecretVersion,++ -- ** SecretVolume+ SecretVolume (..),+ newSecretVolume,++ -- ** ServiceConfig+ ServiceConfig (..),+ newServiceConfig,++ -- ** ServiceConfig_EnvironmentVariables+ ServiceConfig_EnvironmentVariables (..),+ newServiceConfig_EnvironmentVariables,++ -- ** ServiceConfig_IngressSettings+ ServiceConfig_IngressSettings (..),++ -- ** ServiceConfig_SecurityLevel+ ServiceConfig_SecurityLevel (..),++ -- ** ServiceConfig_VpcConnectorEgressSettings+ ServiceConfig_VpcConnectorEgressSettings (..),++ -- ** SetIamPolicyRequest+ SetIamPolicyRequest (..),+ newSetIamPolicyRequest,++ -- ** SetupFunctionUpgradeConfigRequest+ SetupFunctionUpgradeConfigRequest (..),+ newSetupFunctionUpgradeConfigRequest,++ -- ** Source+ Source (..),+ newSource,++ -- ** SourceProvenance+ SourceProvenance (..),+ newSourceProvenance,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StorageSource+ StorageSource (..),+ newStorageSource,++ -- ** TestIamPermissionsRequest+ TestIamPermissionsRequest (..),+ newTestIamPermissionsRequest,++ -- ** TestIamPermissionsResponse+ TestIamPermissionsResponse (..),+ newTestIamPermissionsResponse,++ -- ** UpgradeInfo+ UpgradeInfo (..),+ newUpgradeInfo,++ -- ** UpgradeInfo_UpgradeState+ UpgradeInfo_UpgradeState (..),+ )+where++import Gogol.CloudFunctions.Internal.Product+import Gogol.CloudFunctions.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v2@ of the Cloud Functions API. This contains the host and root path used as a starting point for constructing service requests.+cloudFunctionsService :: Core.ServiceConfig+cloudFunctionsService =+ Core.defaultService+ (Core.ServiceId "cloudfunctions:v2")+ "cloudfunctions.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"
− gen/Network/Google/CloudFunctions.hs
@@ -1,371 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.CloudFunctions--- 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 lightweight user-provided functions executed in response to--- events.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference>-module Network.Google.CloudFunctions- (- -- * Service Configuration- cloudFunctionsService-- -- * OAuth Scopes- , cloudPlatformScope-- -- * API Declaration- , CloudFunctionsAPI-- -- * Resources-- -- ** cloudfunctions.operations.get- , module Network.Google.Resource.CloudFunctions.Operations.Get-- -- ** cloudfunctions.operations.list- , module Network.Google.Resource.CloudFunctions.Operations.List-- -- ** cloudfunctions.projects.locations.functions.call- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Call-- -- ** cloudfunctions.projects.locations.functions.create- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create-- -- ** cloudfunctions.projects.locations.functions.delete- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Delete-- -- ** cloudfunctions.projects.locations.functions.generateDownloadUrl- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateDownloadURL-- -- ** cloudfunctions.projects.locations.functions.generateUploadUrl- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateUploadURL-- -- ** cloudfunctions.projects.locations.functions.get- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Get-- -- ** cloudfunctions.projects.locations.functions.getIamPolicy- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GetIAMPolicy-- -- ** cloudfunctions.projects.locations.functions.list- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.List-- -- ** cloudfunctions.projects.locations.functions.patch- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Patch-- -- ** cloudfunctions.projects.locations.functions.setIamPolicy- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.SetIAMPolicy-- -- ** cloudfunctions.projects.locations.functions.testIamPermissions- , module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.TestIAMPermissions-- -- ** cloudfunctions.projects.locations.list- , module Network.Google.Resource.CloudFunctions.Projects.Locations.List-- -- * Types-- -- ** Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- ** AuditConfig- , AuditConfig- , auditConfig- , acService- , acAuditLogConfigs-- -- ** OperationMetadataV1Type- , OperationMetadataV1Type (..)-- -- ** OperationMetadataV1Beta2- , OperationMetadataV1Beta2- , operationMetadataV1Beta2- , omvbVersionId- , omvbUpdateTime- , omvbType- , omvbTarget- , omvbRequest-- -- ** Expr- , Expr- , expr- , eLocation- , eExpression- , eTitle- , eDescription-- -- ** ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- ** ListOperationsResponse- , ListOperationsResponse- , listOperationsResponse- , lorNextPageToken- , lorOperations-- -- ** GenerateUploadURLRequest- , GenerateUploadURLRequest- , generateUploadURLRequest-- -- ** Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- ** Operation- , Operation- , operation- , oDone- , oError- , oResponse- , oName- , oMetadata-- -- ** GenerateDownloadURLRequest- , GenerateDownloadURLRequest- , generateDownloadURLRequest- , gdurVersionId-- -- ** Retry- , Retry- , retry-- -- ** GenerateUploadURLResponse- , GenerateUploadURLResponse- , generateUploadURLResponse- , guurUploadURL-- -- ** FailurePolicy- , FailurePolicy- , failurePolicy- , fpRetry-- -- ** CallFunctionResponse- , CallFunctionResponse- , callFunctionResponse- , cfrExecutionId- , cfrError- , cfrResult-- -- ** HTTPSTrigger- , HTTPSTrigger- , httpsTrigger- , htURL-- -- ** StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- ** CloudFunctionEnvironmentVariables- , CloudFunctionEnvironmentVariables- , cloudFunctionEnvironmentVariables- , cfevAddtional-- -- ** OperationMetadataV1Request- , OperationMetadataV1Request- , operationMetadataV1Request- , omvrAddtional-- -- ** SetIAMPolicyRequest- , SetIAMPolicyRequest- , setIAMPolicyRequest- , siprUpdateMask- , siprPolicy-- -- ** EventTrigger- , EventTrigger- , eventTrigger- , etService- , etFailurePolicy- , etEventType- , etResource-- -- ** SourceRepository- , SourceRepository- , sourceRepository- , srURL- , srDeployedURL-- -- ** OperationMetadataV1- , OperationMetadataV1- , operationMetadataV1- , omvVersionId- , omvUpdateTime- , omvType- , omvTarget- , omvRequest-- -- ** CloudFunctionStatus- , CloudFunctionStatus (..)-- -- ** OperationMetadataV1Beta2Type- , OperationMetadataV1Beta2Type (..)-- -- ** GenerateDownloadURLResponse- , GenerateDownloadURLResponse- , generateDownloadURLResponse- , gdurDownloadURL-- -- ** AuditLogConfigLogType- , AuditLogConfigLogType (..)-- -- ** Xgafv- , Xgafv (..)-- -- ** TestIAMPermissionsRequest- , TestIAMPermissionsRequest- , testIAMPermissionsRequest- , tiprPermissions-- -- ** TestIAMPermissionsResponse- , TestIAMPermissionsResponse- , testIAMPermissionsResponse- , tiamprPermissions-- -- ** Policy- , Policy- , policy- , pAuditConfigs- , pEtag- , pVersion- , pBindings-- -- ** LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- ** ListFunctionsResponse- , ListFunctionsResponse- , listFunctionsResponse- , lfrNextPageToken- , lfrFunctions-- -- ** LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- ** OperationMetadata- , OperationMetadata- , operationMetadata- , omAddtional-- -- ** AuditLogConfig- , AuditLogConfig- , auditLogConfig- , alcLogType- , alcExemptedMembers-- -- ** CloudFunction- , CloudFunction- , cloudFunction- , cfRuntime- , cfStatus- , cfSourceArchiveURL- , cfVersionId- , cfSourceUploadURL- , cfEntryPoint- , cfHTTPSTrigger- , cfNetwork- , cfMaxInstances- , cfEventTrigger- , cfUpdateTime- , cfName- , cfSourceRepository- , cfAvailableMemoryMb- , cfLabels- , cfServiceAccountEmail- , cfEnvironmentVariables- , cfTimeout- , cfVPCConnector- , cfDescription-- -- ** OperationMetadataV1Beta2Request- , OperationMetadataV1Beta2Request- , operationMetadataV1Beta2Request- , omvbrAddtional-- -- ** CloudFunctionLabels- , CloudFunctionLabels- , cloudFunctionLabels- , cflAddtional-- -- ** OperationResponse- , OperationResponse- , operationResponse- , orAddtional-- -- ** CallFunctionRequest- , CallFunctionRequest- , callFunctionRequest- , cfrData-- -- ** Binding- , Binding- , binding- , bMembers- , bRole- , bCondition- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude-import Network.Google.Resource.CloudFunctions.Operations.Get-import Network.Google.Resource.CloudFunctions.Operations.List-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Call-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Delete-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateDownloadURL-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateUploadURL-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Get-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GetIAMPolicy-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.List-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Patch-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.SetIAMPolicy-import Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.TestIAMPermissions-import Network.Google.Resource.CloudFunctions.Projects.Locations.List--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Cloud Functions API service.-type CloudFunctionsAPI =- OperationsListResource :<|> OperationsGetResource- :<|> ProjectsLocationsFunctionsListResource- :<|> ProjectsLocationsFunctionsCallResource- :<|>- ProjectsLocationsFunctionsGenerateUploadURLResource- :<|> ProjectsLocationsFunctionsGetIAMPolicyResource- :<|> ProjectsLocationsFunctionsPatchResource- :<|> ProjectsLocationsFunctionsGetResource- :<|> ProjectsLocationsFunctionsCreateResource- :<|>- ProjectsLocationsFunctionsGenerateDownloadURLResource- :<|> ProjectsLocationsFunctionsSetIAMPolicyResource- :<|>- ProjectsLocationsFunctionsTestIAMPermissionsResource- :<|> ProjectsLocationsFunctionsDeleteResource- :<|> ProjectsLocationsListResource
− gen/Network/Google/CloudFunctions/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.CloudFunctions.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.CloudFunctions.Types- (- -- * Service Configuration- cloudFunctionsService-- -- * OAuth Scopes- , cloudPlatformScope-- -- * Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- * AuditConfig- , AuditConfig- , auditConfig- , acService- , acAuditLogConfigs-- -- * OperationMetadataV1Type- , OperationMetadataV1Type (..)-- -- * OperationMetadataV1Beta2- , OperationMetadataV1Beta2- , operationMetadataV1Beta2- , omvbVersionId- , omvbUpdateTime- , omvbType- , omvbTarget- , omvbRequest-- -- * Expr- , Expr- , expr- , eLocation- , eExpression- , eTitle- , eDescription-- -- * ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- * ListOperationsResponse- , ListOperationsResponse- , listOperationsResponse- , lorNextPageToken- , lorOperations-- -- * GenerateUploadURLRequest- , GenerateUploadURLRequest- , generateUploadURLRequest-- -- * Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- * Operation- , Operation- , operation- , oDone- , oError- , oResponse- , oName- , oMetadata-- -- * GenerateDownloadURLRequest- , GenerateDownloadURLRequest- , generateDownloadURLRequest- , gdurVersionId-- -- * Retry- , Retry- , retry-- -- * GenerateUploadURLResponse- , GenerateUploadURLResponse- , generateUploadURLResponse- , guurUploadURL-- -- * FailurePolicy- , FailurePolicy- , failurePolicy- , fpRetry-- -- * CallFunctionResponse- , CallFunctionResponse- , callFunctionResponse- , cfrExecutionId- , cfrError- , cfrResult-- -- * HTTPSTrigger- , HTTPSTrigger- , httpsTrigger- , htURL-- -- * StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- * CloudFunctionEnvironmentVariables- , CloudFunctionEnvironmentVariables- , cloudFunctionEnvironmentVariables- , cfevAddtional-- -- * OperationMetadataV1Request- , OperationMetadataV1Request- , operationMetadataV1Request- , omvrAddtional-- -- * SetIAMPolicyRequest- , SetIAMPolicyRequest- , setIAMPolicyRequest- , siprUpdateMask- , siprPolicy-- -- * EventTrigger- , EventTrigger- , eventTrigger- , etService- , etFailurePolicy- , etEventType- , etResource-- -- * SourceRepository- , SourceRepository- , sourceRepository- , srURL- , srDeployedURL-- -- * OperationMetadataV1- , OperationMetadataV1- , operationMetadataV1- , omvVersionId- , omvUpdateTime- , omvType- , omvTarget- , omvRequest-- -- * CloudFunctionStatus- , CloudFunctionStatus (..)-- -- * OperationMetadataV1Beta2Type- , OperationMetadataV1Beta2Type (..)-- -- * GenerateDownloadURLResponse- , GenerateDownloadURLResponse- , generateDownloadURLResponse- , gdurDownloadURL-- -- * AuditLogConfigLogType- , AuditLogConfigLogType (..)-- -- * Xgafv- , Xgafv (..)-- -- * TestIAMPermissionsRequest- , TestIAMPermissionsRequest- , testIAMPermissionsRequest- , tiprPermissions-- -- * TestIAMPermissionsResponse- , TestIAMPermissionsResponse- , testIAMPermissionsResponse- , tiamprPermissions-- -- * Policy- , Policy- , policy- , pAuditConfigs- , pEtag- , pVersion- , pBindings-- -- * LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- * ListFunctionsResponse- , ListFunctionsResponse- , listFunctionsResponse- , lfrNextPageToken- , lfrFunctions-- -- * LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- * OperationMetadata- , OperationMetadata- , operationMetadata- , omAddtional-- -- * AuditLogConfig- , AuditLogConfig- , auditLogConfig- , alcLogType- , alcExemptedMembers-- -- * CloudFunction- , CloudFunction- , cloudFunction- , cfRuntime- , cfStatus- , cfSourceArchiveURL- , cfVersionId- , cfSourceUploadURL- , cfEntryPoint- , cfHTTPSTrigger- , cfNetwork- , cfMaxInstances- , cfEventTrigger- , cfUpdateTime- , cfName- , cfSourceRepository- , cfAvailableMemoryMb- , cfLabels- , cfServiceAccountEmail- , cfEnvironmentVariables- , cfTimeout- , cfVPCConnector- , cfDescription-- -- * OperationMetadataV1Beta2Request- , OperationMetadataV1Beta2Request- , operationMetadataV1Beta2Request- , omvbrAddtional-- -- * CloudFunctionLabels- , CloudFunctionLabels- , cloudFunctionLabels- , cflAddtional-- -- * OperationResponse- , OperationResponse- , operationResponse- , orAddtional-- -- * CallFunctionRequest- , CallFunctionRequest- , callFunctionRequest- , cfrData-- -- * Binding- , Binding- , binding- , bMembers- , bRole- , bCondition- ) where--import Network.Google.CloudFunctions.Types.Product-import Network.Google.CloudFunctions.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Cloud Functions API. This contains the host and root path used as a starting point for constructing service requests.-cloudFunctionsService :: ServiceConfig-cloudFunctionsService- = defaultService (ServiceId "cloudfunctions:v1")- "cloudfunctions.googleapis.com"---- | View and manage your data across Google Cloud Platform services-cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]-cloudPlatformScope = Proxy
− gen/Network/Google/CloudFunctions/Types/Product.hs
@@ -1,2293 +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.CloudFunctions.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.CloudFunctions.Types.Product where--import Network.Google.CloudFunctions.Types.Sum-import Network.Google.Prelude---- | 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 [gRPC](https:\/\/github.com\/grpc). The error model is--- designed to be: - Simple to use and understand for most users - Flexible--- enough to meet unexpected needs # Overview The \`Status\` message--- contains three pieces of data: error code, error message, and error--- details. The error code should be an enum value of google.rpc.Code, but--- it may accept additional error codes if needed. The error message should--- be a developer-facing English message that helps developers *understand*--- and *resolve* the error. If a localized user-facing error message is--- needed, put the localized message in the error details or localize it in--- the client. The optional error details may contain arbitrary information--- about the error. There is a predefined set of error detail types in the--- package \`google.rpc\` that can be used for common error conditions. #--- Language mapping The \`Status\` message is the logical representation of--- the error model, but it is not necessarily the actual wire format. When--- the \`Status\` message is exposed in different client libraries and--- different wire protocols, it can be mapped differently. For example, it--- will likely be mapped to some exceptions in Java, but more likely mapped--- to some error codes in C. # Other uses The error model and the--- \`Status\` message can be used in a variety of environments, either with--- or without APIs, to provide a consistent developer experience across--- different environments. Example uses of this error model include: ---- Partial errors. If a service needs to return partial errors to the--- client, it may embed the \`Status\` in the normal response to indicate--- the partial errors. - Workflow errors. A typical workflow has multiple--- steps. Each step may have a \`Status\` message for error reporting. ---- Batch operations. If a client uses batch request and batch response, the--- \`Status\` message should be used directly inside batch response, one--- for each error sub-response. - Asynchronous operations. If an API call--- embeds asynchronous operation results in its response, the status of--- those operations should be represented directly using the \`Status\`--- message. - Logging. If some API errors are stored in logs, the message--- \`Status\` could be used directly after any stripping needed for--- security\/privacy reasons.------ /See:/ 'status' smart constructor.-data Status =- Status'- { _sDetails :: !(Maybe [StatusDetailsItem])- , _sCode :: !(Maybe (Textual Int32))- , _sMessage :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Status' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sDetails'------ * 'sCode'------ * 'sMessage'-status- :: Status-status = Status' {_sDetails = Nothing, _sCode = Nothing, _sMessage = Nothing}----- | A list of messages that carry the error details. There is a common set--- of message types for APIs to use.-sDetails :: Lens' Status [StatusDetailsItem]-sDetails- = lens _sDetails (\ s a -> s{_sDetails = a}) .- _Default- . _Coerce---- | The status code, which should be an enum value of google.rpc.Code.-sCode :: Lens' Status (Maybe Int32)-sCode- = lens _sCode (\ s a -> s{_sCode = a}) .- mapping _Coerce---- | 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.-sMessage :: Lens' Status (Maybe Text)-sMessage = lens _sMessage (\ s a -> s{_sMessage = a})--instance FromJSON Status where- parseJSON- = withObject "Status"- (\ o ->- Status' <$>- (o .:? "details" .!= mempty) <*> (o .:? "code") <*>- (o .:? "message"))--instance ToJSON Status where- toJSON Status'{..}- = object- (catMaybes- [("details" .=) <$> _sDetails,- ("code" .=) <$> _sCode,- ("message" .=) <$> _sMessage])---- | 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])---- | Metadata describing an Operation------ /See:/ 'operationMetadataV1Beta2' smart constructor.-data OperationMetadataV1Beta2 =- OperationMetadataV1Beta2'- { _omvbVersionId :: !(Maybe (Textual Int64))- , _omvbUpdateTime :: !(Maybe DateTime')- , _omvbType :: !(Maybe OperationMetadataV1Beta2Type)- , _omvbTarget :: !(Maybe Text)- , _omvbRequest :: !(Maybe OperationMetadataV1Beta2Request)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadataV1Beta2' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omvbVersionId'------ * 'omvbUpdateTime'------ * 'omvbType'------ * 'omvbTarget'------ * 'omvbRequest'-operationMetadataV1Beta2- :: OperationMetadataV1Beta2-operationMetadataV1Beta2 =- OperationMetadataV1Beta2'- { _omvbVersionId = Nothing- , _omvbUpdateTime = Nothing- , _omvbType = Nothing- , _omvbTarget = Nothing- , _omvbRequest = Nothing- }----- | Version id of the function created or updated by an API call. This field--- is only populated for Create and Update operations.-omvbVersionId :: Lens' OperationMetadataV1Beta2 (Maybe Int64)-omvbVersionId- = lens _omvbVersionId- (\ s a -> s{_omvbVersionId = a})- . mapping _Coerce---- | The last update timestamp of the operation.-omvbUpdateTime :: Lens' OperationMetadataV1Beta2 (Maybe UTCTime)-omvbUpdateTime- = lens _omvbUpdateTime- (\ s a -> s{_omvbUpdateTime = a})- . mapping _DateTime---- | Type of operation.-omvbType :: Lens' OperationMetadataV1Beta2 (Maybe OperationMetadataV1Beta2Type)-omvbType = lens _omvbType (\ s a -> s{_omvbType = a})---- | Target of the operation - for example--- projects\/project-1\/locations\/region-1\/functions\/function-1-omvbTarget :: Lens' OperationMetadataV1Beta2 (Maybe Text)-omvbTarget- = lens _omvbTarget (\ s a -> s{_omvbTarget = a})---- | The original request that started the operation.-omvbRequest :: Lens' OperationMetadataV1Beta2 (Maybe OperationMetadataV1Beta2Request)-omvbRequest- = lens _omvbRequest (\ s a -> s{_omvbRequest = a})--instance FromJSON OperationMetadataV1Beta2 where- parseJSON- = withObject "OperationMetadataV1Beta2"- (\ o ->- OperationMetadataV1Beta2' <$>- (o .:? "versionId") <*> (o .:? "updateTime") <*>- (o .:? "type")- <*> (o .:? "target")- <*> (o .:? "request"))--instance ToJSON OperationMetadataV1Beta2 where- toJSON OperationMetadataV1Beta2'{..}- = object- (catMaybes- [("versionId" .=) <$> _omvbVersionId,- ("updateTime" .=) <$> _omvbUpdateTime,- ("type" .=) <$> _omvbType,- ("target" .=) <$> _omvbTarget,- ("request" .=) <$> _omvbRequest])---- | 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])---- | The response message for Operations.ListOperations.------ /See:/ 'listOperationsResponse' smart constructor.-data ListOperationsResponse =- ListOperationsResponse'- { _lorNextPageToken :: !(Maybe Text)- , _lorOperations :: !(Maybe [Operation])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListOperationsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lorNextPageToken'------ * 'lorOperations'-listOperationsResponse- :: ListOperationsResponse-listOperationsResponse =- ListOperationsResponse'- {_lorNextPageToken = Nothing, _lorOperations = Nothing}----- | The standard List next-page token.-lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text)-lorNextPageToken- = lens _lorNextPageToken- (\ s a -> s{_lorNextPageToken = a})---- | A list of operations that matches the specified filter in the request.-lorOperations :: Lens' ListOperationsResponse [Operation]-lorOperations- = lens _lorOperations- (\ s a -> s{_lorOperations = a})- . _Default- . _Coerce--instance FromJSON ListOperationsResponse where- parseJSON- = withObject "ListOperationsResponse"- (\ o ->- ListOperationsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "operations" .!= mempty))--instance ToJSON ListOperationsResponse where- toJSON ListOperationsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lorNextPageToken,- ("operations" .=) <$> _lorOperations])---- | Request of \`GenerateSourceUploadUrl\` method.------ /See:/ 'generateUploadURLRequest' smart constructor.-data GenerateUploadURLRequest =- GenerateUploadURLRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GenerateUploadURLRequest' with the minimum fields required to make a request.----generateUploadURLRequest- :: GenerateUploadURLRequest-generateUploadURLRequest = GenerateUploadURLRequest'---instance FromJSON GenerateUploadURLRequest where- parseJSON- = withObject "GenerateUploadURLRequest"- (\ o -> pure GenerateUploadURLRequest')--instance ToJSON GenerateUploadURLRequest where- toJSON = const emptyObject---- | A resource that represents Google Cloud Platform location.------ /See:/ 'location' smart constructor.-data Location =- Location'- { _lName :: !(Maybe Text)- , _lMetadata :: !(Maybe LocationMetadata)- , _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 LocationMetadata)-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])---- | This resource represents a long-running operation that is the result of--- a network API call.------ /See:/ 'operation' smart constructor.-data Operation =- Operation'- { _oDone :: !(Maybe Bool)- , _oError :: !(Maybe Status)- , _oResponse :: !(Maybe OperationResponse)- , _oName :: !(Maybe Text)- , _oMetadata :: !(Maybe OperationMetadata)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Operation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'oDone'------ * 'oError'------ * 'oResponse'------ * 'oName'------ * 'oMetadata'-operation- :: Operation-operation =- Operation'- { _oDone = Nothing- , _oError = Nothing- , _oResponse = Nothing- , _oName = Nothing- , _oMetadata = Nothing- }----- | 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.-oDone :: Lens' Operation (Maybe Bool)-oDone = lens _oDone (\ s a -> s{_oDone = a})---- | The error result of the operation in case of failure or cancellation.-oError :: Lens' Operation (Maybe Status)-oError = lens _oError (\ s a -> s{_oError = a})---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as \`Delete\`, the response is--- \`google.protobuf.Empty\`. If the original method is standard--- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.--- For other methods, the response should have the type \`XxxResponse\`,--- where \`Xxx\` is the original method name. For example, if the original--- method name is \`TakeSnapshot()\`, the inferred response type is--- \`TakeSnapshotResponse\`.-oResponse :: Lens' Operation (Maybe OperationResponse)-oResponse- = lens _oResponse (\ s a -> s{_oResponse = a})---- | 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 have the format of \`operations\/some\/unique\/name\`.-oName :: Lens' Operation (Maybe Text)-oName = lens _oName (\ s a -> s{_oName = a})---- | 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.-oMetadata :: Lens' Operation (Maybe OperationMetadata)-oMetadata- = lens _oMetadata (\ s a -> s{_oMetadata = a})--instance FromJSON Operation where- parseJSON- = withObject "Operation"- (\ o ->- Operation' <$>- (o .:? "done") <*> (o .:? "error") <*>- (o .:? "response")- <*> (o .:? "name")- <*> (o .:? "metadata"))--instance ToJSON Operation where- toJSON Operation'{..}- = object- (catMaybes- [("done" .=) <$> _oDone, ("error" .=) <$> _oError,- ("response" .=) <$> _oResponse,- ("name" .=) <$> _oName,- ("metadata" .=) <$> _oMetadata])---- | Request of \`GenerateDownloadUrl\` method.------ /See:/ 'generateDownloadURLRequest' smart constructor.-newtype GenerateDownloadURLRequest =- GenerateDownloadURLRequest'- { _gdurVersionId :: Maybe (Textual Word64)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GenerateDownloadURLRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gdurVersionId'-generateDownloadURLRequest- :: GenerateDownloadURLRequest-generateDownloadURLRequest =- GenerateDownloadURLRequest' {_gdurVersionId = Nothing}----- | The optional version of function. If not set, default, current version--- is used.-gdurVersionId :: Lens' GenerateDownloadURLRequest (Maybe Word64)-gdurVersionId- = lens _gdurVersionId- (\ s a -> s{_gdurVersionId = a})- . mapping _Coerce--instance FromJSON GenerateDownloadURLRequest where- parseJSON- = withObject "GenerateDownloadURLRequest"- (\ o ->- GenerateDownloadURLRequest' <$> (o .:? "versionId"))--instance ToJSON GenerateDownloadURLRequest where- toJSON GenerateDownloadURLRequest'{..}- = object- (catMaybes [("versionId" .=) <$> _gdurVersionId])---- | Describes the retry policy in case of function\'s execution failure. A--- function execution will be retried on any failure. A failed execution--- will be retried up to 7 days with an exponential backoff (capped at 10--- seconds). Retried execution is charged as any other execution.------ /See:/ 'retry' smart constructor.-data Retry =- Retry'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Retry' with the minimum fields required to make a request.----retry- :: Retry-retry = Retry'---instance FromJSON Retry where- parseJSON = withObject "Retry" (\ o -> pure Retry')--instance ToJSON Retry where- toJSON = const emptyObject---- | Response of \`GenerateSourceUploadUrl\` method.------ /See:/ 'generateUploadURLResponse' smart constructor.-newtype GenerateUploadURLResponse =- GenerateUploadURLResponse'- { _guurUploadURL :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GenerateUploadURLResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'guurUploadURL'-generateUploadURLResponse- :: GenerateUploadURLResponse-generateUploadURLResponse =- GenerateUploadURLResponse' {_guurUploadURL = Nothing}----- | The generated Google Cloud Storage signed URL that should be used for a--- function source code upload. The uploaded file should be a zip archive--- which contains a function.-guurUploadURL :: Lens' GenerateUploadURLResponse (Maybe Text)-guurUploadURL- = lens _guurUploadURL- (\ s a -> s{_guurUploadURL = a})--instance FromJSON GenerateUploadURLResponse where- parseJSON- = withObject "GenerateUploadURLResponse"- (\ o ->- GenerateUploadURLResponse' <$> (o .:? "uploadUrl"))--instance ToJSON GenerateUploadURLResponse where- toJSON GenerateUploadURLResponse'{..}- = object- (catMaybes [("uploadUrl" .=) <$> _guurUploadURL])---- | Describes the policy in case of function\'s execution failure. If empty,--- then defaults to ignoring failures (i.e. not retrying them).------ /See:/ 'failurePolicy' smart constructor.-newtype FailurePolicy =- FailurePolicy'- { _fpRetry :: Maybe Retry- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'FailurePolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'fpRetry'-failurePolicy- :: FailurePolicy-failurePolicy = FailurePolicy' {_fpRetry = Nothing}----- | If specified, then the function will be retried in case of a failure.-fpRetry :: Lens' FailurePolicy (Maybe Retry)-fpRetry = lens _fpRetry (\ s a -> s{_fpRetry = a})--instance FromJSON FailurePolicy where- parseJSON- = withObject "FailurePolicy"- (\ o -> FailurePolicy' <$> (o .:? "retry"))--instance ToJSON FailurePolicy where- toJSON FailurePolicy'{..}- = object (catMaybes [("retry" .=) <$> _fpRetry])---- | Response of \`CallFunction\` method.------ /See:/ 'callFunctionResponse' smart constructor.-data CallFunctionResponse =- CallFunctionResponse'- { _cfrExecutionId :: !(Maybe Text)- , _cfrError :: !(Maybe Text)- , _cfrResult :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CallFunctionResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cfrExecutionId'------ * 'cfrError'------ * 'cfrResult'-callFunctionResponse- :: CallFunctionResponse-callFunctionResponse =- CallFunctionResponse'- {_cfrExecutionId = Nothing, _cfrError = Nothing, _cfrResult = Nothing}----- | Execution id of function invocation.-cfrExecutionId :: Lens' CallFunctionResponse (Maybe Text)-cfrExecutionId- = lens _cfrExecutionId- (\ s a -> s{_cfrExecutionId = a})---- | Either system or user-function generated error. Set if execution was not--- successful.-cfrError :: Lens' CallFunctionResponse (Maybe Text)-cfrError = lens _cfrError (\ s a -> s{_cfrError = a})---- | Result populated for successful execution of synchronous function. Will--- not be populated if function does not return a result through context.-cfrResult :: Lens' CallFunctionResponse (Maybe Text)-cfrResult- = lens _cfrResult (\ s a -> s{_cfrResult = a})--instance FromJSON CallFunctionResponse where- parseJSON- = withObject "CallFunctionResponse"- (\ o ->- CallFunctionResponse' <$>- (o .:? "executionId") <*> (o .:? "error") <*>- (o .:? "result"))--instance ToJSON CallFunctionResponse where- toJSON CallFunctionResponse'{..}- = object- (catMaybes- [("executionId" .=) <$> _cfrExecutionId,- ("error" .=) <$> _cfrError,- ("result" .=) <$> _cfrResult])---- | Describes HttpsTrigger, could be used to connect web hooks to function.------ /See:/ 'httpsTrigger' smart constructor.-newtype HTTPSTrigger =- HTTPSTrigger'- { _htURL :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'HTTPSTrigger' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'htURL'-httpsTrigger- :: HTTPSTrigger-httpsTrigger = HTTPSTrigger' {_htURL = Nothing}----- | Output only. The deployed url for the function.-htURL :: Lens' HTTPSTrigger (Maybe Text)-htURL = lens _htURL (\ s a -> s{_htURL = a})--instance FromJSON HTTPSTrigger where- parseJSON- = withObject "HTTPSTrigger"- (\ o -> HTTPSTrigger' <$> (o .:? "url"))--instance ToJSON HTTPSTrigger where- toJSON HTTPSTrigger'{..}- = object (catMaybes [("url" .=) <$> _htURL])------- /See:/ 'statusDetailsItem' smart constructor.-newtype StatusDetailsItem =- StatusDetailsItem'- { _sdiAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sdiAddtional'-statusDetailsItem- :: HashMap Text JSONValue -- ^ 'sdiAddtional'- -> StatusDetailsItem-statusDetailsItem pSdiAddtional_ =- StatusDetailsItem' {_sdiAddtional = _Coerce # pSdiAddtional_}----- | Properties of the object. Contains field \'type with type URL.-sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)-sdiAddtional- = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})- . _Coerce--instance FromJSON StatusDetailsItem where- parseJSON- = withObject "StatusDetailsItem"- (\ o -> StatusDetailsItem' <$> (parseJSONObject o))--instance ToJSON StatusDetailsItem where- toJSON = toJSON . _sdiAddtional---- | Environment variables that shall be available during function execution.------ /See:/ 'cloudFunctionEnvironmentVariables' smart constructor.-newtype CloudFunctionEnvironmentVariables =- CloudFunctionEnvironmentVariables'- { _cfevAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CloudFunctionEnvironmentVariables' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cfevAddtional'-cloudFunctionEnvironmentVariables- :: HashMap Text Text -- ^ 'cfevAddtional'- -> CloudFunctionEnvironmentVariables-cloudFunctionEnvironmentVariables pCfevAddtional_ =- CloudFunctionEnvironmentVariables'- {_cfevAddtional = _Coerce # pCfevAddtional_}---cfevAddtional :: Lens' CloudFunctionEnvironmentVariables (HashMap Text Text)-cfevAddtional- = lens _cfevAddtional- (\ s a -> s{_cfevAddtional = a})- . _Coerce--instance FromJSON CloudFunctionEnvironmentVariables- where- parseJSON- = withObject "CloudFunctionEnvironmentVariables"- (\ o ->- CloudFunctionEnvironmentVariables' <$>- (parseJSONObject o))--instance ToJSON CloudFunctionEnvironmentVariables- where- toJSON = toJSON . _cfevAddtional---- | The original request that started the operation.------ /See:/ 'operationMetadataV1Request' smart constructor.-newtype OperationMetadataV1Request =- OperationMetadataV1Request'- { _omvrAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadataV1Request' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omvrAddtional'-operationMetadataV1Request- :: HashMap Text JSONValue -- ^ 'omvrAddtional'- -> OperationMetadataV1Request-operationMetadataV1Request pOmvrAddtional_ =- OperationMetadataV1Request' {_omvrAddtional = _Coerce # pOmvrAddtional_}----- | Properties of the object. Contains field \'type with type URL.-omvrAddtional :: Lens' OperationMetadataV1Request (HashMap Text JSONValue)-omvrAddtional- = lens _omvrAddtional- (\ s a -> s{_omvrAddtional = a})- . _Coerce--instance FromJSON OperationMetadataV1Request where- parseJSON- = withObject "OperationMetadataV1Request"- (\ o ->- OperationMetadataV1Request' <$> (parseJSONObject o))--instance ToJSON OperationMetadataV1Request where- toJSON = toJSON . _omvrAddtional---- | 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])---- | Describes EventTrigger, used to request events be sent from another--- service.------ /See:/ 'eventTrigger' smart constructor.-data EventTrigger =- EventTrigger'- { _etService :: !(Maybe Text)- , _etFailurePolicy :: !(Maybe FailurePolicy)- , _etEventType :: !(Maybe Text)- , _etResource :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EventTrigger' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'etService'------ * 'etFailurePolicy'------ * 'etEventType'------ * 'etResource'-eventTrigger- :: EventTrigger-eventTrigger =- EventTrigger'- { _etService = Nothing- , _etFailurePolicy = Nothing- , _etEventType = Nothing- , _etResource = Nothing- }----- | The hostname of the service that should be observed. If no string is--- provided, the default service implementing the API will be used. For--- example, \`storage.googleapis.com\` is the default for all event types--- in the \`google.storage\` namespace.-etService :: Lens' EventTrigger (Maybe Text)-etService- = lens _etService (\ s a -> s{_etService = a})---- | Specifies policy for failed executions.-etFailurePolicy :: Lens' EventTrigger (Maybe FailurePolicy)-etFailurePolicy- = lens _etFailurePolicy- (\ s a -> s{_etFailurePolicy = a})---- | Required. The type of event to observe. For example:--- \`providers\/cloud.storage\/eventTypes\/object.change\` and--- \`providers\/cloud.pubsub\/eventTypes\/topic.publish\`. Event types--- match pattern \`providers\/*\/eventTypes\/*.*\`. The pattern contains:--- 1. namespace: For example, \`cloud.storage\` and--- \`google.firebase.analytics\`. 2. resource type: The type of resource on--- which event occurs. For example, the Google Cloud Storage API includes--- the type \`object\`. 3. action: The action that generates the event. For--- example, action for a Google Cloud Storage Object is \'change\'. These--- parts are lower case.-etEventType :: Lens' EventTrigger (Maybe Text)-etEventType- = lens _etEventType (\ s a -> s{_etEventType = a})---- | Required. The resource(s) from which to observe events, for example,--- \`projects\/_\/buckets\/myBucket\`. Not all syntactically correct values--- are accepted by all services. For example: 1. The authorization model--- must support it. Google Cloud Functions only allows EventTriggers to be--- deployed that observe resources in the same project as the--- \`CloudFunction\`. 2. The resource type must match the pattern expected--- for an \`event_type\`. For example, an \`EventTrigger\` that has an--- \`event_type\` of \"google.pubsub.topic.publish\" should have a resource--- that matches Google Cloud Pub\/Sub topics. Additionally, some services--- may support short names when creating an \`EventTrigger\`. These will--- always be returned in the normalized \"long\" format. See each--- *service\'s* documentation for supported formats.-etResource :: Lens' EventTrigger (Maybe Text)-etResource- = lens _etResource (\ s a -> s{_etResource = a})--instance FromJSON EventTrigger where- parseJSON- = withObject "EventTrigger"- (\ o ->- EventTrigger' <$>- (o .:? "service") <*> (o .:? "failurePolicy") <*>- (o .:? "eventType")- <*> (o .:? "resource"))--instance ToJSON EventTrigger where- toJSON EventTrigger'{..}- = object- (catMaybes- [("service" .=) <$> _etService,- ("failurePolicy" .=) <$> _etFailurePolicy,- ("eventType" .=) <$> _etEventType,- ("resource" .=) <$> _etResource])---- | Describes SourceRepository, used to represent parameters related to--- source repository where a function is hosted.------ /See:/ 'sourceRepository' smart constructor.-data SourceRepository =- SourceRepository'- { _srURL :: !(Maybe Text)- , _srDeployedURL :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SourceRepository' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'srURL'------ * 'srDeployedURL'-sourceRepository- :: SourceRepository-sourceRepository =- SourceRepository' {_srURL = Nothing, _srDeployedURL = Nothing}----- | The URL pointing to the hosted repository where the function is defined.--- There are supported Cloud Source Repository URLs in the following--- formats: To refer to a specific commit:--- \`https:\/\/source.developers.google.com\/projects\/*\/repos\/*\/revisions\/*\/paths\/*\`--- To refer to a moveable alias (branch):--- \`https:\/\/source.developers.google.com\/projects\/*\/repos\/*\/moveable-aliases\/*\/paths\/*\`--- In particular, to refer to HEAD use \`master\` moveable alias. To refer--- to a specific fixed alias (tag):--- \`https:\/\/source.developers.google.com\/projects\/*\/repos\/*\/fixed-aliases\/*\/paths\/*\`--- You may omit \`paths\/*\` if you want to use the main directory.-srURL :: Lens' SourceRepository (Maybe Text)-srURL = lens _srURL (\ s a -> s{_srURL = a})---- | Output only. The URL pointing to the hosted repository where the--- function were defined at the time of deployment. It always points to a--- specific commit in the format described above.-srDeployedURL :: Lens' SourceRepository (Maybe Text)-srDeployedURL- = lens _srDeployedURL- (\ s a -> s{_srDeployedURL = a})--instance FromJSON SourceRepository where- parseJSON- = withObject "SourceRepository"- (\ o ->- SourceRepository' <$>- (o .:? "url") <*> (o .:? "deployedUrl"))--instance ToJSON SourceRepository where- toJSON SourceRepository'{..}- = object- (catMaybes- [("url" .=) <$> _srURL,- ("deployedUrl" .=) <$> _srDeployedURL])---- | Metadata describing an Operation------ /See:/ 'operationMetadataV1' smart constructor.-data OperationMetadataV1 =- OperationMetadataV1'- { _omvVersionId :: !(Maybe (Textual Int64))- , _omvUpdateTime :: !(Maybe DateTime')- , _omvType :: !(Maybe OperationMetadataV1Type)- , _omvTarget :: !(Maybe Text)- , _omvRequest :: !(Maybe OperationMetadataV1Request)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadataV1' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omvVersionId'------ * 'omvUpdateTime'------ * 'omvType'------ * 'omvTarget'------ * 'omvRequest'-operationMetadataV1- :: OperationMetadataV1-operationMetadataV1 =- OperationMetadataV1'- { _omvVersionId = Nothing- , _omvUpdateTime = Nothing- , _omvType = Nothing- , _omvTarget = Nothing- , _omvRequest = Nothing- }----- | Version id of the function created or updated by an API call. This field--- is only populated for Create and Update operations.-omvVersionId :: Lens' OperationMetadataV1 (Maybe Int64)-omvVersionId- = lens _omvVersionId (\ s a -> s{_omvVersionId = a})- . mapping _Coerce---- | The last update timestamp of the operation.-omvUpdateTime :: Lens' OperationMetadataV1 (Maybe UTCTime)-omvUpdateTime- = lens _omvUpdateTime- (\ s a -> s{_omvUpdateTime = a})- . mapping _DateTime---- | Type of operation.-omvType :: Lens' OperationMetadataV1 (Maybe OperationMetadataV1Type)-omvType = lens _omvType (\ s a -> s{_omvType = a})---- | Target of the operation - for example--- projects\/project-1\/locations\/region-1\/functions\/function-1-omvTarget :: Lens' OperationMetadataV1 (Maybe Text)-omvTarget- = lens _omvTarget (\ s a -> s{_omvTarget = a})---- | The original request that started the operation.-omvRequest :: Lens' OperationMetadataV1 (Maybe OperationMetadataV1Request)-omvRequest- = lens _omvRequest (\ s a -> s{_omvRequest = a})--instance FromJSON OperationMetadataV1 where- parseJSON- = withObject "OperationMetadataV1"- (\ o ->- OperationMetadataV1' <$>- (o .:? "versionId") <*> (o .:? "updateTime") <*>- (o .:? "type")- <*> (o .:? "target")- <*> (o .:? "request"))--instance ToJSON OperationMetadataV1 where- toJSON OperationMetadataV1'{..}- = object- (catMaybes- [("versionId" .=) <$> _omvVersionId,- ("updateTime" .=) <$> _omvUpdateTime,- ("type" .=) <$> _omvType,- ("target" .=) <$> _omvTarget,- ("request" .=) <$> _omvRequest])---- | Response of \`GenerateDownloadUrl\` method.------ /See:/ 'generateDownloadURLResponse' smart constructor.-newtype GenerateDownloadURLResponse =- GenerateDownloadURLResponse'- { _gdurDownloadURL :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GenerateDownloadURLResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gdurDownloadURL'-generateDownloadURLResponse- :: GenerateDownloadURLResponse-generateDownloadURLResponse =- GenerateDownloadURLResponse' {_gdurDownloadURL = Nothing}----- | The generated Google Cloud Storage signed URL that should be used for--- function source code download.-gdurDownloadURL :: Lens' GenerateDownloadURLResponse (Maybe Text)-gdurDownloadURL- = lens _gdurDownloadURL- (\ s a -> s{_gdurDownloadURL = a})--instance FromJSON GenerateDownloadURLResponse where- parseJSON- = withObject "GenerateDownloadURLResponse"- (\ o ->- GenerateDownloadURLResponse' <$>- (o .:? "downloadUrl"))--instance ToJSON GenerateDownloadURLResponse where- toJSON GenerateDownloadURLResponse'{..}- = object- (catMaybes [("downloadUrl" .=) <$> _gdurDownloadURL])---- | 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])---- | 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---- | Response for the \`ListFunctions\` method.------ /See:/ 'listFunctionsResponse' smart constructor.-data ListFunctionsResponse =- ListFunctionsResponse'- { _lfrNextPageToken :: !(Maybe Text)- , _lfrFunctions :: !(Maybe [CloudFunction])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListFunctionsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lfrNextPageToken'------ * 'lfrFunctions'-listFunctionsResponse- :: ListFunctionsResponse-listFunctionsResponse =- ListFunctionsResponse' {_lfrNextPageToken = Nothing, _lfrFunctions = Nothing}----- | If not empty, indicates that there may be more functions that match the--- request; this value should be passed in a new--- google.cloud.functions.v1.ListFunctionsRequest to get more functions.-lfrNextPageToken :: Lens' ListFunctionsResponse (Maybe Text)-lfrNextPageToken- = lens _lfrNextPageToken- (\ s a -> s{_lfrNextPageToken = a})---- | The functions that match the request.-lfrFunctions :: Lens' ListFunctionsResponse [CloudFunction]-lfrFunctions- = lens _lfrFunctions (\ s a -> s{_lfrFunctions = a})- . _Default- . _Coerce--instance FromJSON ListFunctionsResponse where- parseJSON- = withObject "ListFunctionsResponse"- (\ o ->- ListFunctionsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "functions" .!= mempty))--instance ToJSON ListFunctionsResponse where- toJSON ListFunctionsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lfrNextPageToken,- ("functions" .=) <$> _lfrFunctions])---- | Service-specific metadata. For example the available capacity at the--- given location.------ /See:/ 'locationMetadata' smart constructor.-newtype LocationMetadata =- LocationMetadata'- { _lmAddtional :: HashMap Text JSONValue- }- 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:------ * 'lmAddtional'-locationMetadata- :: HashMap Text JSONValue -- ^ 'lmAddtional'- -> LocationMetadata-locationMetadata pLmAddtional_ =- LocationMetadata' {_lmAddtional = _Coerce # pLmAddtional_}----- | Properties of the object. Contains field \'type with type URL.-lmAddtional :: Lens' LocationMetadata (HashMap Text JSONValue)-lmAddtional- = lens _lmAddtional (\ s a -> s{_lmAddtional = a}) .- _Coerce--instance FromJSON LocationMetadata where- parseJSON- = withObject "LocationMetadata"- (\ o -> LocationMetadata' <$> (parseJSONObject o))--instance ToJSON LocationMetadata where- toJSON = toJSON . _lmAddtional---- | 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:/ 'operationMetadata' smart constructor.-newtype OperationMetadata =- OperationMetadata'- { _omAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omAddtional'-operationMetadata- :: HashMap Text JSONValue -- ^ 'omAddtional'- -> OperationMetadata-operationMetadata pOmAddtional_ =- OperationMetadata' {_omAddtional = _Coerce # pOmAddtional_}----- | Properties of the object. Contains field \'type with type URL.-omAddtional :: Lens' OperationMetadata (HashMap Text JSONValue)-omAddtional- = lens _omAddtional (\ s a -> s{_omAddtional = a}) .- _Coerce--instance FromJSON OperationMetadata where- parseJSON- = withObject "OperationMetadata"- (\ o -> OperationMetadata' <$> (parseJSONObject o))--instance ToJSON OperationMetadata where- toJSON = toJSON . _omAddtional---- | 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])---- | Describes a Cloud Function that contains user computation executed in--- response to an event. It encapsulate function and triggers--- configurations. LINT.IfChange------ /See:/ 'cloudFunction' smart constructor.-data CloudFunction =- CloudFunction'- { _cfRuntime :: !(Maybe Text)- , _cfStatus :: !(Maybe CloudFunctionStatus)- , _cfSourceArchiveURL :: !(Maybe Text)- , _cfVersionId :: !(Maybe (Textual Int64))- , _cfSourceUploadURL :: !(Maybe Text)- , _cfEntryPoint :: !(Maybe Text)- , _cfHTTPSTrigger :: !(Maybe HTTPSTrigger)- , _cfNetwork :: !(Maybe Text)- , _cfMaxInstances :: !(Maybe (Textual Int32))- , _cfEventTrigger :: !(Maybe EventTrigger)- , _cfUpdateTime :: !(Maybe DateTime')- , _cfName :: !(Maybe Text)- , _cfSourceRepository :: !(Maybe SourceRepository)- , _cfAvailableMemoryMb :: !(Maybe (Textual Int32))- , _cfLabels :: !(Maybe CloudFunctionLabels)- , _cfServiceAccountEmail :: !(Maybe Text)- , _cfEnvironmentVariables :: !(Maybe CloudFunctionEnvironmentVariables)- , _cfTimeout :: !(Maybe GDuration)- , _cfVPCConnector :: !(Maybe Text)- , _cfDescription :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CloudFunction' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cfRuntime'------ * 'cfStatus'------ * 'cfSourceArchiveURL'------ * 'cfVersionId'------ * 'cfSourceUploadURL'------ * 'cfEntryPoint'------ * 'cfHTTPSTrigger'------ * 'cfNetwork'------ * 'cfMaxInstances'------ * 'cfEventTrigger'------ * 'cfUpdateTime'------ * 'cfName'------ * 'cfSourceRepository'------ * 'cfAvailableMemoryMb'------ * 'cfLabels'------ * 'cfServiceAccountEmail'------ * 'cfEnvironmentVariables'------ * 'cfTimeout'------ * 'cfVPCConnector'------ * 'cfDescription'-cloudFunction- :: CloudFunction-cloudFunction =- CloudFunction'- { _cfRuntime = Nothing- , _cfStatus = Nothing- , _cfSourceArchiveURL = Nothing- , _cfVersionId = Nothing- , _cfSourceUploadURL = Nothing- , _cfEntryPoint = Nothing- , _cfHTTPSTrigger = Nothing- , _cfNetwork = Nothing- , _cfMaxInstances = Nothing- , _cfEventTrigger = Nothing- , _cfUpdateTime = Nothing- , _cfName = Nothing- , _cfSourceRepository = Nothing- , _cfAvailableMemoryMb = Nothing- , _cfLabels = Nothing- , _cfServiceAccountEmail = Nothing- , _cfEnvironmentVariables = Nothing- , _cfTimeout = Nothing- , _cfVPCConnector = Nothing- , _cfDescription = Nothing- }----- | Required. The runtime in which the function is going to run. Choices: *--- \`nodejs6\`: Node.js 6 * \`nodejs8\`: Node.js 8 * \`nodejs10\`: Node.js--- 10 * \`python37\`: Python 3.7 * \`go111\`: Go 1.11-cfRuntime :: Lens' CloudFunction (Maybe Text)-cfRuntime- = lens _cfRuntime (\ s a -> s{_cfRuntime = a})---- | Output only. Status of the function deployment.-cfStatus :: Lens' CloudFunction (Maybe CloudFunctionStatus)-cfStatus = lens _cfStatus (\ s a -> s{_cfStatus = a})---- | The Google Cloud Storage URL, starting with gs:\/\/, pointing to the zip--- archive which contains the function.-cfSourceArchiveURL :: Lens' CloudFunction (Maybe Text)-cfSourceArchiveURL- = lens _cfSourceArchiveURL- (\ s a -> s{_cfSourceArchiveURL = a})---- | Output only. The version identifier of the Cloud Function. Each--- deployment attempt results in a new version of a function being created.-cfVersionId :: Lens' CloudFunction (Maybe Int64)-cfVersionId- = lens _cfVersionId (\ s a -> s{_cfVersionId = a}) .- mapping _Coerce---- | The Google Cloud Storage signed URL used for source uploading, generated--- by google.cloud.functions.v1.GenerateUploadUrl-cfSourceUploadURL :: Lens' CloudFunction (Maybe Text)-cfSourceUploadURL- = lens _cfSourceUploadURL- (\ s a -> s{_cfSourceUploadURL = a})---- | The name of the function (as defined in source code) that will be--- executed. Defaults to the resource name suffix, if not specified. For--- backward compatibility, if function with given name is not found, then--- the system will try to use function named \"function\". For Node.js this--- is name of a function exported by the module specified in--- \`source_location\`.-cfEntryPoint :: Lens' CloudFunction (Maybe Text)-cfEntryPoint- = lens _cfEntryPoint (\ s a -> s{_cfEntryPoint = a})---- | An HTTPS endpoint type of source that can be triggered via URL.-cfHTTPSTrigger :: Lens' CloudFunction (Maybe HTTPSTrigger)-cfHTTPSTrigger- = lens _cfHTTPSTrigger- (\ s a -> s{_cfHTTPSTrigger = a})---- | The VPC Network that this cloud function can connect to. It can be--- either the fully-qualified URI, or the short name of the network--- resource. If the short network name is used, the network must belong to--- the same project. Otherwise, it must belong to a project within the same--- organization. The format of this field is either--- \`projects\/{project}\/global\/networks\/{network}\` or \`{network}\`,--- where {project} is a project id where the network is defined, and--- {network} is the short name of the network. This field is mutually--- exclusive with \`vpc_connector\` and will be replaced by it. See [the--- VPC documentation](https:\/\/cloud.google.com\/compute\/docs\/vpc) for--- more information on connecting Cloud projects. This feature is currently--- in alpha, available only for whitelisted users.-cfNetwork :: Lens' CloudFunction (Maybe Text)-cfNetwork- = lens _cfNetwork (\ s a -> s{_cfNetwork = a})---- | The limit on the maximum number of function instances that may coexist--- at a given time.-cfMaxInstances :: Lens' CloudFunction (Maybe Int32)-cfMaxInstances- = lens _cfMaxInstances- (\ s a -> s{_cfMaxInstances = a})- . mapping _Coerce---- | A source that fires events in response to a condition in another--- service.-cfEventTrigger :: Lens' CloudFunction (Maybe EventTrigger)-cfEventTrigger- = lens _cfEventTrigger- (\ s a -> s{_cfEventTrigger = a})---- | Output only. The last update timestamp of a Cloud Function.-cfUpdateTime :: Lens' CloudFunction (Maybe UTCTime)-cfUpdateTime- = lens _cfUpdateTime (\ s a -> s{_cfUpdateTime = a})- . mapping _DateTime---- | A user-defined name of the function. Function names must be unique--- globally and match pattern \`projects\/*\/locations\/*\/functions\/*\`-cfName :: Lens' CloudFunction (Maybe Text)-cfName = lens _cfName (\ s a -> s{_cfName = a})---- | **Beta Feature** The source repository where a function is hosted.-cfSourceRepository :: Lens' CloudFunction (Maybe SourceRepository)-cfSourceRepository- = lens _cfSourceRepository- (\ s a -> s{_cfSourceRepository = a})---- | The amount of memory in MB available for a function. Defaults to 256MB.-cfAvailableMemoryMb :: Lens' CloudFunction (Maybe Int32)-cfAvailableMemoryMb- = lens _cfAvailableMemoryMb- (\ s a -> s{_cfAvailableMemoryMb = a})- . mapping _Coerce---- | Labels associated with this Cloud Function.-cfLabels :: Lens' CloudFunction (Maybe CloudFunctionLabels)-cfLabels = lens _cfLabels (\ s a -> s{_cfLabels = a})---- | The email of the function\'s service account. If empty, defaults to--- {project_id}\'appspot.gserviceaccount.com.-cfServiceAccountEmail :: Lens' CloudFunction (Maybe Text)-cfServiceAccountEmail- = lens _cfServiceAccountEmail- (\ s a -> s{_cfServiceAccountEmail = a})---- | Environment variables that shall be available during function execution.-cfEnvironmentVariables :: Lens' CloudFunction (Maybe CloudFunctionEnvironmentVariables)-cfEnvironmentVariables- = lens _cfEnvironmentVariables- (\ s a -> s{_cfEnvironmentVariables = a})---- | The function execution timeout. Execution is considered failed and can--- be terminated if the function is not completed at the end of the timeout--- period. Defaults to 60 seconds.-cfTimeout :: Lens' CloudFunction (Maybe Scientific)-cfTimeout- = lens _cfTimeout (\ s a -> s{_cfTimeout = a}) .- mapping _GDuration---- | The VPC Network Connector that this cloud function can connect to. It--- can be either the fully-qualified URI, or the short name of the network--- connector resource. The format of this field is--- \`projects\/*\/locations\/*\/connectors\/*\` This field is mutually--- exclusive with \`network\` field and will eventually replace it. See--- [the VPC documentation](https:\/\/cloud.google.com\/compute\/docs\/vpc)--- for more information on connecting Cloud projects. This feature is--- currently in alpha, available only for whitelisted users.-cfVPCConnector :: Lens' CloudFunction (Maybe Text)-cfVPCConnector- = lens _cfVPCConnector- (\ s a -> s{_cfVPCConnector = a})---- | User-provided description of a function.-cfDescription :: Lens' CloudFunction (Maybe Text)-cfDescription- = lens _cfDescription- (\ s a -> s{_cfDescription = a})--instance FromJSON CloudFunction where- parseJSON- = withObject "CloudFunction"- (\ o ->- CloudFunction' <$>- (o .:? "runtime") <*> (o .:? "status") <*>- (o .:? "sourceArchiveUrl")- <*> (o .:? "versionId")- <*> (o .:? "sourceUploadUrl")- <*> (o .:? "entryPoint")- <*> (o .:? "httpsTrigger")- <*> (o .:? "network")- <*> (o .:? "maxInstances")- <*> (o .:? "eventTrigger")- <*> (o .:? "updateTime")- <*> (o .:? "name")- <*> (o .:? "sourceRepository")- <*> (o .:? "availableMemoryMb")- <*> (o .:? "labels")- <*> (o .:? "serviceAccountEmail")- <*> (o .:? "environmentVariables")- <*> (o .:? "timeout")- <*> (o .:? "vpcConnector")- <*> (o .:? "description"))--instance ToJSON CloudFunction where- toJSON CloudFunction'{..}- = object- (catMaybes- [("runtime" .=) <$> _cfRuntime,- ("status" .=) <$> _cfStatus,- ("sourceArchiveUrl" .=) <$> _cfSourceArchiveURL,- ("versionId" .=) <$> _cfVersionId,- ("sourceUploadUrl" .=) <$> _cfSourceUploadURL,- ("entryPoint" .=) <$> _cfEntryPoint,- ("httpsTrigger" .=) <$> _cfHTTPSTrigger,- ("network" .=) <$> _cfNetwork,- ("maxInstances" .=) <$> _cfMaxInstances,- ("eventTrigger" .=) <$> _cfEventTrigger,- ("updateTime" .=) <$> _cfUpdateTime,- ("name" .=) <$> _cfName,- ("sourceRepository" .=) <$> _cfSourceRepository,- ("availableMemoryMb" .=) <$> _cfAvailableMemoryMb,- ("labels" .=) <$> _cfLabels,- ("serviceAccountEmail" .=) <$>- _cfServiceAccountEmail,- ("environmentVariables" .=) <$>- _cfEnvironmentVariables,- ("timeout" .=) <$> _cfTimeout,- ("vpcConnector" .=) <$> _cfVPCConnector,- ("description" .=) <$> _cfDescription])---- | The original request that started the operation.------ /See:/ 'operationMetadataV1Beta2Request' smart constructor.-newtype OperationMetadataV1Beta2Request =- OperationMetadataV1Beta2Request'- { _omvbrAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadataV1Beta2Request' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omvbrAddtional'-operationMetadataV1Beta2Request- :: HashMap Text JSONValue -- ^ 'omvbrAddtional'- -> OperationMetadataV1Beta2Request-operationMetadataV1Beta2Request pOmvbrAddtional_ =- OperationMetadataV1Beta2Request'- {_omvbrAddtional = _Coerce # pOmvbrAddtional_}----- | Properties of the object. Contains field \'type with type URL.-omvbrAddtional :: Lens' OperationMetadataV1Beta2Request (HashMap Text JSONValue)-omvbrAddtional- = lens _omvbrAddtional- (\ s a -> s{_omvbrAddtional = a})- . _Coerce--instance FromJSON OperationMetadataV1Beta2Request- where- parseJSON- = withObject "OperationMetadataV1Beta2Request"- (\ o ->- OperationMetadataV1Beta2Request' <$>- (parseJSONObject o))--instance ToJSON OperationMetadataV1Beta2Request where- toJSON = toJSON . _omvbrAddtional---- | Labels associated with this Cloud Function.------ /See:/ 'cloudFunctionLabels' smart constructor.-newtype CloudFunctionLabels =- CloudFunctionLabels'- { _cflAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CloudFunctionLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cflAddtional'-cloudFunctionLabels- :: HashMap Text Text -- ^ 'cflAddtional'- -> CloudFunctionLabels-cloudFunctionLabels pCflAddtional_ =- CloudFunctionLabels' {_cflAddtional = _Coerce # pCflAddtional_}---cflAddtional :: Lens' CloudFunctionLabels (HashMap Text Text)-cflAddtional- = lens _cflAddtional (\ s a -> s{_cflAddtional = a})- . _Coerce--instance FromJSON CloudFunctionLabels where- parseJSON- = withObject "CloudFunctionLabels"- (\ o -> CloudFunctionLabels' <$> (parseJSONObject o))--instance ToJSON CloudFunctionLabels where- toJSON = toJSON . _cflAddtional---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as \`Delete\`, the response is--- \`google.protobuf.Empty\`. If the original method is standard--- \`Get\`\/\`Create\`\/\`Update\`, the response should be the resource.--- For other methods, the response should have the type \`XxxResponse\`,--- where \`Xxx\` is the original method name. For example, if the original--- method name is \`TakeSnapshot()\`, the inferred response type is--- \`TakeSnapshotResponse\`.------ /See:/ 'operationResponse' smart constructor.-newtype OperationResponse =- OperationResponse'- { _orAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'orAddtional'-operationResponse- :: HashMap Text JSONValue -- ^ 'orAddtional'- -> OperationResponse-operationResponse pOrAddtional_ =- OperationResponse' {_orAddtional = _Coerce # pOrAddtional_}----- | Properties of the object. Contains field \'type with type URL.-orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)-orAddtional- = lens _orAddtional (\ s a -> s{_orAddtional = a}) .- _Coerce--instance FromJSON OperationResponse where- parseJSON- = withObject "OperationResponse"- (\ o -> OperationResponse' <$> (parseJSONObject o))--instance ToJSON OperationResponse where- toJSON = toJSON . _orAddtional---- | Request for the \`CallFunction\` method.------ /See:/ 'callFunctionRequest' smart constructor.-newtype CallFunctionRequest =- CallFunctionRequest'- { _cfrData :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CallFunctionRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cfrData'-callFunctionRequest- :: CallFunctionRequest-callFunctionRequest = CallFunctionRequest' {_cfrData = Nothing}----- | Input to be passed to the function.-cfrData :: Lens' CallFunctionRequest (Maybe Text)-cfrData = lens _cfrData (\ s a -> s{_cfrData = a})--instance FromJSON CallFunctionRequest where- parseJSON- = withObject "CallFunctionRequest"- (\ o -> CallFunctionRequest' <$> (o .:? "data"))--instance ToJSON CallFunctionRequest where- toJSON CallFunctionRequest'{..}- = object (catMaybes [("data" .=) <$> _cfrData])---- | 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/CloudFunctions/Types/Sum.hs
@@ -1,215 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudFunctions.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.CloudFunctions.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | Type of operation.-data OperationMetadataV1Type- = OperationUnspecified- -- ^ @OPERATION_UNSPECIFIED@- -- Unknown operation type.- | CreateFunction- -- ^ @CREATE_FUNCTION@- -- Triggered by CreateFunction call- | UpdateFunction- -- ^ @UPDATE_FUNCTION@- -- Triggered by UpdateFunction call- | DeleteFunction- -- ^ @DELETE_FUNCTION@- -- Triggered by DeleteFunction call.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable OperationMetadataV1Type--instance FromHttpApiData OperationMetadataV1Type where- parseQueryParam = \case- "OPERATION_UNSPECIFIED" -> Right OperationUnspecified- "CREATE_FUNCTION" -> Right CreateFunction- "UPDATE_FUNCTION" -> Right UpdateFunction- "DELETE_FUNCTION" -> Right DeleteFunction- x -> Left ("Unable to parse OperationMetadataV1Type from: " <> x)--instance ToHttpApiData OperationMetadataV1Type where- toQueryParam = \case- OperationUnspecified -> "OPERATION_UNSPECIFIED"- CreateFunction -> "CREATE_FUNCTION"- UpdateFunction -> "UPDATE_FUNCTION"- DeleteFunction -> "DELETE_FUNCTION"--instance FromJSON OperationMetadataV1Type where- parseJSON = parseJSONText "OperationMetadataV1Type"--instance ToJSON OperationMetadataV1Type where- toJSON = toJSONText---- | Output only. Status of the function deployment.-data CloudFunctionStatus- = CloudFunctionStatusUnspecified- -- ^ @CLOUD_FUNCTION_STATUS_UNSPECIFIED@- -- Not specified. Invalid state.- | Active- -- ^ @ACTIVE@- -- Function has been succesfully deployed and is serving.- | Offline- -- ^ @OFFLINE@- -- Function deployment failed and the function isn’t serving.- | DeployInProgress- -- ^ @DEPLOY_IN_PROGRESS@- -- Function is being created or updated.- | DeleteInProgress- -- ^ @DELETE_IN_PROGRESS@- -- Function is being deleted.- | Unknown- -- ^ @UNKNOWN@- -- Function deployment failed and the function serving state is undefined.- -- The function should be updated or deleted to move it out of this state.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CloudFunctionStatus--instance FromHttpApiData CloudFunctionStatus where- parseQueryParam = \case- "CLOUD_FUNCTION_STATUS_UNSPECIFIED" -> Right CloudFunctionStatusUnspecified- "ACTIVE" -> Right Active- "OFFLINE" -> Right Offline- "DEPLOY_IN_PROGRESS" -> Right DeployInProgress- "DELETE_IN_PROGRESS" -> Right DeleteInProgress- "UNKNOWN" -> Right Unknown- x -> Left ("Unable to parse CloudFunctionStatus from: " <> x)--instance ToHttpApiData CloudFunctionStatus where- toQueryParam = \case- CloudFunctionStatusUnspecified -> "CLOUD_FUNCTION_STATUS_UNSPECIFIED"- Active -> "ACTIVE"- Offline -> "OFFLINE"- DeployInProgress -> "DEPLOY_IN_PROGRESS"- DeleteInProgress -> "DELETE_IN_PROGRESS"- Unknown -> "UNKNOWN"--instance FromJSON CloudFunctionStatus where- parseJSON = parseJSONText "CloudFunctionStatus"--instance ToJSON CloudFunctionStatus where- toJSON = toJSONText---- | Type of operation.-data OperationMetadataV1Beta2Type- = OMVBTOperationUnspecified- -- ^ @OPERATION_UNSPECIFIED@- -- Unknown operation type.- | OMVBTCreateFunction- -- ^ @CREATE_FUNCTION@- -- Triggered by CreateFunction call- | OMVBTUpdateFunction- -- ^ @UPDATE_FUNCTION@- -- Triggered by UpdateFunction call- | OMVBTDeleteFunction- -- ^ @DELETE_FUNCTION@- -- Triggered by DeleteFunction call.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable OperationMetadataV1Beta2Type--instance FromHttpApiData OperationMetadataV1Beta2Type where- parseQueryParam = \case- "OPERATION_UNSPECIFIED" -> Right OMVBTOperationUnspecified- "CREATE_FUNCTION" -> Right OMVBTCreateFunction- "UPDATE_FUNCTION" -> Right OMVBTUpdateFunction- "DELETE_FUNCTION" -> Right OMVBTDeleteFunction- x -> Left ("Unable to parse OperationMetadataV1Beta2Type from: " <> x)--instance ToHttpApiData OperationMetadataV1Beta2Type where- toQueryParam = \case- OMVBTOperationUnspecified -> "OPERATION_UNSPECIFIED"- OMVBTCreateFunction -> "CREATE_FUNCTION"- OMVBTUpdateFunction -> "UPDATE_FUNCTION"- OMVBTDeleteFunction -> "DELETE_FUNCTION"--instance FromJSON OperationMetadataV1Beta2Type where- parseJSON = parseJSONText "OperationMetadataV1Beta2Type"--instance ToJSON OperationMetadataV1Beta2Type 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
− gen/Network/Google/Resource/CloudFunctions/Operations/Get.hs
@@ -1,150 +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.CloudFunctions.Operations.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 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/functions Cloud Functions API Reference> for @cloudfunctions.operations.get@.-module Network.Google.Resource.CloudFunctions.Operations.Get- (- -- * REST Resource- OperationsGetResource-- -- * Creating a Request- , operationsGet- , OperationsGet-- -- * Request Lenses- , ogXgafv- , ogUploadProtocol- , ogAccessToken- , ogUploadType- , ogName- , ogCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.operations.get@ method which the--- 'OperationsGet' request conforms to.-type OperationsGetResource =- "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] 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:/ 'operationsGet' smart constructor.-data OperationsGet =- OperationsGet'- { _ogXgafv :: !(Maybe Xgafv)- , _ogUploadProtocol :: !(Maybe Text)- , _ogAccessToken :: !(Maybe Text)- , _ogUploadType :: !(Maybe Text)- , _ogName :: !Text- , _ogCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ogXgafv'------ * 'ogUploadProtocol'------ * 'ogAccessToken'------ * 'ogUploadType'------ * 'ogName'------ * 'ogCallback'-operationsGet- :: Text -- ^ 'ogName'- -> OperationsGet-operationsGet pOgName_ =- OperationsGet'- { _ogXgafv = Nothing- , _ogUploadProtocol = Nothing- , _ogAccessToken = Nothing- , _ogUploadType = Nothing- , _ogName = pOgName_- , _ogCallback = Nothing- }----- | V1 error format.-ogXgafv :: Lens' OperationsGet (Maybe Xgafv)-ogXgafv = lens _ogXgafv (\ s a -> s{_ogXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ogUploadProtocol :: Lens' OperationsGet (Maybe Text)-ogUploadProtocol- = lens _ogUploadProtocol- (\ s a -> s{_ogUploadProtocol = a})---- | OAuth access token.-ogAccessToken :: Lens' OperationsGet (Maybe Text)-ogAccessToken- = lens _ogAccessToken- (\ s a -> s{_ogAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ogUploadType :: Lens' OperationsGet (Maybe Text)-ogUploadType- = lens _ogUploadType (\ s a -> s{_ogUploadType = a})---- | The name of the operation resource.-ogName :: Lens' OperationsGet Text-ogName = lens _ogName (\ s a -> s{_ogName = a})---- | JSONP-ogCallback :: Lens' OperationsGet (Maybe Text)-ogCallback- = lens _ogCallback (\ s a -> s{_ogCallback = a})--instance GoogleRequest OperationsGet where- type Rs OperationsGet = Operation- type Scopes OperationsGet =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient OperationsGet'{..}- = go _ogName _ogXgafv _ogUploadProtocol- _ogAccessToken- _ogUploadType- _ogCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient (Proxy :: Proxy OperationsGetResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Operations/List.hs
@@ -1,205 +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.CloudFunctions.Operations.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 operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns \`UNIMPLEMENTED\`. NOTE:--- the \`name\` binding allows API services to override the binding to use--- different resource name schemes, such as \`users\/*\/operations\`. To--- override the binding, API services can add a binding such as--- \`\"\/v1\/{name=users\/*}\/operations\"\` to their service--- configuration. For backwards compatibility, the default name includes--- the operations collection id, however overriding users must ensure the--- name binding is the parent resource, without the operations collection--- id.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.operations.list@.-module Network.Google.Resource.CloudFunctions.Operations.List- (- -- * REST Resource- OperationsListResource-- -- * Creating a Request- , operationsList- , OperationsList-- -- * Request Lenses- , olXgafv- , olUploadProtocol- , olAccessToken- , olUploadType- , olName- , olFilter- , olPageToken- , olPageSize- , olCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.operations.list@ method which the--- 'OperationsList' request conforms to.-type OperationsListResource =- "v1" :>- "operations" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "name" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListOperationsResponse---- | Lists operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns \`UNIMPLEMENTED\`. NOTE:--- the \`name\` binding allows API services to override the binding to use--- different resource name schemes, such as \`users\/*\/operations\`. To--- override the binding, API services can add a binding such as--- \`\"\/v1\/{name=users\/*}\/operations\"\` to their service--- configuration. For backwards compatibility, the default name includes--- the operations collection id, however overriding users must ensure the--- name binding is the parent resource, without the operations collection--- id.------ /See:/ 'operationsList' smart constructor.-data OperationsList =- OperationsList'- { _olXgafv :: !(Maybe Xgafv)- , _olUploadProtocol :: !(Maybe Text)- , _olAccessToken :: !(Maybe Text)- , _olUploadType :: !(Maybe Text)- , _olName :: !(Maybe Text)- , _olFilter :: !(Maybe Text)- , _olPageToken :: !(Maybe Text)- , _olPageSize :: !(Maybe (Textual Int32))- , _olCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'olXgafv'------ * 'olUploadProtocol'------ * 'olAccessToken'------ * 'olUploadType'------ * 'olName'------ * 'olFilter'------ * 'olPageToken'------ * 'olPageSize'------ * 'olCallback'-operationsList- :: OperationsList-operationsList =- OperationsList'- { _olXgafv = Nothing- , _olUploadProtocol = Nothing- , _olAccessToken = Nothing- , _olUploadType = Nothing- , _olName = Nothing- , _olFilter = Nothing- , _olPageToken = Nothing- , _olPageSize = Nothing- , _olCallback = Nothing- }----- | V1 error format.-olXgafv :: Lens' OperationsList (Maybe Xgafv)-olXgafv = lens _olXgafv (\ s a -> s{_olXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-olUploadProtocol :: Lens' OperationsList (Maybe Text)-olUploadProtocol- = lens _olUploadProtocol- (\ s a -> s{_olUploadProtocol = a})---- | OAuth access token.-olAccessToken :: Lens' OperationsList (Maybe Text)-olAccessToken- = lens _olAccessToken- (\ s a -> s{_olAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-olUploadType :: Lens' OperationsList (Maybe Text)-olUploadType- = lens _olUploadType (\ s a -> s{_olUploadType = a})---- | Must not be set.-olName :: Lens' OperationsList (Maybe Text)-olName = lens _olName (\ s a -> s{_olName = a})---- | Required. A filter for matching the requested operations.--- The supported formats of __filter__ are:--- To query for specific function: 'project:*,location:*,function:*'--- To query for all of the latest operations for a project:--- 'project:*,latest:true'-olFilter :: Lens' OperationsList (Maybe Text)-olFilter = lens _olFilter (\ s a -> s{_olFilter = a})---- | The standard list page token.-olPageToken :: Lens' OperationsList (Maybe Text)-olPageToken- = lens _olPageToken (\ s a -> s{_olPageToken = a})---- | The standard list page size.-olPageSize :: Lens' OperationsList (Maybe Int32)-olPageSize- = lens _olPageSize (\ s a -> s{_olPageSize = a}) .- mapping _Coerce---- | JSONP-olCallback :: Lens' OperationsList (Maybe Text)-olCallback- = lens _olCallback (\ s a -> s{_olCallback = a})--instance GoogleRequest OperationsList where- type Rs OperationsList = ListOperationsResponse- type Scopes OperationsList =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient OperationsList'{..}- = go _olXgafv _olUploadProtocol _olAccessToken- _olUploadType- _olName- _olFilter- _olPageToken- _olPageSize- _olCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient (Proxy :: Proxy OperationsListResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Call.hs
@@ -1,167 +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.CloudFunctions.Projects.Locations.Functions.Call--- 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)------ Synchronously invokes a deployed Cloud Function. To be used for testing--- purposes as very limited traffic is allowed. For more information on the--- actual limits, refer to [Rate--- Limits](https:\/\/cloud.google.com\/functions\/quotas#rate_limits).------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.call@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Call- (- -- * REST Resource- ProjectsLocationsFunctionsCallResource-- -- * Creating a Request- , projectsLocationsFunctionsCall- , ProjectsLocationsFunctionsCall-- -- * Request Lenses- , pXgafv- , pUploadProtocol- , pAccessToken- , pUploadType- , pPayload- , pName- , pCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.call@ method which the--- 'ProjectsLocationsFunctionsCall' request conforms to.-type ProjectsLocationsFunctionsCallResource =- "v1" :>- CaptureMode "name" "call" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CallFunctionRequest :>- Post '[JSON] CallFunctionResponse---- | Synchronously invokes a deployed Cloud Function. To be used for testing--- purposes as very limited traffic is allowed. For more information on the--- actual limits, refer to [Rate--- Limits](https:\/\/cloud.google.com\/functions\/quotas#rate_limits).------ /See:/ 'projectsLocationsFunctionsCall' smart constructor.-data ProjectsLocationsFunctionsCall =- ProjectsLocationsFunctionsCall'- { _pXgafv :: !(Maybe Xgafv)- , _pUploadProtocol :: !(Maybe Text)- , _pAccessToken :: !(Maybe Text)- , _pUploadType :: !(Maybe Text)- , _pPayload :: !CallFunctionRequest- , _pName :: !Text- , _pCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsCall' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pXgafv'------ * 'pUploadProtocol'------ * 'pAccessToken'------ * 'pUploadType'------ * 'pPayload'------ * 'pName'------ * 'pCallback'-projectsLocationsFunctionsCall- :: CallFunctionRequest -- ^ 'pPayload'- -> Text -- ^ 'pName'- -> ProjectsLocationsFunctionsCall-projectsLocationsFunctionsCall pPPayload_ pPName_ =- ProjectsLocationsFunctionsCall'- { _pXgafv = Nothing- , _pUploadProtocol = Nothing- , _pAccessToken = Nothing- , _pUploadType = Nothing- , _pPayload = pPPayload_- , _pName = pPName_- , _pCallback = Nothing- }----- | V1 error format.-pXgafv :: Lens' ProjectsLocationsFunctionsCall (Maybe Xgafv)-pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pUploadProtocol :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)-pUploadProtocol- = lens _pUploadProtocol- (\ s a -> s{_pUploadProtocol = a})---- | OAuth access token.-pAccessToken :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)-pAccessToken- = lens _pAccessToken (\ s a -> s{_pAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pUploadType :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)-pUploadType- = lens _pUploadType (\ s a -> s{_pUploadType = a})---- | Multipart request metadata.-pPayload :: Lens' ProjectsLocationsFunctionsCall CallFunctionRequest-pPayload = lens _pPayload (\ s a -> s{_pPayload = a})---- | The name of the function to be called.-pName :: Lens' ProjectsLocationsFunctionsCall Text-pName = lens _pName (\ s a -> s{_pName = a})---- | JSONP-pCallback :: Lens' ProjectsLocationsFunctionsCall (Maybe Text)-pCallback- = lens _pCallback (\ s a -> s{_pCallback = a})--instance GoogleRequest ProjectsLocationsFunctionsCall- where- type Rs ProjectsLocationsFunctionsCall =- CallFunctionResponse- type Scopes ProjectsLocationsFunctionsCall =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsCall'{..}- = go _pName _pXgafv _pUploadProtocol _pAccessToken- _pUploadType- _pCallback- (Just AltJSON)- _pPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsCallResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Create.hs
@@ -1,173 +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.CloudFunctions.Projects.Locations.Functions.Create--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Creates a new function. If a function with the given name already exists--- in the specified project, the long running operation will return--- \`ALREADY_EXISTS\` error.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.create@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create- (- -- * REST Resource- ProjectsLocationsFunctionsCreateResource-- -- * Creating a Request- , projectsLocationsFunctionsCreate- , ProjectsLocationsFunctionsCreate-- -- * Request Lenses- , plfcXgafv- , plfcUploadProtocol- , plfcLocation- , plfcAccessToken- , plfcUploadType- , plfcPayload- , plfcCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.create@ method which the--- 'ProjectsLocationsFunctionsCreate' request conforms to.-type ProjectsLocationsFunctionsCreateResource =- "v1" :>- Capture "location" Text :>- "functions" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CloudFunction :>- Post '[JSON] Operation---- | Creates a new function. If a function with the given name already exists--- in the specified project, the long running operation will return--- \`ALREADY_EXISTS\` error.------ /See:/ 'projectsLocationsFunctionsCreate' smart constructor.-data ProjectsLocationsFunctionsCreate =- ProjectsLocationsFunctionsCreate'- { _plfcXgafv :: !(Maybe Xgafv)- , _plfcUploadProtocol :: !(Maybe Text)- , _plfcLocation :: !Text- , _plfcAccessToken :: !(Maybe Text)- , _plfcUploadType :: !(Maybe Text)- , _plfcPayload :: !CloudFunction- , _plfcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfcXgafv'------ * 'plfcUploadProtocol'------ * 'plfcLocation'------ * 'plfcAccessToken'------ * 'plfcUploadType'------ * 'plfcPayload'------ * 'plfcCallback'-projectsLocationsFunctionsCreate- :: Text -- ^ 'plfcLocation'- -> CloudFunction -- ^ 'plfcPayload'- -> ProjectsLocationsFunctionsCreate-projectsLocationsFunctionsCreate pPlfcLocation_ pPlfcPayload_ =- ProjectsLocationsFunctionsCreate'- { _plfcXgafv = Nothing- , _plfcUploadProtocol = Nothing- , _plfcLocation = pPlfcLocation_- , _plfcAccessToken = Nothing- , _plfcUploadType = Nothing- , _plfcPayload = pPlfcPayload_- , _plfcCallback = Nothing- }----- | V1 error format.-plfcXgafv :: Lens' ProjectsLocationsFunctionsCreate (Maybe Xgafv)-plfcXgafv- = lens _plfcXgafv (\ s a -> s{_plfcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfcUploadProtocol :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)-plfcUploadProtocol- = lens _plfcUploadProtocol- (\ s a -> s{_plfcUploadProtocol = a})---- | The project and location in which the function should be created,--- specified in the format \`projects\/*\/locations\/*\`-plfcLocation :: Lens' ProjectsLocationsFunctionsCreate Text-plfcLocation- = lens _plfcLocation (\ s a -> s{_plfcLocation = a})---- | OAuth access token.-plfcAccessToken :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)-plfcAccessToken- = lens _plfcAccessToken- (\ s a -> s{_plfcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfcUploadType :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)-plfcUploadType- = lens _plfcUploadType- (\ s a -> s{_plfcUploadType = a})---- | Multipart request metadata.-plfcPayload :: Lens' ProjectsLocationsFunctionsCreate CloudFunction-plfcPayload- = lens _plfcPayload (\ s a -> s{_plfcPayload = a})---- | JSONP-plfcCallback :: Lens' ProjectsLocationsFunctionsCreate (Maybe Text)-plfcCallback- = lens _plfcCallback (\ s a -> s{_plfcCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsCreate- where- type Rs ProjectsLocationsFunctionsCreate = Operation- type Scopes ProjectsLocationsFunctionsCreate =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsCreate'{..}- = go _plfcLocation _plfcXgafv _plfcUploadProtocol- _plfcAccessToken- _plfcUploadType- _plfcCallback- (Just AltJSON)- _plfcPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsCreateResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Delete.hs
@@ -1,156 +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.CloudFunctions.Projects.Locations.Functions.Delete--- 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)------ Deletes a function with the given name from the specified project. If--- the given function is used by some trigger, the trigger will be updated--- to remove this function.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.delete@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Delete- (- -- * REST Resource- ProjectsLocationsFunctionsDeleteResource-- -- * Creating a Request- , projectsLocationsFunctionsDelete- , ProjectsLocationsFunctionsDelete-- -- * Request Lenses- , plfdXgafv- , plfdUploadProtocol- , plfdAccessToken- , plfdUploadType- , plfdName- , plfdCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.delete@ method which the--- 'ProjectsLocationsFunctionsDelete' request conforms to.-type ProjectsLocationsFunctionsDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Operation---- | Deletes a function with the given name from the specified project. If--- the given function is used by some trigger, the trigger will be updated--- to remove this function.------ /See:/ 'projectsLocationsFunctionsDelete' smart constructor.-data ProjectsLocationsFunctionsDelete =- ProjectsLocationsFunctionsDelete'- { _plfdXgafv :: !(Maybe Xgafv)- , _plfdUploadProtocol :: !(Maybe Text)- , _plfdAccessToken :: !(Maybe Text)- , _plfdUploadType :: !(Maybe Text)- , _plfdName :: !Text- , _plfdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfdXgafv'------ * 'plfdUploadProtocol'------ * 'plfdAccessToken'------ * 'plfdUploadType'------ * 'plfdName'------ * 'plfdCallback'-projectsLocationsFunctionsDelete- :: Text -- ^ 'plfdName'- -> ProjectsLocationsFunctionsDelete-projectsLocationsFunctionsDelete pPlfdName_ =- ProjectsLocationsFunctionsDelete'- { _plfdXgafv = Nothing- , _plfdUploadProtocol = Nothing- , _plfdAccessToken = Nothing- , _plfdUploadType = Nothing- , _plfdName = pPlfdName_- , _plfdCallback = Nothing- }----- | V1 error format.-plfdXgafv :: Lens' ProjectsLocationsFunctionsDelete (Maybe Xgafv)-plfdXgafv- = lens _plfdXgafv (\ s a -> s{_plfdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfdUploadProtocol :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)-plfdUploadProtocol- = lens _plfdUploadProtocol- (\ s a -> s{_plfdUploadProtocol = a})---- | OAuth access token.-plfdAccessToken :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)-plfdAccessToken- = lens _plfdAccessToken- (\ s a -> s{_plfdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfdUploadType :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)-plfdUploadType- = lens _plfdUploadType- (\ s a -> s{_plfdUploadType = a})---- | The name of the function which should be deleted.-plfdName :: Lens' ProjectsLocationsFunctionsDelete Text-plfdName = lens _plfdName (\ s a -> s{_plfdName = a})---- | JSONP-plfdCallback :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)-plfdCallback- = lens _plfdCallback (\ s a -> s{_plfdCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsDelete- where- type Rs ProjectsLocationsFunctionsDelete = Operation- type Scopes ProjectsLocationsFunctionsDelete =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsDelete'{..}- = go _plfdName _plfdXgafv _plfdUploadProtocol- _plfdAccessToken- _plfdUploadType- _plfdCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsDeleteResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GenerateDownloadURL.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.CloudFunctions.Projects.Locations.Functions.GenerateDownloadURL--- 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 a signed URL for downloading deployed function source code. The--- URL is only valid for a limited period and should be used within minutes--- after generation. For more information about the signed URL usage see:--- https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.generateDownloadUrl@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateDownloadURL- (- -- * REST Resource- ProjectsLocationsFunctionsGenerateDownloadURLResource-- -- * Creating a Request- , projectsLocationsFunctionsGenerateDownloadURL- , ProjectsLocationsFunctionsGenerateDownloadURL-- -- * Request Lenses- , plfgduXgafv- , plfgduUploadProtocol- , plfgduAccessToken- , plfgduUploadType- , plfgduPayload- , plfgduName- , plfgduCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.generateDownloadUrl@ method which the--- 'ProjectsLocationsFunctionsGenerateDownloadURL' request conforms to.-type ProjectsLocationsFunctionsGenerateDownloadURLResource- =- "v1" :>- CaptureMode "name" "generateDownloadUrl" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] GenerateDownloadURLRequest :>- Post '[JSON] GenerateDownloadURLResponse---- | Returns a signed URL for downloading deployed function source code. The--- URL is only valid for a limited period and should be used within minutes--- after generation. For more information about the signed URL usage see:--- https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls------ /See:/ 'projectsLocationsFunctionsGenerateDownloadURL' smart constructor.-data ProjectsLocationsFunctionsGenerateDownloadURL =- ProjectsLocationsFunctionsGenerateDownloadURL'- { _plfgduXgafv :: !(Maybe Xgafv)- , _plfgduUploadProtocol :: !(Maybe Text)- , _plfgduAccessToken :: !(Maybe Text)- , _plfgduUploadType :: !(Maybe Text)- , _plfgduPayload :: !GenerateDownloadURLRequest- , _plfgduName :: !Text- , _plfgduCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsGenerateDownloadURL' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfgduXgafv'------ * 'plfgduUploadProtocol'------ * 'plfgduAccessToken'------ * 'plfgduUploadType'------ * 'plfgduPayload'------ * 'plfgduName'------ * 'plfgduCallback'-projectsLocationsFunctionsGenerateDownloadURL- :: GenerateDownloadURLRequest -- ^ 'plfgduPayload'- -> Text -- ^ 'plfgduName'- -> ProjectsLocationsFunctionsGenerateDownloadURL-projectsLocationsFunctionsGenerateDownloadURL pPlfgduPayload_ pPlfgduName_ =- ProjectsLocationsFunctionsGenerateDownloadURL'- { _plfgduXgafv = Nothing- , _plfgduUploadProtocol = Nothing- , _plfgduAccessToken = Nothing- , _plfgduUploadType = Nothing- , _plfgduPayload = pPlfgduPayload_- , _plfgduName = pPlfgduName_- , _plfgduCallback = Nothing- }----- | V1 error format.-plfgduXgafv :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Xgafv)-plfgduXgafv- = lens _plfgduXgafv (\ s a -> s{_plfgduXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfgduUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)-plfgduUploadProtocol- = lens _plfgduUploadProtocol- (\ s a -> s{_plfgduUploadProtocol = a})---- | OAuth access token.-plfgduAccessToken :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)-plfgduAccessToken- = lens _plfgduAccessToken- (\ s a -> s{_plfgduAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfgduUploadType :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)-plfgduUploadType- = lens _plfgduUploadType- (\ s a -> s{_plfgduUploadType = a})---- | Multipart request metadata.-plfgduPayload :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL GenerateDownloadURLRequest-plfgduPayload- = lens _plfgduPayload- (\ s a -> s{_plfgduPayload = a})---- | The name of function for which source code Google Cloud Storage signed--- URL should be generated.-plfgduName :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL Text-plfgduName- = lens _plfgduName (\ s a -> s{_plfgduName = a})---- | JSONP-plfgduCallback :: Lens' ProjectsLocationsFunctionsGenerateDownloadURL (Maybe Text)-plfgduCallback- = lens _plfgduCallback- (\ s a -> s{_plfgduCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsGenerateDownloadURL- where- type Rs ProjectsLocationsFunctionsGenerateDownloadURL- = GenerateDownloadURLResponse- type Scopes- ProjectsLocationsFunctionsGenerateDownloadURL- = '["https://www.googleapis.com/auth/cloud-platform"]- requestClient- ProjectsLocationsFunctionsGenerateDownloadURL'{..}- = go _plfgduName _plfgduXgafv _plfgduUploadProtocol- _plfgduAccessToken- _plfgduUploadType- _plfgduCallback- (Just AltJSON)- _plfgduPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsFunctionsGenerateDownloadURLResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GenerateUploadURL.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.CloudFunctions.Projects.Locations.Functions.GenerateUploadURL--- 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 a signed URL for uploading a function source code. For more--- information about the signed URL usage see:--- https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls.--- Once the function source code upload is complete, the used signed URL--- should be provided in CreateFunction or UpdateFunction request as a--- reference to the function source code. When uploading source code to the--- generated signed URL, please follow these restrictions: * Source file--- type should be a zip file. * Source file size should not exceed 100MB--- limit. * No credentials should be attached - the signed URLs provide--- access to the target bucket using internal service identity; if--- credentials were attached, the identity from the credentials would be--- used, but that identity does not have permissions to upload files to the--- URL. When making a HTTP PUT request, these two headers need to be--- specified: * \`content-type: application\/zip\` *--- \`x-goog-content-length-range: 0,104857600\` And this header SHOULD NOT--- be specified: * \`Authorization: Bearer YOUR_TOKEN\`------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.generateUploadUrl@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateUploadURL- (- -- * REST Resource- ProjectsLocationsFunctionsGenerateUploadURLResource-- -- * Creating a Request- , projectsLocationsFunctionsGenerateUploadURL- , ProjectsLocationsFunctionsGenerateUploadURL-- -- * Request Lenses- , plfguuParent- , plfguuXgafv- , plfguuUploadProtocol- , plfguuAccessToken- , plfguuUploadType- , plfguuPayload- , plfguuCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.generateUploadUrl@ method which the--- 'ProjectsLocationsFunctionsGenerateUploadURL' request conforms to.-type ProjectsLocationsFunctionsGenerateUploadURLResource- =- "v1" :>- Capture "parent" Text :>- "functions:generateUploadUrl" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] GenerateUploadURLRequest :>- Post '[JSON] GenerateUploadURLResponse---- | Returns a signed URL for uploading a function source code. For more--- information about the signed URL usage see:--- https:\/\/cloud.google.com\/storage\/docs\/access-control\/signed-urls.--- Once the function source code upload is complete, the used signed URL--- should be provided in CreateFunction or UpdateFunction request as a--- reference to the function source code. When uploading source code to the--- generated signed URL, please follow these restrictions: * Source file--- type should be a zip file. * Source file size should not exceed 100MB--- limit. * No credentials should be attached - the signed URLs provide--- access to the target bucket using internal service identity; if--- credentials were attached, the identity from the credentials would be--- used, but that identity does not have permissions to upload files to the--- URL. When making a HTTP PUT request, these two headers need to be--- specified: * \`content-type: application\/zip\` *--- \`x-goog-content-length-range: 0,104857600\` And this header SHOULD NOT--- be specified: * \`Authorization: Bearer YOUR_TOKEN\`------ /See:/ 'projectsLocationsFunctionsGenerateUploadURL' smart constructor.-data ProjectsLocationsFunctionsGenerateUploadURL =- ProjectsLocationsFunctionsGenerateUploadURL'- { _plfguuParent :: !Text- , _plfguuXgafv :: !(Maybe Xgafv)- , _plfguuUploadProtocol :: !(Maybe Text)- , _plfguuAccessToken :: !(Maybe Text)- , _plfguuUploadType :: !(Maybe Text)- , _plfguuPayload :: !GenerateUploadURLRequest- , _plfguuCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsGenerateUploadURL' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfguuParent'------ * 'plfguuXgafv'------ * 'plfguuUploadProtocol'------ * 'plfguuAccessToken'------ * 'plfguuUploadType'------ * 'plfguuPayload'------ * 'plfguuCallback'-projectsLocationsFunctionsGenerateUploadURL- :: Text -- ^ 'plfguuParent'- -> GenerateUploadURLRequest -- ^ 'plfguuPayload'- -> ProjectsLocationsFunctionsGenerateUploadURL-projectsLocationsFunctionsGenerateUploadURL pPlfguuParent_ pPlfguuPayload_ =- ProjectsLocationsFunctionsGenerateUploadURL'- { _plfguuParent = pPlfguuParent_- , _plfguuXgafv = Nothing- , _plfguuUploadProtocol = Nothing- , _plfguuAccessToken = Nothing- , _plfguuUploadType = Nothing- , _plfguuPayload = pPlfguuPayload_- , _plfguuCallback = Nothing- }----- | The project and location in which the Google Cloud Storage signed URL--- should be generated, specified in the format--- \`projects\/*\/locations\/*\`.-plfguuParent :: Lens' ProjectsLocationsFunctionsGenerateUploadURL Text-plfguuParent- = lens _plfguuParent (\ s a -> s{_plfguuParent = a})---- | V1 error format.-plfguuXgafv :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Xgafv)-plfguuXgafv- = lens _plfguuXgafv (\ s a -> s{_plfguuXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfguuUploadProtocol :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)-plfguuUploadProtocol- = lens _plfguuUploadProtocol- (\ s a -> s{_plfguuUploadProtocol = a})---- | OAuth access token.-plfguuAccessToken :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)-plfguuAccessToken- = lens _plfguuAccessToken- (\ s a -> s{_plfguuAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfguuUploadType :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)-plfguuUploadType- = lens _plfguuUploadType- (\ s a -> s{_plfguuUploadType = a})---- | Multipart request metadata.-plfguuPayload :: Lens' ProjectsLocationsFunctionsGenerateUploadURL GenerateUploadURLRequest-plfguuPayload- = lens _plfguuPayload- (\ s a -> s{_plfguuPayload = a})---- | JSONP-plfguuCallback :: Lens' ProjectsLocationsFunctionsGenerateUploadURL (Maybe Text)-plfguuCallback- = lens _plfguuCallback- (\ s a -> s{_plfguuCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsGenerateUploadURL- where- type Rs ProjectsLocationsFunctionsGenerateUploadURL =- GenerateUploadURLResponse- type Scopes- ProjectsLocationsFunctionsGenerateUploadURL- = '["https://www.googleapis.com/auth/cloud-platform"]- requestClient- ProjectsLocationsFunctionsGenerateUploadURL'{..}- = go _plfguuParent _plfguuXgafv _plfguuUploadProtocol- _plfguuAccessToken- _plfguuUploadType- _plfguuCallback- (Just AltJSON)- _plfguuPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsFunctionsGenerateUploadURLResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Get.hs
@@ -1,151 +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.CloudFunctions.Projects.Locations.Functions.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 a function with the given name from the requested project.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.get@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Get- (- -- * REST Resource- ProjectsLocationsFunctionsGetResource-- -- * Creating a Request- , projectsLocationsFunctionsGet- , ProjectsLocationsFunctionsGet-- -- * Request Lenses- , plfgXgafv- , plfgUploadProtocol- , plfgAccessToken- , plfgUploadType- , plfgName- , plfgCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.get@ method which the--- 'ProjectsLocationsFunctionsGet' request conforms to.-type ProjectsLocationsFunctionsGetResource =- "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] CloudFunction---- | Returns a function with the given name from the requested project.------ /See:/ 'projectsLocationsFunctionsGet' smart constructor.-data ProjectsLocationsFunctionsGet =- ProjectsLocationsFunctionsGet'- { _plfgXgafv :: !(Maybe Xgafv)- , _plfgUploadProtocol :: !(Maybe Text)- , _plfgAccessToken :: !(Maybe Text)- , _plfgUploadType :: !(Maybe Text)- , _plfgName :: !Text- , _plfgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfgXgafv'------ * 'plfgUploadProtocol'------ * 'plfgAccessToken'------ * 'plfgUploadType'------ * 'plfgName'------ * 'plfgCallback'-projectsLocationsFunctionsGet- :: Text -- ^ 'plfgName'- -> ProjectsLocationsFunctionsGet-projectsLocationsFunctionsGet pPlfgName_ =- ProjectsLocationsFunctionsGet'- { _plfgXgafv = Nothing- , _plfgUploadProtocol = Nothing- , _plfgAccessToken = Nothing- , _plfgUploadType = Nothing- , _plfgName = pPlfgName_- , _plfgCallback = Nothing- }----- | V1 error format.-plfgXgafv :: Lens' ProjectsLocationsFunctionsGet (Maybe Xgafv)-plfgXgafv- = lens _plfgXgafv (\ s a -> s{_plfgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfgUploadProtocol :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)-plfgUploadProtocol- = lens _plfgUploadProtocol- (\ s a -> s{_plfgUploadProtocol = a})---- | OAuth access token.-plfgAccessToken :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)-plfgAccessToken- = lens _plfgAccessToken- (\ s a -> s{_plfgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfgUploadType :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)-plfgUploadType- = lens _plfgUploadType- (\ s a -> s{_plfgUploadType = a})---- | The name of the function which details should be obtained.-plfgName :: Lens' ProjectsLocationsFunctionsGet Text-plfgName = lens _plfgName (\ s a -> s{_plfgName = a})---- | JSONP-plfgCallback :: Lens' ProjectsLocationsFunctionsGet (Maybe Text)-plfgCallback- = lens _plfgCallback (\ s a -> s{_plfgCallback = a})--instance GoogleRequest ProjectsLocationsFunctionsGet- where- type Rs ProjectsLocationsFunctionsGet = CloudFunction- type Scopes ProjectsLocationsFunctionsGet =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsGet'{..}- = go _plfgName _plfgXgafv _plfgUploadProtocol- _plfgAccessToken- _plfgUploadType- _plfgCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsGetResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/GetIAMPolicy.hs
@@ -1,161 +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.CloudFunctions.Projects.Locations.Functions.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 IAM access control policy for a function. Returns an empty--- policy if the function exists and does not have a policy set.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.getIamPolicy@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GetIAMPolicy- (- -- * REST Resource- ProjectsLocationsFunctionsGetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsFunctionsGetIAMPolicy- , ProjectsLocationsFunctionsGetIAMPolicy-- -- * Request Lenses- , plfgipXgafv- , plfgipUploadProtocol- , plfgipAccessToken- , plfgipUploadType- , plfgipResource- , plfgipCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.getIamPolicy@ method which the--- 'ProjectsLocationsFunctionsGetIAMPolicy' request conforms to.-type ProjectsLocationsFunctionsGetIAMPolicyResource =- "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 IAM access control policy for a function. Returns an empty--- policy if the function exists and does not have a policy set.------ /See:/ 'projectsLocationsFunctionsGetIAMPolicy' smart constructor.-data ProjectsLocationsFunctionsGetIAMPolicy =- ProjectsLocationsFunctionsGetIAMPolicy'- { _plfgipXgafv :: !(Maybe Xgafv)- , _plfgipUploadProtocol :: !(Maybe Text)- , _plfgipAccessToken :: !(Maybe Text)- , _plfgipUploadType :: !(Maybe Text)- , _plfgipResource :: !Text- , _plfgipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsGetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfgipXgafv'------ * 'plfgipUploadProtocol'------ * 'plfgipAccessToken'------ * 'plfgipUploadType'------ * 'plfgipResource'------ * 'plfgipCallback'-projectsLocationsFunctionsGetIAMPolicy- :: Text -- ^ 'plfgipResource'- -> ProjectsLocationsFunctionsGetIAMPolicy-projectsLocationsFunctionsGetIAMPolicy pPlfgipResource_ =- ProjectsLocationsFunctionsGetIAMPolicy'- { _plfgipXgafv = Nothing- , _plfgipUploadProtocol = Nothing- , _plfgipAccessToken = Nothing- , _plfgipUploadType = Nothing- , _plfgipResource = pPlfgipResource_- , _plfgipCallback = Nothing- }----- | V1 error format.-plfgipXgafv :: Lens' ProjectsLocationsFunctionsGetIAMPolicy (Maybe Xgafv)-plfgipXgafv- = lens _plfgipXgafv (\ s a -> s{_plfgipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfgipUploadProtocol :: Lens' ProjectsLocationsFunctionsGetIAMPolicy (Maybe Text)-plfgipUploadProtocol- = lens _plfgipUploadProtocol- (\ s a -> s{_plfgipUploadProtocol = a})---- | OAuth access token.-plfgipAccessToken :: Lens' ProjectsLocationsFunctionsGetIAMPolicy (Maybe Text)-plfgipAccessToken- = lens _plfgipAccessToken- (\ s a -> s{_plfgipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfgipUploadType :: Lens' ProjectsLocationsFunctionsGetIAMPolicy (Maybe Text)-plfgipUploadType- = lens _plfgipUploadType- (\ s a -> s{_plfgipUploadType = a})---- | REQUIRED: The resource for which the policy is being requested. See the--- operation documentation for the appropriate value for this field.-plfgipResource :: Lens' ProjectsLocationsFunctionsGetIAMPolicy Text-plfgipResource- = lens _plfgipResource- (\ s a -> s{_plfgipResource = a})---- | JSONP-plfgipCallback :: Lens' ProjectsLocationsFunctionsGetIAMPolicy (Maybe Text)-plfgipCallback- = lens _plfgipCallback- (\ s a -> s{_plfgipCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsGetIAMPolicy- where- type Rs ProjectsLocationsFunctionsGetIAMPolicy =- Policy- type Scopes ProjectsLocationsFunctionsGetIAMPolicy =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient- ProjectsLocationsFunctionsGetIAMPolicy'{..}- = go _plfgipResource _plfgipXgafv- _plfgipUploadProtocol- _plfgipAccessToken- _plfgipUploadType- _plfgipCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsGetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/List.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.CloudFunctions.Projects.Locations.Functions.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)------ Returns a list of functions that belong to the requested project.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.list@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.List- (- -- * REST Resource- ProjectsLocationsFunctionsListResource-- -- * Creating a Request- , projectsLocationsFunctionsList- , ProjectsLocationsFunctionsList-- -- * Request Lenses- , plflParent- , plflXgafv- , plflUploadProtocol- , plflAccessToken- , plflUploadType- , plflPageToken- , plflPageSize- , plflCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.list@ method which the--- 'ProjectsLocationsFunctionsList' request conforms to.-type ProjectsLocationsFunctionsListResource =- "v1" :>- Capture "parent" Text :>- "functions" :>- 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] ListFunctionsResponse---- | Returns a list of functions that belong to the requested project.------ /See:/ 'projectsLocationsFunctionsList' smart constructor.-data ProjectsLocationsFunctionsList =- ProjectsLocationsFunctionsList'- { _plflParent :: !Text- , _plflXgafv :: !(Maybe Xgafv)- , _plflUploadProtocol :: !(Maybe Text)- , _plflAccessToken :: !(Maybe Text)- , _plflUploadType :: !(Maybe Text)- , _plflPageToken :: !(Maybe Text)- , _plflPageSize :: !(Maybe (Textual Int32))- , _plflCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plflParent'------ * 'plflXgafv'------ * 'plflUploadProtocol'------ * 'plflAccessToken'------ * 'plflUploadType'------ * 'plflPageToken'------ * 'plflPageSize'------ * 'plflCallback'-projectsLocationsFunctionsList- :: Text -- ^ 'plflParent'- -> ProjectsLocationsFunctionsList-projectsLocationsFunctionsList pPlflParent_ =- ProjectsLocationsFunctionsList'- { _plflParent = pPlflParent_- , _plflXgafv = Nothing- , _plflUploadProtocol = Nothing- , _plflAccessToken = Nothing- , _plflUploadType = Nothing- , _plflPageToken = Nothing- , _plflPageSize = Nothing- , _plflCallback = Nothing- }----- | The project and location from which the function should be listed,--- specified in the format \`projects\/*\/locations\/*\` If you want to--- list functions in all locations, use \"-\" in place of a location.-plflParent :: Lens' ProjectsLocationsFunctionsList Text-plflParent- = lens _plflParent (\ s a -> s{_plflParent = a})---- | V1 error format.-plflXgafv :: Lens' ProjectsLocationsFunctionsList (Maybe Xgafv)-plflXgafv- = lens _plflXgafv (\ s a -> s{_plflXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plflUploadProtocol :: Lens' ProjectsLocationsFunctionsList (Maybe Text)-plflUploadProtocol- = lens _plflUploadProtocol- (\ s a -> s{_plflUploadProtocol = a})---- | OAuth access token.-plflAccessToken :: Lens' ProjectsLocationsFunctionsList (Maybe Text)-plflAccessToken- = lens _plflAccessToken- (\ s a -> s{_plflAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plflUploadType :: Lens' ProjectsLocationsFunctionsList (Maybe Text)-plflUploadType- = lens _plflUploadType- (\ s a -> s{_plflUploadType = a})---- | The value returned by the last \`ListFunctionsResponse\`; indicates that--- this is a continuation of a prior \`ListFunctions\` call, and that the--- system should return the next page of data.-plflPageToken :: Lens' ProjectsLocationsFunctionsList (Maybe Text)-plflPageToken- = lens _plflPageToken- (\ s a -> s{_plflPageToken = a})---- | Maximum number of functions to return per call.-plflPageSize :: Lens' ProjectsLocationsFunctionsList (Maybe Int32)-plflPageSize- = lens _plflPageSize (\ s a -> s{_plflPageSize = a})- . mapping _Coerce---- | JSONP-plflCallback :: Lens' ProjectsLocationsFunctionsList (Maybe Text)-plflCallback- = lens _plflCallback (\ s a -> s{_plflCallback = a})--instance GoogleRequest ProjectsLocationsFunctionsList- where- type Rs ProjectsLocationsFunctionsList =- ListFunctionsResponse- type Scopes ProjectsLocationsFunctionsList =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsList'{..}- = go _plflParent _plflXgafv _plflUploadProtocol- _plflAccessToken- _plflUploadType- _plflPageToken- _plflPageSize- _plflCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsListResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/Patch.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.CloudFunctions.Projects.Locations.Functions.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)------ Updates existing function.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.patch@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Patch- (- -- * REST Resource- ProjectsLocationsFunctionsPatchResource-- -- * Creating a Request- , projectsLocationsFunctionsPatch- , ProjectsLocationsFunctionsPatch-- -- * Request Lenses- , plfpXgafv- , plfpUploadProtocol- , plfpUpdateMask- , plfpAccessToken- , plfpUploadType- , plfpPayload- , plfpName- , plfpCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.patch@ method which the--- 'ProjectsLocationsFunctionsPatch' request conforms to.-type ProjectsLocationsFunctionsPatchResource =- "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] CloudFunction :>- Patch '[JSON] Operation---- | Updates existing function.------ /See:/ 'projectsLocationsFunctionsPatch' smart constructor.-data ProjectsLocationsFunctionsPatch =- ProjectsLocationsFunctionsPatch'- { _plfpXgafv :: !(Maybe Xgafv)- , _plfpUploadProtocol :: !(Maybe Text)- , _plfpUpdateMask :: !(Maybe GFieldMask)- , _plfpAccessToken :: !(Maybe Text)- , _plfpUploadType :: !(Maybe Text)- , _plfpPayload :: !CloudFunction- , _plfpName :: !Text- , _plfpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfpXgafv'------ * 'plfpUploadProtocol'------ * 'plfpUpdateMask'------ * 'plfpAccessToken'------ * 'plfpUploadType'------ * 'plfpPayload'------ * 'plfpName'------ * 'plfpCallback'-projectsLocationsFunctionsPatch- :: CloudFunction -- ^ 'plfpPayload'- -> Text -- ^ 'plfpName'- -> ProjectsLocationsFunctionsPatch-projectsLocationsFunctionsPatch pPlfpPayload_ pPlfpName_ =- ProjectsLocationsFunctionsPatch'- { _plfpXgafv = Nothing- , _plfpUploadProtocol = Nothing- , _plfpUpdateMask = Nothing- , _plfpAccessToken = Nothing- , _plfpUploadType = Nothing- , _plfpPayload = pPlfpPayload_- , _plfpName = pPlfpName_- , _plfpCallback = Nothing- }----- | V1 error format.-plfpXgafv :: Lens' ProjectsLocationsFunctionsPatch (Maybe Xgafv)-plfpXgafv- = lens _plfpXgafv (\ s a -> s{_plfpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfpUploadProtocol :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)-plfpUploadProtocol- = lens _plfpUploadProtocol- (\ s a -> s{_plfpUploadProtocol = a})---- | Required list of fields to be updated in this request.-plfpUpdateMask :: Lens' ProjectsLocationsFunctionsPatch (Maybe GFieldMask)-plfpUpdateMask- = lens _plfpUpdateMask- (\ s a -> s{_plfpUpdateMask = a})---- | OAuth access token.-plfpAccessToken :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)-plfpAccessToken- = lens _plfpAccessToken- (\ s a -> s{_plfpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfpUploadType :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)-plfpUploadType- = lens _plfpUploadType- (\ s a -> s{_plfpUploadType = a})---- | Multipart request metadata.-plfpPayload :: Lens' ProjectsLocationsFunctionsPatch CloudFunction-plfpPayload- = lens _plfpPayload (\ s a -> s{_plfpPayload = a})---- | A user-defined name of the function. Function names must be unique--- globally and match pattern \`projects\/*\/locations\/*\/functions\/*\`-plfpName :: Lens' ProjectsLocationsFunctionsPatch Text-plfpName = lens _plfpName (\ s a -> s{_plfpName = a})---- | JSONP-plfpCallback :: Lens' ProjectsLocationsFunctionsPatch (Maybe Text)-plfpCallback- = lens _plfpCallback (\ s a -> s{_plfpCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsPatch- where- type Rs ProjectsLocationsFunctionsPatch = Operation- type Scopes ProjectsLocationsFunctionsPatch =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsFunctionsPatch'{..}- = go _plfpName _plfpXgafv _plfpUploadProtocol- _plfpUpdateMask- _plfpAccessToken- _plfpUploadType- _plfpCallback- (Just AltJSON)- _plfpPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsPatchResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/SetIAMPolicy.hs
@@ -1,176 +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.CloudFunctions.Projects.Locations.Functions.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 IAM access control policy on the specified function. Replaces--- any existing policy.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.setIamPolicy@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.SetIAMPolicy- (- -- * REST Resource- ProjectsLocationsFunctionsSetIAMPolicyResource-- -- * Creating a Request- , projectsLocationsFunctionsSetIAMPolicy- , ProjectsLocationsFunctionsSetIAMPolicy-- -- * Request Lenses- , plfsipXgafv- , plfsipUploadProtocol- , plfsipAccessToken- , plfsipUploadType- , plfsipPayload- , plfsipResource- , plfsipCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.setIamPolicy@ method which the--- 'ProjectsLocationsFunctionsSetIAMPolicy' request conforms to.-type ProjectsLocationsFunctionsSetIAMPolicyResource =- "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 IAM access control policy on the specified function. Replaces--- any existing policy.------ /See:/ 'projectsLocationsFunctionsSetIAMPolicy' smart constructor.-data ProjectsLocationsFunctionsSetIAMPolicy =- ProjectsLocationsFunctionsSetIAMPolicy'- { _plfsipXgafv :: !(Maybe Xgafv)- , _plfsipUploadProtocol :: !(Maybe Text)- , _plfsipAccessToken :: !(Maybe Text)- , _plfsipUploadType :: !(Maybe Text)- , _plfsipPayload :: !SetIAMPolicyRequest- , _plfsipResource :: !Text- , _plfsipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsSetIAMPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plfsipXgafv'------ * 'plfsipUploadProtocol'------ * 'plfsipAccessToken'------ * 'plfsipUploadType'------ * 'plfsipPayload'------ * 'plfsipResource'------ * 'plfsipCallback'-projectsLocationsFunctionsSetIAMPolicy- :: SetIAMPolicyRequest -- ^ 'plfsipPayload'- -> Text -- ^ 'plfsipResource'- -> ProjectsLocationsFunctionsSetIAMPolicy-projectsLocationsFunctionsSetIAMPolicy pPlfsipPayload_ pPlfsipResource_ =- ProjectsLocationsFunctionsSetIAMPolicy'- { _plfsipXgafv = Nothing- , _plfsipUploadProtocol = Nothing- , _plfsipAccessToken = Nothing- , _plfsipUploadType = Nothing- , _plfsipPayload = pPlfsipPayload_- , _plfsipResource = pPlfsipResource_- , _plfsipCallback = Nothing- }----- | V1 error format.-plfsipXgafv :: Lens' ProjectsLocationsFunctionsSetIAMPolicy (Maybe Xgafv)-plfsipXgafv- = lens _plfsipXgafv (\ s a -> s{_plfsipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plfsipUploadProtocol :: Lens' ProjectsLocationsFunctionsSetIAMPolicy (Maybe Text)-plfsipUploadProtocol- = lens _plfsipUploadProtocol- (\ s a -> s{_plfsipUploadProtocol = a})---- | OAuth access token.-plfsipAccessToken :: Lens' ProjectsLocationsFunctionsSetIAMPolicy (Maybe Text)-plfsipAccessToken- = lens _plfsipAccessToken- (\ s a -> s{_plfsipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plfsipUploadType :: Lens' ProjectsLocationsFunctionsSetIAMPolicy (Maybe Text)-plfsipUploadType- = lens _plfsipUploadType- (\ s a -> s{_plfsipUploadType = a})---- | Multipart request metadata.-plfsipPayload :: Lens' ProjectsLocationsFunctionsSetIAMPolicy SetIAMPolicyRequest-plfsipPayload- = lens _plfsipPayload- (\ s a -> s{_plfsipPayload = a})---- | REQUIRED: The resource for which the policy is being specified. See the--- operation documentation for the appropriate value for this field.-plfsipResource :: Lens' ProjectsLocationsFunctionsSetIAMPolicy Text-plfsipResource- = lens _plfsipResource- (\ s a -> s{_plfsipResource = a})---- | JSONP-plfsipCallback :: Lens' ProjectsLocationsFunctionsSetIAMPolicy (Maybe Text)-plfsipCallback- = lens _plfsipCallback- (\ s a -> s{_plfsipCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsSetIAMPolicy- where- type Rs ProjectsLocationsFunctionsSetIAMPolicy =- Policy- type Scopes ProjectsLocationsFunctionsSetIAMPolicy =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient- ProjectsLocationsFunctionsSetIAMPolicy'{..}- = go _plfsipResource _plfsipXgafv- _plfsipUploadProtocol- _plfsipAccessToken- _plfsipUploadType- _plfsipCallback- (Just AltJSON)- _plfsipPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy ProjectsLocationsFunctionsSetIAMPolicyResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/Functions/TestIAMPermissions.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.CloudFunctions.Projects.Locations.Functions.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)------ Tests the specified permissions against the IAM access control policy--- for a function. If the function does not exist, this will return an--- empty set of permissions, not a NOT_FOUND error.------ /See:/ <https://cloud.google.com/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.functions.testIamPermissions@.-module Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.TestIAMPermissions- (- -- * REST Resource- ProjectsLocationsFunctionsTestIAMPermissionsResource-- -- * Creating a Request- , projectsLocationsFunctionsTestIAMPermissions- , ProjectsLocationsFunctionsTestIAMPermissions-- -- * Request Lenses- , plftipXgafv- , plftipUploadProtocol- , plftipAccessToken- , plftipUploadType- , plftipPayload- , plftipResource- , plftipCallback- ) where--import Network.Google.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.projects.locations.functions.testIamPermissions@ method which the--- 'ProjectsLocationsFunctionsTestIAMPermissions' request conforms to.-type ProjectsLocationsFunctionsTestIAMPermissionsResource- =- "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---- | Tests the specified permissions against the IAM access control policy--- for a function. If the function does not exist, this will return an--- empty set of permissions, not a NOT_FOUND error.------ /See:/ 'projectsLocationsFunctionsTestIAMPermissions' smart constructor.-data ProjectsLocationsFunctionsTestIAMPermissions =- ProjectsLocationsFunctionsTestIAMPermissions'- { _plftipXgafv :: !(Maybe Xgafv)- , _plftipUploadProtocol :: !(Maybe Text)- , _plftipAccessToken :: !(Maybe Text)- , _plftipUploadType :: !(Maybe Text)- , _plftipPayload :: !TestIAMPermissionsRequest- , _plftipResource :: !Text- , _plftipCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsFunctionsTestIAMPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plftipXgafv'------ * 'plftipUploadProtocol'------ * 'plftipAccessToken'------ * 'plftipUploadType'------ * 'plftipPayload'------ * 'plftipResource'------ * 'plftipCallback'-projectsLocationsFunctionsTestIAMPermissions- :: TestIAMPermissionsRequest -- ^ 'plftipPayload'- -> Text -- ^ 'plftipResource'- -> ProjectsLocationsFunctionsTestIAMPermissions-projectsLocationsFunctionsTestIAMPermissions pPlftipPayload_ pPlftipResource_ =- ProjectsLocationsFunctionsTestIAMPermissions'- { _plftipXgafv = Nothing- , _plftipUploadProtocol = Nothing- , _plftipAccessToken = Nothing- , _plftipUploadType = Nothing- , _plftipPayload = pPlftipPayload_- , _plftipResource = pPlftipResource_- , _plftipCallback = Nothing- }----- | V1 error format.-plftipXgafv :: Lens' ProjectsLocationsFunctionsTestIAMPermissions (Maybe Xgafv)-plftipXgafv- = lens _plftipXgafv (\ s a -> s{_plftipXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plftipUploadProtocol :: Lens' ProjectsLocationsFunctionsTestIAMPermissions (Maybe Text)-plftipUploadProtocol- = lens _plftipUploadProtocol- (\ s a -> s{_plftipUploadProtocol = a})---- | OAuth access token.-plftipAccessToken :: Lens' ProjectsLocationsFunctionsTestIAMPermissions (Maybe Text)-plftipAccessToken- = lens _plftipAccessToken- (\ s a -> s{_plftipAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plftipUploadType :: Lens' ProjectsLocationsFunctionsTestIAMPermissions (Maybe Text)-plftipUploadType- = lens _plftipUploadType- (\ s a -> s{_plftipUploadType = a})---- | Multipart request metadata.-plftipPayload :: Lens' ProjectsLocationsFunctionsTestIAMPermissions TestIAMPermissionsRequest-plftipPayload- = lens _plftipPayload- (\ s a -> s{_plftipPayload = a})---- | REQUIRED: The resource for which the policy detail is being requested.--- See the operation documentation for the appropriate value for this--- field.-plftipResource :: Lens' ProjectsLocationsFunctionsTestIAMPermissions Text-plftipResource- = lens _plftipResource- (\ s a -> s{_plftipResource = a})---- | JSONP-plftipCallback :: Lens' ProjectsLocationsFunctionsTestIAMPermissions (Maybe Text)-plftipCallback- = lens _plftipCallback- (\ s a -> s{_plftipCallback = a})--instance GoogleRequest- ProjectsLocationsFunctionsTestIAMPermissions- where- type Rs ProjectsLocationsFunctionsTestIAMPermissions- = TestIAMPermissionsResponse- type Scopes- ProjectsLocationsFunctionsTestIAMPermissions- = '["https://www.googleapis.com/auth/cloud-platform"]- requestClient- ProjectsLocationsFunctionsTestIAMPermissions'{..}- = go _plftipResource _plftipXgafv- _plftipUploadProtocol- _plftipAccessToken- _plftipUploadType- _plftipCallback- (Just AltJSON)- _plftipPayload- cloudFunctionsService- where go- = buildClient- (Proxy ::- Proxy- ProjectsLocationsFunctionsTestIAMPermissionsResource)- mempty
− gen/Network/Google/Resource/CloudFunctions/Projects/Locations/List.hs
@@ -1,187 +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.CloudFunctions.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/functions Cloud Functions API Reference> for @cloudfunctions.projects.locations.list@.-module Network.Google.Resource.CloudFunctions.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.CloudFunctions.Types-import Network.Google.Prelude---- | A resource alias for @cloudfunctions.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"]- requestClient ProjectsLocationsList'{..}- = go _pllName _pllXgafv _pllUploadProtocol- _pllAccessToken- _pllUploadType- _pllFilter- _pllPageToken- _pllPageSize- _pllCallback- (Just AltJSON)- cloudFunctionsService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsListResource)- mempty
gogol-cloudfunctions.cabal view
@@ -1,60 +1,80 @@-name: gogol-cloudfunctions-version: 0.5.0-synopsis: Google Cloud Functions 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-cloudfunctions+version: 1.0.0+synopsis: Google Cloud Functions 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 lightweight user-provided functions executed in response to- events.- .- /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 lightweight user-provided functions executed in response to events.+ .+ /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 @v2@+ 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-cloudfunctions +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.CloudFunctions- , Network.Google.CloudFunctions.Types- , Network.Google.Resource.CloudFunctions.Operations.Get- , Network.Google.Resource.CloudFunctions.Operations.List- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Call- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Create- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Delete- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateDownloadURL- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GenerateUploadURL- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Get- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.GetIAMPolicy- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.List- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.Patch- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.SetIAMPolicy- , Network.Google.Resource.CloudFunctions.Projects.Locations.Functions.TestIAMPermissions- , Network.Google.Resource.CloudFunctions.Projects.Locations.List+ exposed-modules:+ Gogol.CloudFunctions+ Gogol.CloudFunctions.Projects.Locations.Functions.AbortFunctionUpgrade+ Gogol.CloudFunctions.Projects.Locations.Functions.CommitFunctionUpgrade+ Gogol.CloudFunctions.Projects.Locations.Functions.Create+ Gogol.CloudFunctions.Projects.Locations.Functions.Delete+ Gogol.CloudFunctions.Projects.Locations.Functions.DetachFunction+ Gogol.CloudFunctions.Projects.Locations.Functions.GenerateDownloadUrl+ Gogol.CloudFunctions.Projects.Locations.Functions.GenerateUploadUrl+ Gogol.CloudFunctions.Projects.Locations.Functions.Get+ Gogol.CloudFunctions.Projects.Locations.Functions.GetIamPolicy+ Gogol.CloudFunctions.Projects.Locations.Functions.List+ Gogol.CloudFunctions.Projects.Locations.Functions.Patch+ Gogol.CloudFunctions.Projects.Locations.Functions.RedirectFunctionUpgradeTraffic+ Gogol.CloudFunctions.Projects.Locations.Functions.RollbackFunctionUpgradeTraffic+ Gogol.CloudFunctions.Projects.Locations.Functions.SetIamPolicy+ Gogol.CloudFunctions.Projects.Locations.Functions.SetupFunctionUpgradeConfig+ Gogol.CloudFunctions.Projects.Locations.Functions.TestIamPermissions+ Gogol.CloudFunctions.Projects.Locations.List+ Gogol.CloudFunctions.Projects.Locations.Operations.Get+ Gogol.CloudFunctions.Projects.Locations.Operations.List+ Gogol.CloudFunctions.Projects.Locations.Runtimes.List+ Gogol.CloudFunctions.Types - other-modules:- Network.Google.CloudFunctions.Types.Product- , Network.Google.CloudFunctions.Types.Sum+ other-modules:+ Gogol.CloudFunctions.Internal.Product+ Gogol.CloudFunctions.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0