gogol-cloudprofiler 0.5.0 → 1.0.0
raw patch · 18 files changed
+1248/−1223 lines, 18 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +2/−2
- Setup.hs +2/−1
- gen/Gogol/CloudProfiler.hs +102/−0
- gen/Gogol/CloudProfiler/Internal/Product.hs +295/−0
- gen/Gogol/CloudProfiler/Internal/Sum.hs +202/−0
- gen/Gogol/CloudProfiler/Projects/Profiles/Create.hs +122/−0
- gen/Gogol/CloudProfiler/Projects/Profiles/CreateOffline.hs +125/−0
- gen/Gogol/CloudProfiler/Projects/Profiles/List.hs +125/−0
- gen/Gogol/CloudProfiler/Projects/Profiles/Patch.hs +126/−0
- gen/Gogol/CloudProfiler/Types.hs +93/−0
- gen/Network/Google/CloudProFiler.hs +0/−99
- gen/Network/Google/CloudProFiler/Types.hs +0/−88
- gen/Network/Google/CloudProFiler/Types/Product.hs +0/−337
- gen/Network/Google/CloudProFiler/Types/Sum.hs +0/−114
- gen/Network/Google/Resource/CloudProFiler/Projects/ProFiles/Create.hs +0/−185
- gen/Network/Google/Resource/CloudProFiler/Projects/ProFiles/CreateOffline.hs +0/−173
- gen/Network/Google/Resource/CloudProFiler/Projects/ProFiles/Patch.hs +0/−186
- gogol-cloudprofiler.cabal +54/−38
README.md view
@@ -8,12 +8,12 @@ ## Version -`0.5.0`+`1.0.0` ## Description -A client library for the Google Stackdriver Profiler.+A client library for the Google Cloud Profiler. ## Contribute
Setup.hs view
@@ -1,2 +1,3 @@-import Distribution.Simple+import Distribution.Simple+ main = defaultMain
+ gen/Gogol/CloudProfiler.hs view
@@ -0,0 +1,102 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudProfiler+-- 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 continuous profiling information.+--+-- /See:/ <https://cloud.google.com/profiler/ Cloud Profiler API Reference>+module Gogol.CloudProfiler+ ( -- * Configuration+ cloudProfilerService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write,++ -- * Resources++ -- ** cloudprofiler.projects.profiles.create+ CloudProfilerProjectsProfilesCreateResource,+ CloudProfilerProjectsProfilesCreate (..),+ newCloudProfilerProjectsProfilesCreate,++ -- ** cloudprofiler.projects.profiles.createOffline+ CloudProfilerProjectsProfilesCreateOfflineResource,+ CloudProfilerProjectsProfilesCreateOffline (..),+ newCloudProfilerProjectsProfilesCreateOffline,++ -- ** cloudprofiler.projects.profiles.list+ CloudProfilerProjectsProfilesListResource,+ CloudProfilerProjectsProfilesList (..),+ newCloudProfilerProjectsProfilesList,++ -- ** cloudprofiler.projects.profiles.patch+ CloudProfilerProjectsProfilesPatchResource,+ CloudProfilerProjectsProfilesPatch (..),+ newCloudProfilerProjectsProfilesPatch,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** CreateProfileRequest+ CreateProfileRequest (..),+ newCreateProfileRequest,++ -- ** CreateProfileRequest_ProfileTypeItem+ CreateProfileRequest_ProfileTypeItem (..),++ -- ** Deployment+ Deployment (..),+ newDeployment,++ -- ** Deployment_Labels+ Deployment_Labels (..),+ newDeployment_Labels,++ -- ** ListProfilesResponse+ ListProfilesResponse (..),+ newListProfilesResponse,++ -- ** Profile+ Profile (..),+ newProfile,++ -- ** Profile_Labels+ Profile_Labels (..),+ newProfile_Labels,++ -- ** Profile_ProfileType+ Profile_ProfileType (..),+ )+where++import Gogol.CloudProfiler.Projects.Profiles.Create+import Gogol.CloudProfiler.Projects.Profiles.CreateOffline+import Gogol.CloudProfiler.Projects.Profiles.List+import Gogol.CloudProfiler.Projects.Profiles.Patch+import Gogol.CloudProfiler.Types
+ gen/Gogol/CloudProfiler/Internal/Product.hs view
@@ -0,0 +1,295 @@+{-# 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.CloudProfiler.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.CloudProfiler.Internal.Product+ ( -- * CreateProfileRequest+ CreateProfileRequest (..),+ newCreateProfileRequest,++ -- * Deployment+ Deployment (..),+ newDeployment,++ -- * Deployment_Labels+ Deployment_Labels (..),+ newDeployment_Labels,++ -- * ListProfilesResponse+ ListProfilesResponse (..),+ newListProfilesResponse,++ -- * Profile+ Profile (..),+ newProfile,++ -- * Profile_Labels+ Profile_Labels (..),+ newProfile_Labels,+ )+where++import Gogol.CloudProfiler.Internal.Sum+import Gogol.Prelude qualified as Core++-- | CreateProfileRequest describes a profile resource online creation request. The deployment field must be populated. The profile_type specifies the list of profile types supported by the agent. The creation call will hang until a profile of one of these types needs to be collected.+--+-- /See:/ 'newCreateProfileRequest' smart constructor.+data CreateProfileRequest = CreateProfileRequest+ { -- | Deployment details.+ deployment :: (Core.Maybe Deployment),+ -- | One or more profile types that the agent is capable of providing.+ profileType :: (Core.Maybe [CreateProfileRequest_ProfileTypeItem])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CreateProfileRequest' with the minimum fields required to make a request.+newCreateProfileRequest ::+ CreateProfileRequest+newCreateProfileRequest =+ CreateProfileRequest+ { deployment = Core.Nothing,+ profileType = Core.Nothing+ }++instance Core.FromJSON CreateProfileRequest where+ parseJSON =+ Core.withObject+ "CreateProfileRequest"+ ( \o ->+ CreateProfileRequest+ Core.<$> (o Core..:? "deployment")+ Core.<*> (o Core..:? "profileType")+ )++instance Core.ToJSON CreateProfileRequest where+ toJSON CreateProfileRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("deployment" Core..=) Core.<$> deployment,+ ("profileType" Core..=) Core.<$> profileType+ ]+ )++-- | Deployment contains the deployment identification information.+--+-- /See:/ 'newDeployment' smart constructor.+data Deployment = Deployment+ { -- | Labels identify the deployment within the user universe and same target. Validation regex for label names: @^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$@. Value for an individual label must be \<= 512 bytes, the total size of all label names and values must be \<= 1024 bytes. Label named \"language\" can be used to record the programming language of the profiled deployment. The standard choices for the value include \"java\", \"go\", \"python\", \"ruby\", \"nodejs\", \"php\", \"dotnet\". For deployments running on Google Cloud Platform, \"zone\" or \"region\" label should be present describing the deployment location. An example of a zone is \"us-central1-a\", an example of a region is \"us-central1\" or \"us-central\".+ labels :: (Core.Maybe Deployment_Labels),+ -- | Project ID is the ID of a cloud project. Validation regex: @^a-z{4,61}[a-z0-9]$@.+ projectId :: (Core.Maybe Core.Text),+ -- | Target is the service name used to group related deployments: * Service name for App Engine Flex \/ Standard. * Cluster and container name for GKE. * User-specified string for direct Compute Engine profiling (e.g. Java). * Job name for Dataflow. Validation regex: @^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$@.+ target :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Deployment' with the minimum fields required to make a request.+newDeployment ::+ Deployment+newDeployment =+ Deployment+ { labels = Core.Nothing,+ projectId = Core.Nothing,+ target = Core.Nothing+ }++instance Core.FromJSON Deployment where+ parseJSON =+ Core.withObject+ "Deployment"+ ( \o ->+ Deployment+ Core.<$> (o Core..:? "labels")+ Core.<*> (o Core..:? "projectId")+ Core.<*> (o Core..:? "target")+ )++instance Core.ToJSON Deployment where+ toJSON Deployment {..} =+ Core.object+ ( Core.catMaybes+ [ ("labels" Core..=) Core.<$> labels,+ ("projectId" Core..=) Core.<$> projectId,+ ("target" Core..=) Core.<$> target+ ]+ )++-- | Labels identify the deployment within the user universe and same target. Validation regex for label names: @^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$@. Value for an individual label must be \<= 512 bytes, the total size of all label names and values must be \<= 1024 bytes. Label named \"language\" can be used to record the programming language of the profiled deployment. The standard choices for the value include \"java\", \"go\", \"python\", \"ruby\", \"nodejs\", \"php\", \"dotnet\". For deployments running on Google Cloud Platform, \"zone\" or \"region\" label should be present describing the deployment location. An example of a zone is \"us-central1-a\", an example of a region is \"us-central1\" or \"us-central\".+--+-- /See:/ 'newDeployment_Labels' smart constructor.+newtype Deployment_Labels = Deployment_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Deployment_Labels' with the minimum fields required to make a request.+newDeployment_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Deployment_Labels+newDeployment_Labels additional =+ Deployment_Labels {additional = additional}++instance Core.FromJSON Deployment_Labels where+ parseJSON =+ Core.withObject+ "Deployment_Labels"+ (\o -> Deployment_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Deployment_Labels where+ toJSON Deployment_Labels {..} = Core.toJSON additional++-- | ListProfileResponse contains the list of collected profiles for deployments in projects which the user has permissions to view.+--+-- /See:/ 'newListProfilesResponse' smart constructor.+data ListProfilesResponse = ListProfilesResponse+ { -- | Token to receive the next page of results. This field maybe empty if there are no more profiles to fetch.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | List of profiles fetched.+ profiles :: (Core.Maybe [Profile]),+ -- | Number of profiles that were skipped in the current page since they were not able to be fetched successfully. This should typically be zero. A non-zero value may indicate a transient failure, in which case if the number is too high for your use case, the call may be retried.+ skippedProfiles :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListProfilesResponse' with the minimum fields required to make a request.+newListProfilesResponse ::+ ListProfilesResponse+newListProfilesResponse =+ ListProfilesResponse+ { nextPageToken = Core.Nothing,+ profiles = Core.Nothing,+ skippedProfiles = Core.Nothing+ }++instance Core.FromJSON ListProfilesResponse where+ parseJSON =+ Core.withObject+ "ListProfilesResponse"+ ( \o ->+ ListProfilesResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "profiles")+ Core.<*> (o Core..:? "skippedProfiles")+ )++instance Core.ToJSON ListProfilesResponse where+ toJSON ListProfilesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("profiles" Core..=) Core.<$> profiles,+ ("skippedProfiles" Core..=) Core.<$> skippedProfiles+ ]+ )++-- | Profile resource.+--+-- /See:/ 'newProfile' smart constructor.+data Profile = Profile+ { -- | Deployment this profile corresponds to.+ deployment :: (Core.Maybe Deployment),+ -- | Duration of the profiling session. Input (for the offline mode) or output (for the online mode). The field represents requested profiling duration. It may slightly differ from the effective profiling duration, which is recorded in the profile data, in case the profiling can\'t be stopped immediately (e.g. in case stopping the profiling is handled asynchronously).+ duration :: (Core.Maybe Core.Duration),+ -- | Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.+ labels :: (Core.Maybe Profile_Labels),+ -- | Output only. Opaque, server-assigned, unique ID for this profile.+ name :: (Core.Maybe Core.Text),+ -- | Input only. Profile bytes, as a gzip compressed serialized proto, the format is https:\/\/github.com\/google\/pprof\/blob\/master\/proto\/profile.proto.+ profileBytes :: (Core.Maybe Core.Base64),+ -- | Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.+ profileType :: (Core.Maybe Profile_ProfileType),+ -- | Output only. Start time for the profile. This output is only present in response from the ListProfiles method.+ startTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Profile' with the minimum fields required to make a request.+newProfile ::+ Profile+newProfile =+ Profile+ { deployment = Core.Nothing,+ duration = Core.Nothing,+ labels = Core.Nothing,+ name = Core.Nothing,+ profileBytes = Core.Nothing,+ profileType = Core.Nothing,+ startTime = Core.Nothing+ }++instance Core.FromJSON Profile where+ parseJSON =+ Core.withObject+ "Profile"+ ( \o ->+ Profile+ Core.<$> (o Core..:? "deployment")+ Core.<*> (o Core..:? "duration")+ Core.<*> (o Core..:? "labels")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "profileBytes")+ Core.<*> (o Core..:? "profileType")+ Core.<*> (o Core..:? "startTime")+ )++instance Core.ToJSON Profile where+ toJSON Profile {..} =+ Core.object+ ( Core.catMaybes+ [ ("deployment" Core..=) Core.<$> deployment,+ ("duration" Core..=) Core.<$> duration,+ ("labels" Core..=) Core.<$> labels,+ ("name" Core..=) Core.<$> name,+ ("profileBytes" Core..=) Core.<$> profileBytes,+ ("profileType" Core..=) Core.<$> profileType,+ ("startTime" Core..=) Core.<$> startTime+ ]+ )++-- | Input only. Labels associated to this specific profile. These labels will get merged with the deployment labels for the final data set. See documentation on deployment labels for validation rules and limits.+--+-- /See:/ 'newProfile_Labels' smart constructor.+newtype Profile_Labels = Profile_Labels+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Profile_Labels' with the minimum fields required to make a request.+newProfile_Labels ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Profile_Labels+newProfile_Labels additional =+ Profile_Labels {additional = additional}++instance Core.FromJSON Profile_Labels where+ parseJSON =+ Core.withObject+ "Profile_Labels"+ (\o -> Profile_Labels Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Profile_Labels where+ toJSON Profile_Labels {..} = Core.toJSON additional
+ gen/Gogol/CloudProfiler/Internal/Sum.hs view
@@ -0,0 +1,202 @@+{-# 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.CloudProfiler.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.CloudProfiler.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * CreateProfileRequest_ProfileTypeItem+ CreateProfileRequest_ProfileTypeItem+ ( CreateProfileRequest_ProfileTypeItem_PROFILETYPEUNSPECIFIED,+ CreateProfileRequest_ProfileTypeItem_Cpu,+ CreateProfileRequest_ProfileTypeItem_Wall,+ CreateProfileRequest_ProfileTypeItem_Heap,+ CreateProfileRequest_ProfileTypeItem_Threads,+ CreateProfileRequest_ProfileTypeItem_Contention,+ CreateProfileRequest_ProfileTypeItem_PEAKHEAP,+ CreateProfileRequest_ProfileTypeItem_HEAPALLOC,+ ..+ ),++ -- * Profile_ProfileType+ Profile_ProfileType+ ( Profile_ProfileType_PROFILETYPEUNSPECIFIED,+ Profile_ProfileType_Cpu,+ Profile_ProfileType_Wall,+ Profile_ProfileType_Heap,+ Profile_ProfileType_Threads,+ Profile_ProfileType_Contention,+ Profile_ProfileType_PEAKHEAP,+ Profile_ProfileType_HEAPALLOC,+ ..+ ),+ )+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+ #-}++newtype CreateProfileRequest_ProfileTypeItem = CreateProfileRequest_ProfileTypeItem {fromCreateProfileRequest_ProfileTypeItem :: 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 profile type.+pattern CreateProfileRequest_ProfileTypeItem_PROFILETYPEUNSPECIFIED :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_PROFILETYPEUNSPECIFIED = CreateProfileRequest_ProfileTypeItem "PROFILE_TYPE_UNSPECIFIED"++-- | Thread CPU time sampling.+pattern CreateProfileRequest_ProfileTypeItem_Cpu :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_Cpu = CreateProfileRequest_ProfileTypeItem "CPU"++-- | Wallclock time sampling. More expensive as stops all threads.+pattern CreateProfileRequest_ProfileTypeItem_Wall :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_Wall = CreateProfileRequest_ProfileTypeItem "WALL"++-- | In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.+pattern CreateProfileRequest_ProfileTypeItem_Heap :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_Heap = CreateProfileRequest_ProfileTypeItem "HEAP"++-- | Single-shot collection of all thread stacks.+pattern CreateProfileRequest_ProfileTypeItem_Threads :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_Threads = CreateProfileRequest_ProfileTypeItem "THREADS"++-- | Synchronization contention profile.+pattern CreateProfileRequest_ProfileTypeItem_Contention :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_Contention = CreateProfileRequest_ProfileTypeItem "CONTENTION"++-- | Peak heap profile.+pattern CreateProfileRequest_ProfileTypeItem_PEAKHEAP :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_PEAKHEAP = CreateProfileRequest_ProfileTypeItem "PEAK_HEAP"++-- | Heap allocation profile. It represents the aggregation of all allocations made over the duration of the profile. All allocations are included, including those that might have been freed by the end of the profiling interval. The profile is in particular useful for garbage collecting languages to understand which parts of the code create most of the garbage collection pressure to see if those can be optimized.+pattern CreateProfileRequest_ProfileTypeItem_HEAPALLOC :: CreateProfileRequest_ProfileTypeItem+pattern CreateProfileRequest_ProfileTypeItem_HEAPALLOC = CreateProfileRequest_ProfileTypeItem "HEAP_ALLOC"++{-# COMPLETE+ CreateProfileRequest_ProfileTypeItem_PROFILETYPEUNSPECIFIED,+ CreateProfileRequest_ProfileTypeItem_Cpu,+ CreateProfileRequest_ProfileTypeItem_Wall,+ CreateProfileRequest_ProfileTypeItem_Heap,+ CreateProfileRequest_ProfileTypeItem_Threads,+ CreateProfileRequest_ProfileTypeItem_Contention,+ CreateProfileRequest_ProfileTypeItem_PEAKHEAP,+ CreateProfileRequest_ProfileTypeItem_HEAPALLOC,+ CreateProfileRequest_ProfileTypeItem+ #-}++-- | Type of profile. For offline mode, this must be specified when creating the profile. For online mode it is assigned and returned by the server.+newtype Profile_ProfileType = Profile_ProfileType {fromProfile_ProfileType :: 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 profile type.+pattern Profile_ProfileType_PROFILETYPEUNSPECIFIED :: Profile_ProfileType+pattern Profile_ProfileType_PROFILETYPEUNSPECIFIED = Profile_ProfileType "PROFILE_TYPE_UNSPECIFIED"++-- | Thread CPU time sampling.+pattern Profile_ProfileType_Cpu :: Profile_ProfileType+pattern Profile_ProfileType_Cpu = Profile_ProfileType "CPU"++-- | Wallclock time sampling. More expensive as stops all threads.+pattern Profile_ProfileType_Wall :: Profile_ProfileType+pattern Profile_ProfileType_Wall = Profile_ProfileType "WALL"++-- | In-use heap profile. Represents a snapshot of the allocations that are live at the time of the profiling.+pattern Profile_ProfileType_Heap :: Profile_ProfileType+pattern Profile_ProfileType_Heap = Profile_ProfileType "HEAP"++-- | Single-shot collection of all thread stacks.+pattern Profile_ProfileType_Threads :: Profile_ProfileType+pattern Profile_ProfileType_Threads = Profile_ProfileType "THREADS"++-- | Synchronization contention profile.+pattern Profile_ProfileType_Contention :: Profile_ProfileType+pattern Profile_ProfileType_Contention = Profile_ProfileType "CONTENTION"++-- | Peak heap profile.+pattern Profile_ProfileType_PEAKHEAP :: Profile_ProfileType+pattern Profile_ProfileType_PEAKHEAP = Profile_ProfileType "PEAK_HEAP"++-- | Heap allocation profile. It represents the aggregation of all allocations made over the duration of the profile. All allocations are included, including those that might have been freed by the end of the profiling interval. The profile is in particular useful for garbage collecting languages to understand which parts of the code create most of the garbage collection pressure to see if those can be optimized.+pattern Profile_ProfileType_HEAPALLOC :: Profile_ProfileType+pattern Profile_ProfileType_HEAPALLOC = Profile_ProfileType "HEAP_ALLOC"++{-# COMPLETE+ Profile_ProfileType_PROFILETYPEUNSPECIFIED,+ Profile_ProfileType_Cpu,+ Profile_ProfileType_Wall,+ Profile_ProfileType_Heap,+ Profile_ProfileType_Threads,+ Profile_ProfileType_Contention,+ Profile_ProfileType_PEAKHEAP,+ Profile_ProfileType_HEAPALLOC,+ Profile_ProfileType+ #-}
+ gen/Gogol/CloudProfiler/Projects/Profiles/Create.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.CloudProfiler.Projects.Profiles.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)+--+-- CreateProfile creates a new profile resource in the online mode. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./ The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named \"google.rpc.retryinfo-bin\".+--+-- /See:/ <https://cloud.google.com/profiler/ Cloud Profiler API Reference> for @cloudprofiler.projects.profiles.create@.+module Gogol.CloudProfiler.Projects.Profiles.Create+ ( -- * Resource+ CloudProfilerProjectsProfilesCreateResource,++ -- ** Constructing a Request+ CloudProfilerProjectsProfilesCreate (..),+ newCloudProfilerProjectsProfilesCreate,+ )+where++import Gogol.CloudProfiler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudprofiler.projects.profiles.create@ method which the+-- 'CloudProfilerProjectsProfilesCreate' request conforms to.+type CloudProfilerProjectsProfilesCreateResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "profiles"+ 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] CreateProfileRequest+ Core.:> Core.Post '[Core.JSON] Profile++-- | CreateProfile creates a new profile resource in the online mode. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./ The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available. The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named \"google.rpc.retryinfo-bin\".+--+-- /See:/ 'newCloudProfilerProjectsProfilesCreate' smart constructor.+data CloudProfilerProjectsProfilesCreate = CloudProfilerProjectsProfilesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Parent project to create the profile in.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: CreateProfileRequest,+ -- | 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 'CloudProfilerProjectsProfilesCreate' with the minimum fields required to make a request.+newCloudProfilerProjectsProfilesCreate ::+ -- | Parent project to create the profile in. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CreateProfileRequest ->+ CloudProfilerProjectsProfilesCreate+newCloudProfilerProjectsProfilesCreate parent payload =+ CloudProfilerProjectsProfilesCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudProfilerProjectsProfilesCreate where+ type Rs CloudProfilerProjectsProfilesCreate = Profile+ type+ Scopes CloudProfilerProjectsProfilesCreate =+ '[ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write+ ]+ requestClient CloudProfilerProjectsProfilesCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudProfilerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudProfilerProjectsProfilesCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudProfiler/Projects/Profiles/CreateOffline.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.CloudProfiler.Projects.Profiles.CreateOffline+-- 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)+--+-- CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./+--+-- /See:/ <https://cloud.google.com/profiler/ Cloud Profiler API Reference> for @cloudprofiler.projects.profiles.createOffline@.+module Gogol.CloudProfiler.Projects.Profiles.CreateOffline+ ( -- * Resource+ CloudProfilerProjectsProfilesCreateOfflineResource,++ -- ** Constructing a Request+ CloudProfilerProjectsProfilesCreateOffline (..),+ newCloudProfilerProjectsProfilesCreateOffline,+ )+where++import Gogol.CloudProfiler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudprofiler.projects.profiles.createOffline@ method which the+-- 'CloudProfilerProjectsProfilesCreateOffline' request conforms to.+type CloudProfilerProjectsProfilesCreateOfflineResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "profiles:createOffline"+ 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] Profile+ Core.:> Core.Post '[Core.JSON] Profile++-- | CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./+--+-- /See:/ 'newCloudProfilerProjectsProfilesCreateOffline' smart constructor.+data CloudProfilerProjectsProfilesCreateOffline = CloudProfilerProjectsProfilesCreateOffline+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Parent project to create the profile in.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: Profile,+ -- | 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 'CloudProfilerProjectsProfilesCreateOffline' with the minimum fields required to make a request.+newCloudProfilerProjectsProfilesCreateOffline ::+ -- | Parent project to create the profile in. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Profile ->+ CloudProfilerProjectsProfilesCreateOffline+newCloudProfilerProjectsProfilesCreateOffline parent payload =+ CloudProfilerProjectsProfilesCreateOffline+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudProfilerProjectsProfilesCreateOffline+ where+ type Rs CloudProfilerProjectsProfilesCreateOffline = Profile+ type+ Scopes CloudProfilerProjectsProfilesCreateOffline =+ '[ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write+ ]+ requestClient CloudProfilerProjectsProfilesCreateOffline {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudProfilerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudProfilerProjectsProfilesCreateOfflineResource+ )+ Core.mempty
+ gen/Gogol/CloudProfiler/Projects/Profiles/List.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudProfiler.Projects.Profiles.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 profiles which have been collected so far and for which the caller has permission to view.+--+-- /See:/ <https://cloud.google.com/profiler/ Cloud Profiler API Reference> for @cloudprofiler.projects.profiles.list@.+module Gogol.CloudProfiler.Projects.Profiles.List+ ( -- * Resource+ CloudProfilerProjectsProfilesListResource,++ -- ** Constructing a Request+ CloudProfilerProjectsProfilesList (..),+ newCloudProfilerProjectsProfilesList,+ )+where++import Gogol.CloudProfiler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudprofiler.projects.profiles.list@ method which the+-- 'CloudProfilerProjectsProfilesList' request conforms to.+type CloudProfilerProjectsProfilesListResource =+ "v2"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "profiles"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" 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] ListProfilesResponse++-- | Lists profiles which have been collected so far and for which the caller has permission to view.+--+-- /See:/ 'newCloudProfilerProjectsProfilesList' smart constructor.+data CloudProfilerProjectsProfilesList = CloudProfilerProjectsProfilesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optional. The maximum number of items to return. Default page_size is 1000. Max limit is 1000.+ pageSize :: (Core.Maybe Core.Int32),+ -- | Optional. The token to continue pagination and get profiles from a particular page. When paginating, all other parameters provided to @ListProfiles@ must match the call that provided the page token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The parent, which owns this collection of profiles. Format: projects\/{user/project/id}+ 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 'CloudProfilerProjectsProfilesList' with the minimum fields required to make a request.+newCloudProfilerProjectsProfilesList ::+ -- | Required. The parent, which owns this collection of profiles. Format: projects\/{user/project/id} See 'parent'.+ Core.Text ->+ CloudProfilerProjectsProfilesList+newCloudProfilerProjectsProfilesList parent =+ CloudProfilerProjectsProfilesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudProfilerProjectsProfilesList where+ type Rs CloudProfilerProjectsProfilesList = ListProfilesResponse+ type+ Scopes CloudProfilerProjectsProfilesList =+ '[ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write+ ]+ requestClient CloudProfilerProjectsProfilesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudProfilerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudProfilerProjectsProfilesListResource+ )+ Core.mempty
+ gen/Gogol/CloudProfiler/Projects/Profiles/Patch.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudProfiler.Projects.Profiles.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)+--+-- UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./+--+-- /See:/ <https://cloud.google.com/profiler/ Cloud Profiler API Reference> for @cloudprofiler.projects.profiles.patch@.+module Gogol.CloudProfiler.Projects.Profiles.Patch+ ( -- * Resource+ CloudProfilerProjectsProfilesPatchResource,++ -- ** Constructing a Request+ CloudProfilerProjectsProfilesPatch (..),+ newCloudProfilerProjectsProfilesPatch,+ )+where++import Gogol.CloudProfiler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudprofiler.projects.profiles.patch@ method which the+-- 'CloudProfilerProjectsProfilesPatch' request conforms to.+type CloudProfilerProjectsProfilesPatchResource =+ "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] Profile+ Core.:> Core.Patch '[Core.JSON] Profile++-- | UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation. /Direct use of this API is discouraged, please use a <https://cloud.google.com/profiler/docs/about-profiler#profiling_agent supported profiler agent> instead for profile collection./+--+-- /See:/ 'newCloudProfilerProjectsProfilesPatch' smart constructor.+data CloudProfilerProjectsProfilesPatch = CloudProfilerProjectsProfilesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Output only. Opaque, server-assigned, unique ID for this profile.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Profile,+ -- | Field mask used to specify the fields to be overwritten. Currently only profile_bytes and labels fields are supported by UpdateProfile, so only those fields can be specified in the mask. When no mask is provided, all fields are overwritten.+ 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 'CloudProfilerProjectsProfilesPatch' with the minimum fields required to make a request.+newCloudProfilerProjectsProfilesPatch ::+ -- | Output only. Opaque, server-assigned, unique ID for this profile. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Profile ->+ CloudProfilerProjectsProfilesPatch+newCloudProfilerProjectsProfilesPatch name payload =+ CloudProfilerProjectsProfilesPatch+ { 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 CloudProfilerProjectsProfilesPatch where+ type Rs CloudProfilerProjectsProfilesPatch = Profile+ type+ Scopes CloudProfilerProjectsProfilesPatch =+ '[ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write+ ]+ requestClient CloudProfilerProjectsProfilesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudProfilerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudProfilerProjectsProfilesPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudProfiler/Types.hs view
@@ -0,0 +1,93 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudProfiler.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.CloudProfiler.Types+ ( -- * Configuration+ cloudProfilerService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,+ Monitoring'FullControl,+ Monitoring'Write,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** CreateProfileRequest+ CreateProfileRequest (..),+ newCreateProfileRequest,++ -- ** CreateProfileRequest_ProfileTypeItem+ CreateProfileRequest_ProfileTypeItem (..),++ -- ** Deployment+ Deployment (..),+ newDeployment,++ -- ** Deployment_Labels+ Deployment_Labels (..),+ newDeployment_Labels,++ -- ** ListProfilesResponse+ ListProfilesResponse (..),+ newListProfilesResponse,++ -- ** Profile+ Profile (..),+ newProfile,++ -- ** Profile_Labels+ Profile_Labels (..),+ newProfile_Labels,++ -- ** Profile_ProfileType+ Profile_ProfileType (..),+ )+where++import Gogol.CloudProfiler.Internal.Product+import Gogol.CloudProfiler.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v2@ of the Cloud Profiler API. This contains the host and root path used as a starting point for constructing service requests.+cloudProfilerService :: Core.ServiceConfig+cloudProfilerService =+ Core.defaultService+ (Core.ServiceId "cloudprofiler:v2")+ "cloudprofiler.googleapis.com"++-- | See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.+type CloudPlatform'FullControl =+ "https://www.googleapis.com/auth/cloud-platform"++-- | View and write monitoring data for all of your Google and third-party Cloud and API projects+type Monitoring'FullControl =+ "https://www.googleapis.com/auth/monitoring"++-- | Publish metric data to your Google Cloud projects+type Monitoring'Write =+ "https://www.googleapis.com/auth/monitoring.write"
− gen/Network/Google/CloudProFiler.hs
@@ -1,99 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.CloudProFiler--- 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 continuous profiling information.------ /See:/ <https://cloud.google.com/profiler/ Stackdriver Profiler API Reference>-module Network.Google.CloudProFiler- (- -- * Service Configuration- cloudProfilerService-- -- * OAuth Scopes- , cloudPlatformScope- , monitoringScope- , monitoringWriteScope-- -- * API Declaration- , CloudProfilerAPI-- -- * Resources-- -- ** cloudprofiler.projects.profiles.create- , module Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create-- -- ** cloudprofiler.projects.profiles.createOffline- , module Network.Google.Resource.CloudProFiler.Projects.ProFiles.CreateOffline-- -- ** cloudprofiler.projects.profiles.patch- , module Network.Google.Resource.CloudProFiler.Projects.ProFiles.Patch-- -- * Types-- -- ** DeploymentLabels- , DeploymentLabels- , deploymentLabels- , dlAddtional-- -- ** ProFileProFileType- , ProFileProFileType (..)-- -- ** ProFile- , ProFile- , proFile- , pfProFileBytes- , pfName- , pfLabels- , pfProFileType- , pfDuration- , pfDeployment-- -- ** CreateProFileRequest- , CreateProFileRequest- , createProFileRequest- , cpfrProFileType- , cpfrDeployment-- -- ** ProFileLabels- , ProFileLabels- , proFileLabels- , pflAddtional-- -- ** Xgafv- , Xgafv (..)-- -- ** Deployment- , Deployment- , deployment- , dLabels- , dProjectId- , dTarget- ) where--import Network.Google.CloudProFiler.Types-import Network.Google.Prelude-import Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create-import Network.Google.Resource.CloudProFiler.Projects.ProFiles.CreateOffline-import Network.Google.Resource.CloudProFiler.Projects.ProFiles.Patch--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Stackdriver Profiler API service.-type CloudProfilerAPI =- ProjectsProFilesPatchResource :<|>- ProjectsProFilesCreateResource- :<|> ProjectsProFilesCreateOfflineResource
− gen/Network/Google/CloudProFiler/Types.hs
@@ -1,88 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudProFiler.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.CloudProFiler.Types- (- -- * Service Configuration- cloudProfilerService-- -- * OAuth Scopes- , cloudPlatformScope- , monitoringScope- , monitoringWriteScope-- -- * DeploymentLabels- , DeploymentLabels- , deploymentLabels- , dlAddtional-- -- * ProFileProFileType- , ProFileProFileType (..)-- -- * ProFile- , ProFile- , proFile- , pfProFileBytes- , pfName- , pfLabels- , pfProFileType- , pfDuration- , pfDeployment-- -- * CreateProFileRequest- , CreateProFileRequest- , createProFileRequest- , cpfrProFileType- , cpfrDeployment-- -- * ProFileLabels- , ProFileLabels- , proFileLabels- , pflAddtional-- -- * Xgafv- , Xgafv (..)-- -- * Deployment- , Deployment- , deployment- , dLabels- , dProjectId- , dTarget- ) where--import Network.Google.CloudProFiler.Types.Product-import Network.Google.CloudProFiler.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v2' of the Stackdriver Profiler API. This contains the host and root path used as a starting point for constructing service requests.-cloudProfilerService :: ServiceConfig-cloudProfilerService- = defaultService (ServiceId "cloudprofiler:v2")- "cloudprofiler.googleapis.com"---- | View and manage your data across Google Cloud Platform services-cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]-cloudPlatformScope = Proxy---- | View and write monitoring data for all of your Google and third-party--- Cloud and API projects-monitoringScope :: Proxy '["https://www.googleapis.com/auth/monitoring"]-monitoringScope = Proxy---- | Publish metric data to your Google Cloud projects-monitoringWriteScope :: Proxy '["https://www.googleapis.com/auth/monitoring.write"]-monitoringWriteScope = Proxy
− gen/Network/Google/CloudProFiler/Types/Product.hs
@@ -1,337 +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.CloudProFiler.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.CloudProFiler.Types.Product where--import Network.Google.CloudProFiler.Types.Sum-import Network.Google.Prelude---- | Labels identify the deployment within the user universe and same target.--- Validation regex for label names:--- \`^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$\`. Value for an individual label--- must be \<= 512 bytes, the total size of all label names and values must--- be \<= 1024 bytes. Label named \"language\" can be used to record the--- programming language of the profiled deployment. The standard choices--- for the value include \"java\", \"go\", \"python\", \"ruby\",--- \"nodejs\", \"php\", \"dotnet\". For deployments running on Google Cloud--- Platform, \"zone\" or \"region\" label should be present describing the--- deployment location. An example of a zone is \"us-central1-a\", an--- example of a region is \"us-central1\" or \"us-central\".------ /See:/ 'deploymentLabels' smart constructor.-newtype DeploymentLabels =- DeploymentLabels'- { _dlAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DeploymentLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dlAddtional'-deploymentLabels- :: HashMap Text Text -- ^ 'dlAddtional'- -> DeploymentLabels-deploymentLabels pDlAddtional_ =- DeploymentLabels' {_dlAddtional = _Coerce # pDlAddtional_}---dlAddtional :: Lens' DeploymentLabels (HashMap Text Text)-dlAddtional- = lens _dlAddtional (\ s a -> s{_dlAddtional = a}) .- _Coerce--instance FromJSON DeploymentLabels where- parseJSON- = withObject "DeploymentLabels"- (\ o -> DeploymentLabels' <$> (parseJSONObject o))--instance ToJSON DeploymentLabels where- toJSON = toJSON . _dlAddtional---- | Profile resource.------ /See:/ 'proFile' smart constructor.-data ProFile =- ProFile'- { _pfProFileBytes :: !(Maybe Bytes)- , _pfName :: !(Maybe Text)- , _pfLabels :: !(Maybe ProFileLabels)- , _pfProFileType :: !(Maybe ProFileProFileType)- , _pfDuration :: !(Maybe GDuration)- , _pfDeployment :: !(Maybe Deployment)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProFile' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pfProFileBytes'------ * 'pfName'------ * 'pfLabels'------ * 'pfProFileType'------ * 'pfDuration'------ * 'pfDeployment'-proFile- :: ProFile-proFile =- ProFile'- { _pfProFileBytes = Nothing- , _pfName = Nothing- , _pfLabels = Nothing- , _pfProFileType = Nothing- , _pfDuration = Nothing- , _pfDeployment = Nothing- }----- | Input only. Profile bytes, as a gzip compressed serialized proto, the--- format is--- https:\/\/github.com\/google\/pprof\/blob\/master\/proto\/profile.proto.-pfProFileBytes :: Lens' ProFile (Maybe ByteString)-pfProFileBytes- = lens _pfProFileBytes- (\ s a -> s{_pfProFileBytes = a})- . mapping _Bytes---- | Output only. Opaque, server-assigned, unique ID for this profile.-pfName :: Lens' ProFile (Maybe Text)-pfName = lens _pfName (\ s a -> s{_pfName = a})---- | Input only. Labels associated to this specific profile. These labels--- will get merged with the deployment labels for the final data set. See--- documentation on deployment labels for validation rules and limits.-pfLabels :: Lens' ProFile (Maybe ProFileLabels)-pfLabels = lens _pfLabels (\ s a -> s{_pfLabels = a})---- | Type of profile. For offline mode, this must be specified when creating--- the profile. For online mode it is assigned and returned by the server.-pfProFileType :: Lens' ProFile (Maybe ProFileProFileType)-pfProFileType- = lens _pfProFileType- (\ s a -> s{_pfProFileType = a})---- | Duration of the profiling session. Input (for the offline mode) or--- output (for the online mode). The field represents requested profiling--- duration. It may slightly differ from the effective profiling duration,--- which is recorded in the profile data, in case the profiling can\'t be--- stopped immediately (e.g. in case stopping the profiling is handled--- asynchronously).-pfDuration :: Lens' ProFile (Maybe Scientific)-pfDuration- = lens _pfDuration (\ s a -> s{_pfDuration = a}) .- mapping _GDuration---- | Deployment this profile corresponds to.-pfDeployment :: Lens' ProFile (Maybe Deployment)-pfDeployment- = lens _pfDeployment (\ s a -> s{_pfDeployment = a})--instance FromJSON ProFile where- parseJSON- = withObject "ProFile"- (\ o ->- ProFile' <$>- (o .:? "profileBytes") <*> (o .:? "name") <*>- (o .:? "labels")- <*> (o .:? "profileType")- <*> (o .:? "duration")- <*> (o .:? "deployment"))--instance ToJSON ProFile where- toJSON ProFile'{..}- = object- (catMaybes- [("profileBytes" .=) <$> _pfProFileBytes,- ("name" .=) <$> _pfName, ("labels" .=) <$> _pfLabels,- ("profileType" .=) <$> _pfProFileType,- ("duration" .=) <$> _pfDuration,- ("deployment" .=) <$> _pfDeployment])---- | CreateProfileRequest describes a profile resource online creation--- request. The deployment field must be populated. The profile_type--- specifies the list of profile types supported by the agent. The creation--- call will hang until a profile of one of these types needs to be--- collected.------ /See:/ 'createProFileRequest' smart constructor.-data CreateProFileRequest =- CreateProFileRequest'- { _cpfrProFileType :: !(Maybe [Text])- , _cpfrDeployment :: !(Maybe Deployment)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'CreateProFileRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cpfrProFileType'------ * 'cpfrDeployment'-createProFileRequest- :: CreateProFileRequest-createProFileRequest =- CreateProFileRequest' {_cpfrProFileType = Nothing, _cpfrDeployment = Nothing}----- | One or more profile types that the agent is capable of providing.-cpfrProFileType :: Lens' CreateProFileRequest [Text]-cpfrProFileType- = lens _cpfrProFileType- (\ s a -> s{_cpfrProFileType = a})- . _Default- . _Coerce---- | Deployment details.-cpfrDeployment :: Lens' CreateProFileRequest (Maybe Deployment)-cpfrDeployment- = lens _cpfrDeployment- (\ s a -> s{_cpfrDeployment = a})--instance FromJSON CreateProFileRequest where- parseJSON- = withObject "CreateProFileRequest"- (\ o ->- CreateProFileRequest' <$>- (o .:? "profileType" .!= mempty) <*>- (o .:? "deployment"))--instance ToJSON CreateProFileRequest where- toJSON CreateProFileRequest'{..}- = object- (catMaybes- [("profileType" .=) <$> _cpfrProFileType,- ("deployment" .=) <$> _cpfrDeployment])---- | Input only. Labels associated to this specific profile. These labels--- will get merged with the deployment labels for the final data set. See--- documentation on deployment labels for validation rules and limits.------ /See:/ 'proFileLabels' smart constructor.-newtype ProFileLabels =- ProFileLabels'- { _pflAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProFileLabels' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pflAddtional'-proFileLabels- :: HashMap Text Text -- ^ 'pflAddtional'- -> ProFileLabels-proFileLabels pPflAddtional_ =- ProFileLabels' {_pflAddtional = _Coerce # pPflAddtional_}---pflAddtional :: Lens' ProFileLabels (HashMap Text Text)-pflAddtional- = lens _pflAddtional (\ s a -> s{_pflAddtional = a})- . _Coerce--instance FromJSON ProFileLabels where- parseJSON- = withObject "ProFileLabels"- (\ o -> ProFileLabels' <$> (parseJSONObject o))--instance ToJSON ProFileLabels where- toJSON = toJSON . _pflAddtional---- | Deployment contains the deployment identification information.------ /See:/ 'deployment' smart constructor.-data Deployment =- Deployment'- { _dLabels :: !(Maybe DeploymentLabels)- , _dProjectId :: !(Maybe Text)- , _dTarget :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Deployment' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dLabels'------ * 'dProjectId'------ * 'dTarget'-deployment- :: Deployment-deployment =- Deployment' {_dLabels = Nothing, _dProjectId = Nothing, _dTarget = Nothing}----- | Labels identify the deployment within the user universe and same target.--- Validation regex for label names:--- \`^[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?$\`. Value for an individual label--- must be \<= 512 bytes, the total size of all label names and values must--- be \<= 1024 bytes. Label named \"language\" can be used to record the--- programming language of the profiled deployment. The standard choices--- for the value include \"java\", \"go\", \"python\", \"ruby\",--- \"nodejs\", \"php\", \"dotnet\". For deployments running on Google Cloud--- Platform, \"zone\" or \"region\" label should be present describing the--- deployment location. An example of a zone is \"us-central1-a\", an--- example of a region is \"us-central1\" or \"us-central\".-dLabels :: Lens' Deployment (Maybe DeploymentLabels)-dLabels = lens _dLabels (\ s a -> s{_dLabels = a})---- | Project ID is the ID of a cloud project. Validation regex:--- \`^a-z{4,61}[a-z0-9]$\`.-dProjectId :: Lens' Deployment (Maybe Text)-dProjectId- = lens _dProjectId (\ s a -> s{_dProjectId = a})---- | Target is the service name used to group related deployments: * Service--- name for GAE Flex \/ Standard. * Cluster and container name for GKE. *--- User-specified string for direct GCE profiling (e.g. Java). * Job name--- for Dataflow. Validation regex:--- \`^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$\`.-dTarget :: Lens' Deployment (Maybe Text)-dTarget = lens _dTarget (\ s a -> s{_dTarget = a})--instance FromJSON Deployment where- parseJSON- = withObject "Deployment"- (\ o ->- Deployment' <$>- (o .:? "labels") <*> (o .:? "projectId") <*>- (o .:? "target"))--instance ToJSON Deployment where- toJSON Deployment'{..}- = object- (catMaybes- [("labels" .=) <$> _dLabels,- ("projectId" .=) <$> _dProjectId,- ("target" .=) <$> _dTarget])
− gen/Network/Google/CloudProFiler/Types/Sum.hs
@@ -1,114 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudProFiler.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.CloudProFiler.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | Type of profile. For offline mode, this must be specified when creating--- the profile. For online mode it is assigned and returned by the server.-data ProFileProFileType- = ProFileTypeUnspecified- -- ^ @PROFILE_TYPE_UNSPECIFIED@- -- Unspecified profile type.- | CPU- -- ^ @CPU@- -- Thread CPU time sampling.- | Wall- -- ^ @WALL@- -- Wallclock time sampling. More expensive as stops all threads.- | Heap- -- ^ @HEAP@- -- In-use heap profile. Represents a snapshot of the allocations that are- -- live at the time of the profiling.- | Threads- -- ^ @THREADS@- -- Single-shot collection of all thread stacks.- | Contention- -- ^ @CONTENTION@- -- Synchronization contention profile.- | PeakHeap- -- ^ @PEAK_HEAP@- -- Peak heap profile.- | HeapAlloc- -- ^ @HEAP_ALLOC@- -- Heap allocation profile. It represents the aggregation of all- -- allocations made over the duration of the profile. All allocations are- -- included, including those that might have been freed by the end of the- -- profiling interval. The profile is in particular useful for garbage- -- collecting languages to understand which parts of the code create most- -- of the garbage collection pressure to see if those can be optimized.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ProFileProFileType--instance FromHttpApiData ProFileProFileType where- parseQueryParam = \case- "PROFILE_TYPE_UNSPECIFIED" -> Right ProFileTypeUnspecified- "CPU" -> Right CPU- "WALL" -> Right Wall- "HEAP" -> Right Heap- "THREADS" -> Right Threads- "CONTENTION" -> Right Contention- "PEAK_HEAP" -> Right PeakHeap- "HEAP_ALLOC" -> Right HeapAlloc- x -> Left ("Unable to parse ProFileProFileType from: " <> x)--instance ToHttpApiData ProFileProFileType where- toQueryParam = \case- ProFileTypeUnspecified -> "PROFILE_TYPE_UNSPECIFIED"- CPU -> "CPU"- Wall -> "WALL"- Heap -> "HEAP"- Threads -> "THREADS"- Contention -> "CONTENTION"- PeakHeap -> "PEAK_HEAP"- HeapAlloc -> "HEAP_ALLOC"--instance FromJSON ProFileProFileType where- parseJSON = parseJSONText "ProFileProFileType"--instance ToJSON ProFileProFileType 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/CloudProFiler/Projects/ProFiles/Create.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.CloudProFiler.Projects.ProFiles.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)------ CreateProfile creates a new profile resource in the online mode. The--- server ensures that the new profiles are created at a constant rate per--- deployment, so the creation request may hang for some time until the--- next profile session is available. The request may fail with ABORTED--- error if the creation is not available within ~1m, the response will--- indicate the duration of the backoff the client should take before--- attempting creating a profile again. The backoff duration is returned in--- google.rpc.RetryInfo extension on the response status. To a gRPC client,--- the extension will be return as a binary-serialized proto in the--- trailing metadata item named \"google.rpc.retryinfo-bin\".------ /See:/ <https://cloud.google.com/profiler/ Stackdriver Profiler API Reference> for @cloudprofiler.projects.profiles.create@.-module Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create- (- -- * REST Resource- ProjectsProFilesCreateResource-- -- * Creating a Request- , projectsProFilesCreate- , ProjectsProFilesCreate-- -- * Request Lenses- , ppfcParent- , ppfcXgafv- , ppfcUploadProtocol- , ppfcAccessToken- , ppfcUploadType- , ppfcPayload- , ppfcCallback- ) where--import Network.Google.CloudProFiler.Types-import Network.Google.Prelude---- | A resource alias for @cloudprofiler.projects.profiles.create@ method which the--- 'ProjectsProFilesCreate' request conforms to.-type ProjectsProFilesCreateResource =- "v2" :>- Capture "parent" Text :>- "profiles" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] CreateProFileRequest :>- Post '[JSON] ProFile---- | CreateProfile creates a new profile resource in the online mode. The--- server ensures that the new profiles are created at a constant rate per--- deployment, so the creation request may hang for some time until the--- next profile session is available. The request may fail with ABORTED--- error if the creation is not available within ~1m, the response will--- indicate the duration of the backoff the client should take before--- attempting creating a profile again. The backoff duration is returned in--- google.rpc.RetryInfo extension on the response status. To a gRPC client,--- the extension will be return as a binary-serialized proto in the--- trailing metadata item named \"google.rpc.retryinfo-bin\".------ /See:/ 'projectsProFilesCreate' smart constructor.-data ProjectsProFilesCreate =- ProjectsProFilesCreate'- { _ppfcParent :: !Text- , _ppfcXgafv :: !(Maybe Xgafv)- , _ppfcUploadProtocol :: !(Maybe Text)- , _ppfcAccessToken :: !(Maybe Text)- , _ppfcUploadType :: !(Maybe Text)- , _ppfcPayload :: !CreateProFileRequest- , _ppfcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsProFilesCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppfcParent'------ * 'ppfcXgafv'------ * 'ppfcUploadProtocol'------ * 'ppfcAccessToken'------ * 'ppfcUploadType'------ * 'ppfcPayload'------ * 'ppfcCallback'-projectsProFilesCreate- :: Text -- ^ 'ppfcParent'- -> CreateProFileRequest -- ^ 'ppfcPayload'- -> ProjectsProFilesCreate-projectsProFilesCreate pPpfcParent_ pPpfcPayload_ =- ProjectsProFilesCreate'- { _ppfcParent = pPpfcParent_- , _ppfcXgafv = Nothing- , _ppfcUploadProtocol = Nothing- , _ppfcAccessToken = Nothing- , _ppfcUploadType = Nothing- , _ppfcPayload = pPpfcPayload_- , _ppfcCallback = Nothing- }----- | Parent project to create the profile in.-ppfcParent :: Lens' ProjectsProFilesCreate Text-ppfcParent- = lens _ppfcParent (\ s a -> s{_ppfcParent = a})---- | V1 error format.-ppfcXgafv :: Lens' ProjectsProFilesCreate (Maybe Xgafv)-ppfcXgafv- = lens _ppfcXgafv (\ s a -> s{_ppfcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ppfcUploadProtocol :: Lens' ProjectsProFilesCreate (Maybe Text)-ppfcUploadProtocol- = lens _ppfcUploadProtocol- (\ s a -> s{_ppfcUploadProtocol = a})---- | OAuth access token.-ppfcAccessToken :: Lens' ProjectsProFilesCreate (Maybe Text)-ppfcAccessToken- = lens _ppfcAccessToken- (\ s a -> s{_ppfcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ppfcUploadType :: Lens' ProjectsProFilesCreate (Maybe Text)-ppfcUploadType- = lens _ppfcUploadType- (\ s a -> s{_ppfcUploadType = a})---- | Multipart request metadata.-ppfcPayload :: Lens' ProjectsProFilesCreate CreateProFileRequest-ppfcPayload- = lens _ppfcPayload (\ s a -> s{_ppfcPayload = a})---- | JSONP-ppfcCallback :: Lens' ProjectsProFilesCreate (Maybe Text)-ppfcCallback- = lens _ppfcCallback (\ s a -> s{_ppfcCallback = a})--instance GoogleRequest ProjectsProFilesCreate where- type Rs ProjectsProFilesCreate = ProFile- type Scopes ProjectsProFilesCreate =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/monitoring",- "https://www.googleapis.com/auth/monitoring.write"]- requestClient ProjectsProFilesCreate'{..}- = go _ppfcParent _ppfcXgafv _ppfcUploadProtocol- _ppfcAccessToken- _ppfcUploadType- _ppfcCallback- (Just AltJSON)- _ppfcPayload- cloudProfilerService- where go- = buildClient- (Proxy :: Proxy ProjectsProFilesCreateResource)- mempty
− gen/Network/Google/Resource/CloudProFiler/Projects/ProFiles/CreateOffline.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.CloudProFiler.Projects.ProFiles.CreateOffline--- 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)------ CreateOfflineProfile creates a new profile resource in the offline mode.--- The client provides the profile to create along with the profile bytes,--- the server records it.------ /See:/ <https://cloud.google.com/profiler/ Stackdriver Profiler API Reference> for @cloudprofiler.projects.profiles.createOffline@.-module Network.Google.Resource.CloudProFiler.Projects.ProFiles.CreateOffline- (- -- * REST Resource- ProjectsProFilesCreateOfflineResource-- -- * Creating a Request- , projectsProFilesCreateOffline- , ProjectsProFilesCreateOffline-- -- * Request Lenses- , ppfcoParent- , ppfcoXgafv- , ppfcoUploadProtocol- , ppfcoAccessToken- , ppfcoUploadType- , ppfcoPayload- , ppfcoCallback- ) where--import Network.Google.CloudProFiler.Types-import Network.Google.Prelude---- | A resource alias for @cloudprofiler.projects.profiles.createOffline@ method which the--- 'ProjectsProFilesCreateOffline' request conforms to.-type ProjectsProFilesCreateOfflineResource =- "v2" :>- Capture "parent" Text :>- "profiles:createOffline" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ProFile :> Post '[JSON] ProFile---- | CreateOfflineProfile creates a new profile resource in the offline mode.--- The client provides the profile to create along with the profile bytes,--- the server records it.------ /See:/ 'projectsProFilesCreateOffline' smart constructor.-data ProjectsProFilesCreateOffline =- ProjectsProFilesCreateOffline'- { _ppfcoParent :: !Text- , _ppfcoXgafv :: !(Maybe Xgafv)- , _ppfcoUploadProtocol :: !(Maybe Text)- , _ppfcoAccessToken :: !(Maybe Text)- , _ppfcoUploadType :: !(Maybe Text)- , _ppfcoPayload :: !ProFile- , _ppfcoCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsProFilesCreateOffline' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppfcoParent'------ * 'ppfcoXgafv'------ * 'ppfcoUploadProtocol'------ * 'ppfcoAccessToken'------ * 'ppfcoUploadType'------ * 'ppfcoPayload'------ * 'ppfcoCallback'-projectsProFilesCreateOffline- :: Text -- ^ 'ppfcoParent'- -> ProFile -- ^ 'ppfcoPayload'- -> ProjectsProFilesCreateOffline-projectsProFilesCreateOffline pPpfcoParent_ pPpfcoPayload_ =- ProjectsProFilesCreateOffline'- { _ppfcoParent = pPpfcoParent_- , _ppfcoXgafv = Nothing- , _ppfcoUploadProtocol = Nothing- , _ppfcoAccessToken = Nothing- , _ppfcoUploadType = Nothing- , _ppfcoPayload = pPpfcoPayload_- , _ppfcoCallback = Nothing- }----- | Parent project to create the profile in.-ppfcoParent :: Lens' ProjectsProFilesCreateOffline Text-ppfcoParent- = lens _ppfcoParent (\ s a -> s{_ppfcoParent = a})---- | V1 error format.-ppfcoXgafv :: Lens' ProjectsProFilesCreateOffline (Maybe Xgafv)-ppfcoXgafv- = lens _ppfcoXgafv (\ s a -> s{_ppfcoXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ppfcoUploadProtocol :: Lens' ProjectsProFilesCreateOffline (Maybe Text)-ppfcoUploadProtocol- = lens _ppfcoUploadProtocol- (\ s a -> s{_ppfcoUploadProtocol = a})---- | OAuth access token.-ppfcoAccessToken :: Lens' ProjectsProFilesCreateOffline (Maybe Text)-ppfcoAccessToken- = lens _ppfcoAccessToken- (\ s a -> s{_ppfcoAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ppfcoUploadType :: Lens' ProjectsProFilesCreateOffline (Maybe Text)-ppfcoUploadType- = lens _ppfcoUploadType- (\ s a -> s{_ppfcoUploadType = a})---- | Multipart request metadata.-ppfcoPayload :: Lens' ProjectsProFilesCreateOffline ProFile-ppfcoPayload- = lens _ppfcoPayload (\ s a -> s{_ppfcoPayload = a})---- | JSONP-ppfcoCallback :: Lens' ProjectsProFilesCreateOffline (Maybe Text)-ppfcoCallback- = lens _ppfcoCallback- (\ s a -> s{_ppfcoCallback = a})--instance GoogleRequest ProjectsProFilesCreateOffline- where- type Rs ProjectsProFilesCreateOffline = ProFile- type Scopes ProjectsProFilesCreateOffline =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/monitoring",- "https://www.googleapis.com/auth/monitoring.write"]- requestClient ProjectsProFilesCreateOffline'{..}- = go _ppfcoParent _ppfcoXgafv _ppfcoUploadProtocol- _ppfcoAccessToken- _ppfcoUploadType- _ppfcoCallback- (Just AltJSON)- _ppfcoPayload- cloudProfilerService- where go- = buildClient- (Proxy ::- Proxy ProjectsProFilesCreateOfflineResource)- mempty
− gen/Network/Google/Resource/CloudProFiler/Projects/ProFiles/Patch.hs
@@ -1,186 +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.CloudProFiler.Projects.ProFiles.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)------ UpdateProfile updates the profile bytes and labels on the profile--- resource created in the online mode. Updating the bytes for profiles--- created in the offline mode is currently not supported: the profile--- content must be provided at the time of the profile creation.------ /See:/ <https://cloud.google.com/profiler/ Stackdriver Profiler API Reference> for @cloudprofiler.projects.profiles.patch@.-module Network.Google.Resource.CloudProFiler.Projects.ProFiles.Patch- (- -- * REST Resource- ProjectsProFilesPatchResource-- -- * Creating a Request- , projectsProFilesPatch- , ProjectsProFilesPatch-- -- * Request Lenses- , ppfpXgafv- , ppfpUploadProtocol- , ppfpUpdateMask- , ppfpAccessToken- , ppfpUploadType- , ppfpPayload- , ppfpName- , ppfpCallback- ) where--import Network.Google.CloudProFiler.Types-import Network.Google.Prelude---- | A resource alias for @cloudprofiler.projects.profiles.patch@ method which the--- 'ProjectsProFilesPatch' request conforms to.-type ProjectsProFilesPatchResource =- "v2" :>- 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] ProFile :> Patch '[JSON] ProFile---- | UpdateProfile updates the profile bytes and labels on the profile--- resource created in the online mode. Updating the bytes for profiles--- created in the offline mode is currently not supported: the profile--- content must be provided at the time of the profile creation.------ /See:/ 'projectsProFilesPatch' smart constructor.-data ProjectsProFilesPatch =- ProjectsProFilesPatch'- { _ppfpXgafv :: !(Maybe Xgafv)- , _ppfpUploadProtocol :: !(Maybe Text)- , _ppfpUpdateMask :: !(Maybe GFieldMask)- , _ppfpAccessToken :: !(Maybe Text)- , _ppfpUploadType :: !(Maybe Text)- , _ppfpPayload :: !ProFile- , _ppfpName :: !Text- , _ppfpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsProFilesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppfpXgafv'------ * 'ppfpUploadProtocol'------ * 'ppfpUpdateMask'------ * 'ppfpAccessToken'------ * 'ppfpUploadType'------ * 'ppfpPayload'------ * 'ppfpName'------ * 'ppfpCallback'-projectsProFilesPatch- :: ProFile -- ^ 'ppfpPayload'- -> Text -- ^ 'ppfpName'- -> ProjectsProFilesPatch-projectsProFilesPatch pPpfpPayload_ pPpfpName_ =- ProjectsProFilesPatch'- { _ppfpXgafv = Nothing- , _ppfpUploadProtocol = Nothing- , _ppfpUpdateMask = Nothing- , _ppfpAccessToken = Nothing- , _ppfpUploadType = Nothing- , _ppfpPayload = pPpfpPayload_- , _ppfpName = pPpfpName_- , _ppfpCallback = Nothing- }----- | V1 error format.-ppfpXgafv :: Lens' ProjectsProFilesPatch (Maybe Xgafv)-ppfpXgafv- = lens _ppfpXgafv (\ s a -> s{_ppfpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ppfpUploadProtocol :: Lens' ProjectsProFilesPatch (Maybe Text)-ppfpUploadProtocol- = lens _ppfpUploadProtocol- (\ s a -> s{_ppfpUploadProtocol = a})---- | Field mask used to specify the fields to be overwritten. Currently only--- profile_bytes and labels fields are supported by UpdateProfile, so only--- those fields can be specified in the mask. When no mask is provided, all--- fields are overwritten.-ppfpUpdateMask :: Lens' ProjectsProFilesPatch (Maybe GFieldMask)-ppfpUpdateMask- = lens _ppfpUpdateMask- (\ s a -> s{_ppfpUpdateMask = a})---- | OAuth access token.-ppfpAccessToken :: Lens' ProjectsProFilesPatch (Maybe Text)-ppfpAccessToken- = lens _ppfpAccessToken- (\ s a -> s{_ppfpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ppfpUploadType :: Lens' ProjectsProFilesPatch (Maybe Text)-ppfpUploadType- = lens _ppfpUploadType- (\ s a -> s{_ppfpUploadType = a})---- | Multipart request metadata.-ppfpPayload :: Lens' ProjectsProFilesPatch ProFile-ppfpPayload- = lens _ppfpPayload (\ s a -> s{_ppfpPayload = a})---- | Output only. Opaque, server-assigned, unique ID for this profile.-ppfpName :: Lens' ProjectsProFilesPatch Text-ppfpName = lens _ppfpName (\ s a -> s{_ppfpName = a})---- | JSONP-ppfpCallback :: Lens' ProjectsProFilesPatch (Maybe Text)-ppfpCallback- = lens _ppfpCallback (\ s a -> s{_ppfpCallback = a})--instance GoogleRequest ProjectsProFilesPatch where- type Rs ProjectsProFilesPatch = ProFile- type Scopes ProjectsProFilesPatch =- '["https://www.googleapis.com/auth/cloud-platform",- "https://www.googleapis.com/auth/monitoring",- "https://www.googleapis.com/auth/monitoring.write"]- requestClient ProjectsProFilesPatch'{..}- = go _ppfpName _ppfpXgafv _ppfpUploadProtocol- _ppfpUpdateMask- _ppfpAccessToken- _ppfpUploadType- _ppfpCallback- (Just AltJSON)- _ppfpPayload- cloudProfilerService- where go- = buildClient- (Proxy :: Proxy ProjectsProFilesPatchResource)- mempty
gogol-cloudprofiler.cabal view
@@ -1,48 +1,64 @@-name: gogol-cloudprofiler-version: 0.5.0-synopsis: Google Stackdriver Profiler 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-cloudprofiler+version: 1.0.0+synopsis: Google Cloud Profiler 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 continuous profiling information.- .- /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.+ Manages continuous profiling information.+ .+ /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-cloudprofiler +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.CloudProFiler- , Network.Google.CloudProFiler.Types- , Network.Google.Resource.CloudProFiler.Projects.ProFiles.Create- , Network.Google.Resource.CloudProFiler.Projects.ProFiles.CreateOffline- , Network.Google.Resource.CloudProFiler.Projects.ProFiles.Patch+ exposed-modules:+ Gogol.CloudProfiler+ Gogol.CloudProfiler.Projects.Profiles.Create+ Gogol.CloudProfiler.Projects.Profiles.CreateOffline+ Gogol.CloudProfiler.Projects.Profiles.List+ Gogol.CloudProfiler.Projects.Profiles.Patch+ Gogol.CloudProfiler.Types - other-modules:- Network.Google.CloudProFiler.Types.Product- , Network.Google.CloudProFiler.Types.Sum+ other-modules:+ Gogol.CloudProfiler.Internal.Product+ Gogol.CloudProfiler.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0