gogol-cloudscheduler 0.5.0 → 1.0.0
raw patch · 35 files changed
+3711/−3897 lines, 35 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/CloudScheduler.hs +259/−0
- gen/Gogol/CloudScheduler/Internal/Product.hs +1305/−0
- gen/Gogol/CloudScheduler/Internal/Sum.hs +255/−0
- gen/Gogol/CloudScheduler/Operations/Cancel.hs +114/−0
- gen/Gogol/CloudScheduler/Operations/Delete.hs +107/−0
- gen/Gogol/CloudScheduler/Operations/Get.hs +107/−0
- gen/Gogol/CloudScheduler/Operations/List.hs +122/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Get.hs +111/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Create.hs +122/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Delete.hs +114/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Get.hs +111/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/List.hs +122/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Patch.hs +126/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Pause.hs +121/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Resume.hs +121/−0
- gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Run.hs +118/−0
- gen/Gogol/CloudScheduler/Projects/Locations/List.hs +127/−0
- gen/Gogol/CloudScheduler/Types.hs +182/−0
- gen/Network/Google/CloudScheduler.hs +0/−250
- gen/Network/Google/CloudScheduler/Types.hs +0/−195
- gen/Network/Google/CloudScheduler/Types/Product.hs +0/−1506
- gen/Network/Google/CloudScheduler/Types/Sum.hs +0/−215
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Get.hs +0/−148
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Create.hs +0/−166
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Delete.hs +0/−151
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Get.hs +0/−150
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/List.hs +0/−187
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Patch.hs +0/−196
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Pause.hs +0/−169
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Resume.hs +0/−170
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Run.hs +0/−160
- gen/Network/Google/Resource/CloudScheduler/Projects/Locations/List.hs +0/−187
- gogol-cloudscheduler.cabal +64/−45
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/CloudScheduler.hs view
@@ -0,0 +1,259 @@+{-# 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.CloudScheduler+-- 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 and manages jobs run on a regular recurring schedule.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference>+module Gogol.CloudScheduler+ ( -- * Configuration+ cloudSchedulerService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,++ -- * Resources++ -- ** cloudscheduler.operations.cancel+ CloudSchedulerOperationsCancelResource,+ CloudSchedulerOperationsCancel (..),+ newCloudSchedulerOperationsCancel,++ -- ** cloudscheduler.operations.delete+ CloudSchedulerOperationsDeleteResource,+ CloudSchedulerOperationsDelete (..),+ newCloudSchedulerOperationsDelete,++ -- ** cloudscheduler.operations.get+ CloudSchedulerOperationsGetResource,+ CloudSchedulerOperationsGet (..),+ newCloudSchedulerOperationsGet,++ -- ** cloudscheduler.operations.list+ CloudSchedulerOperationsListResource,+ CloudSchedulerOperationsList (..),+ newCloudSchedulerOperationsList,++ -- ** cloudscheduler.projects.locations.get+ CloudSchedulerProjectsLocationsGetResource,+ CloudSchedulerProjectsLocationsGet (..),+ newCloudSchedulerProjectsLocationsGet,++ -- ** cloudscheduler.projects.locations.jobs.create+ CloudSchedulerProjectsLocationsJobsCreateResource,+ CloudSchedulerProjectsLocationsJobsCreate (..),+ newCloudSchedulerProjectsLocationsJobsCreate,++ -- ** cloudscheduler.projects.locations.jobs.delete+ CloudSchedulerProjectsLocationsJobsDeleteResource,+ CloudSchedulerProjectsLocationsJobsDelete (..),+ newCloudSchedulerProjectsLocationsJobsDelete,++ -- ** cloudscheduler.projects.locations.jobs.get+ CloudSchedulerProjectsLocationsJobsGetResource,+ CloudSchedulerProjectsLocationsJobsGet (..),+ newCloudSchedulerProjectsLocationsJobsGet,++ -- ** cloudscheduler.projects.locations.jobs.list+ CloudSchedulerProjectsLocationsJobsListResource,+ CloudSchedulerProjectsLocationsJobsList (..),+ newCloudSchedulerProjectsLocationsJobsList,++ -- ** cloudscheduler.projects.locations.jobs.patch+ CloudSchedulerProjectsLocationsJobsPatchResource,+ CloudSchedulerProjectsLocationsJobsPatch (..),+ newCloudSchedulerProjectsLocationsJobsPatch,++ -- ** cloudscheduler.projects.locations.jobs.pause+ CloudSchedulerProjectsLocationsJobsPauseResource,+ CloudSchedulerProjectsLocationsJobsPause (..),+ newCloudSchedulerProjectsLocationsJobsPause,++ -- ** cloudscheduler.projects.locations.jobs.resume+ CloudSchedulerProjectsLocationsJobsResumeResource,+ CloudSchedulerProjectsLocationsJobsResume (..),+ newCloudSchedulerProjectsLocationsJobsResume,++ -- ** cloudscheduler.projects.locations.jobs.run+ CloudSchedulerProjectsLocationsJobsRunResource,+ CloudSchedulerProjectsLocationsJobsRun (..),+ newCloudSchedulerProjectsLocationsJobsRun,++ -- ** cloudscheduler.projects.locations.list+ CloudSchedulerProjectsLocationsListResource,+ CloudSchedulerProjectsLocationsList (..),+ newCloudSchedulerProjectsLocationsList,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AppEngineHttpTarget+ AppEngineHttpTarget (..),+ newAppEngineHttpTarget,++ -- ** AppEngineHttpTarget_Headers+ AppEngineHttpTarget_Headers (..),+ newAppEngineHttpTarget_Headers,++ -- ** AppEngineHttpTarget_HttpMethod+ AppEngineHttpTarget_HttpMethod (..),++ -- ** AppEngineRouting+ AppEngineRouting (..),+ newAppEngineRouting,++ -- ** CancelOperationRequest+ CancelOperationRequest (..),+ newCancelOperationRequest,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** HttpTarget+ HttpTarget (..),+ newHttpTarget,++ -- ** HttpTarget_Headers+ HttpTarget_Headers (..),+ newHttpTarget_Headers,++ -- ** HttpTarget_HttpMethod+ HttpTarget_HttpMethod (..),++ -- ** Job+ Job (..),+ newJob,++ -- ** Job_State+ Job_State (..),++ -- ** ListJobsResponse+ ListJobsResponse (..),+ newListJobsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** OAuthToken+ OAuthToken (..),+ newOAuthToken,++ -- ** OidcToken+ OidcToken (..),+ newOidcToken,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OperationMetadata+ OperationMetadata (..),+ newOperationMetadata,++ -- ** PauseJobRequest+ PauseJobRequest (..),+ newPauseJobRequest,++ -- ** PubsubMessage+ PubsubMessage (..),+ newPubsubMessage,++ -- ** PubsubMessage_Attributes+ PubsubMessage_Attributes (..),+ newPubsubMessage_Attributes,++ -- ** PubsubTarget+ PubsubTarget (..),+ newPubsubTarget,++ -- ** PubsubTarget_Attributes+ PubsubTarget_Attributes (..),+ newPubsubTarget_Attributes,++ -- ** ResumeJobRequest+ ResumeJobRequest (..),+ newResumeJobRequest,++ -- ** RetryConfig+ RetryConfig (..),+ newRetryConfig,++ -- ** RunJobRequest+ RunJobRequest (..),+ newRunJobRequest,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,+ )+where++import Gogol.CloudScheduler.Operations.Cancel+import Gogol.CloudScheduler.Operations.Delete+import Gogol.CloudScheduler.Operations.Get+import Gogol.CloudScheduler.Operations.List+import Gogol.CloudScheduler.Projects.Locations.Get+import Gogol.CloudScheduler.Projects.Locations.Jobs.Create+import Gogol.CloudScheduler.Projects.Locations.Jobs.Delete+import Gogol.CloudScheduler.Projects.Locations.Jobs.Get+import Gogol.CloudScheduler.Projects.Locations.Jobs.List+import Gogol.CloudScheduler.Projects.Locations.Jobs.Patch+import Gogol.CloudScheduler.Projects.Locations.Jobs.Pause+import Gogol.CloudScheduler.Projects.Locations.Jobs.Resume+import Gogol.CloudScheduler.Projects.Locations.Jobs.Run+import Gogol.CloudScheduler.Projects.Locations.List+import Gogol.CloudScheduler.Types
+ gen/Gogol/CloudScheduler/Internal/Product.hs view
@@ -0,0 +1,1305 @@+{-# 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.CloudScheduler.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.CloudScheduler.Internal.Product+ ( -- * AppEngineHttpTarget+ AppEngineHttpTarget (..),+ newAppEngineHttpTarget,++ -- * AppEngineHttpTarget_Headers+ AppEngineHttpTarget_Headers (..),+ newAppEngineHttpTarget_Headers,++ -- * AppEngineRouting+ AppEngineRouting (..),+ newAppEngineRouting,++ -- * CancelOperationRequest+ CancelOperationRequest (..),+ newCancelOperationRequest,++ -- * Empty+ Empty (..),+ newEmpty,++ -- * HttpTarget+ HttpTarget (..),+ newHttpTarget,++ -- * HttpTarget_Headers+ HttpTarget_Headers (..),+ newHttpTarget_Headers,++ -- * Job+ Job (..),+ newJob,++ -- * ListJobsResponse+ ListJobsResponse (..),+ newListJobsResponse,++ -- * ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- * ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- * Location+ Location (..),+ newLocation,++ -- * Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- * Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- * OAuthToken+ OAuthToken (..),+ newOAuthToken,++ -- * OidcToken+ OidcToken (..),+ newOidcToken,++ -- * Operation+ Operation (..),+ newOperation,++ -- * Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- * Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- * OperationMetadata+ OperationMetadata (..),+ newOperationMetadata,++ -- * PauseJobRequest+ PauseJobRequest (..),+ newPauseJobRequest,++ -- * PubsubMessage+ PubsubMessage (..),+ newPubsubMessage,++ -- * PubsubMessage_Attributes+ PubsubMessage_Attributes (..),+ newPubsubMessage_Attributes,++ -- * PubsubTarget+ PubsubTarget (..),+ newPubsubTarget,++ -- * PubsubTarget_Attributes+ PubsubTarget_Attributes (..),+ newPubsubTarget_Attributes,++ -- * ResumeJobRequest+ ResumeJobRequest (..),+ newResumeJobRequest,++ -- * RetryConfig+ RetryConfig (..),+ newRetryConfig,++ -- * RunJobRequest+ RunJobRequest (..),+ newRunJobRequest,++ -- * Status+ Status (..),+ newStatus,++ -- * Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,+ )+where++import Gogol.CloudScheduler.Internal.Sum+import Gogol.Prelude qualified as Core++-- | App Engine target. The job will be pushed to a job handler by means of an HTTP request via an http_method such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. Error 503 is considered an App Engine system error instead of an application error. Requests returning error 503 will be retried regardless of retry configuration and not counted against retry counts. Any other response code, or a failure to receive a response before the deadline, constitutes a failed attempt.+--+-- /See:/ 'newAppEngineHttpTarget' smart constructor.+data AppEngineHttpTarget = AppEngineHttpTarget+ { -- | App Engine Routing setting for the job.+ appEngineRouting :: (Core.Maybe AppEngineRouting),+ -- | Body. HTTP request body. A request body is allowed only if the HTTP method is POST or PUT. It will result in invalid argument error to set a body on a job with an incompatible HttpMethod.+ body :: (Core.Maybe Core.Base64),+ -- | HTTP request headers. This map contains the header field names and values. Headers can be set when the job is created. Cloud Scheduler sets some headers to default values: * @User-Agent@: By default, this header is @\"AppEngine-Google; (+http:\/\/code.google.com\/appengine)\"@. This header can be modified, but Cloud Scheduler will append @\"AppEngine-Google; (+http:\/\/code.google.com\/appengine)\"@ to the modified @User-Agent@. * @X-CloudScheduler@: This header will be set to true. * @X-CloudScheduler-JobName@: This header will contain the job name. * @X-CloudScheduler-ScheduleTime@: For Cloud Scheduler jobs specified in the unix-cron format, this header will contain the job schedule as an offset of UTC parsed according to RFC3339. If the job has a body and the following headers are not set by the user, Cloud Scheduler sets default values: * @Content-Type@: This will be set to @\"application\/octet-stream\"@. You can override this default by explicitly setting @Content-Type@ to a particular media type when+ -- creating the job. For example, you can set @Content-Type@ to @\"application\/json\"@. The headers below are output only. They cannot be set or overridden: * @Content-Length@: This is computed by Cloud Scheduler. * @X-Google-*@: For Google internal use only. * @X-AppEngine-*@: For Google internal use only. In addition, some App Engine headers, which contain job-specific information, are also be sent to the job handler.+ headers :: (Core.Maybe AppEngineHttpTarget_Headers),+ -- | The HTTP method to use for the request. PATCH and OPTIONS are not permitted.+ httpMethod :: (Core.Maybe AppEngineHttpTarget_HttpMethod),+ -- | The relative URI. The relative URL must begin with \"\/\" and must be a valid HTTP relative URL. It can contain a path, query string arguments, and @#@ fragments. If the relative URL is empty, then the root path \"\/\" will be used. No spaces are allowed, and the maximum length allowed is 2083 characters.+ relativeUri :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppEngineHttpTarget' with the minimum fields required to make a request.+newAppEngineHttpTarget ::+ AppEngineHttpTarget+newAppEngineHttpTarget =+ AppEngineHttpTarget+ { appEngineRouting = Core.Nothing,+ body = Core.Nothing,+ headers = Core.Nothing,+ httpMethod = Core.Nothing,+ relativeUri = Core.Nothing+ }++instance Core.FromJSON AppEngineHttpTarget where+ parseJSON =+ Core.withObject+ "AppEngineHttpTarget"+ ( \o ->+ AppEngineHttpTarget+ Core.<$> (o Core..:? "appEngineRouting")+ Core.<*> (o Core..:? "body")+ Core.<*> (o Core..:? "headers")+ Core.<*> (o Core..:? "httpMethod")+ Core.<*> (o Core..:? "relativeUri")+ )++instance Core.ToJSON AppEngineHttpTarget where+ toJSON AppEngineHttpTarget {..} =+ Core.object+ ( Core.catMaybes+ [ ("appEngineRouting" Core..=) Core.<$> appEngineRouting,+ ("body" Core..=) Core.<$> body,+ ("headers" Core..=) Core.<$> headers,+ ("httpMethod" Core..=) Core.<$> httpMethod,+ ("relativeUri" Core..=) Core.<$> relativeUri+ ]+ )++-- | HTTP request headers. This map contains the header field names and values. Headers can be set when the job is created. Cloud Scheduler sets some headers to default values: * @User-Agent@: By default, this header is @\"AppEngine-Google; (+http:\/\/code.google.com\/appengine)\"@. This header can be modified, but Cloud Scheduler will append @\"AppEngine-Google; (+http:\/\/code.google.com\/appengine)\"@ to the modified @User-Agent@. * @X-CloudScheduler@: This header will be set to true. * @X-CloudScheduler-JobName@: This header will contain the job name. * @X-CloudScheduler-ScheduleTime@: For Cloud Scheduler jobs specified in the unix-cron format, this header will contain the job schedule as an offset of UTC parsed according to RFC3339. If the job has a body and the following headers are not set by the user, Cloud Scheduler sets default values: * @Content-Type@: This will be set to @\"application\/octet-stream\"@. You can override this default by explicitly setting @Content-Type@ to a particular media type when+-- creating the job. For example, you can set @Content-Type@ to @\"application\/json\"@. The headers below are output only. They cannot be set or overridden: * @Content-Length@: This is computed by Cloud Scheduler. * @X-Google-*@: For Google internal use only. * @X-AppEngine-*@: For Google internal use only. In addition, some App Engine headers, which contain job-specific information, are also be sent to the job handler.+--+-- /See:/ 'newAppEngineHttpTarget_Headers' smart constructor.+newtype AppEngineHttpTarget_Headers = AppEngineHttpTarget_Headers+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppEngineHttpTarget_Headers' with the minimum fields required to make a request.+newAppEngineHttpTarget_Headers ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ AppEngineHttpTarget_Headers+newAppEngineHttpTarget_Headers additional =+ AppEngineHttpTarget_Headers {additional = additional}++instance Core.FromJSON AppEngineHttpTarget_Headers where+ parseJSON =+ Core.withObject+ "AppEngineHttpTarget_Headers"+ ( \o ->+ AppEngineHttpTarget_Headers Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON AppEngineHttpTarget_Headers where+ toJSON AppEngineHttpTarget_Headers {..} = Core.toJSON additional++-- | App Engine Routing. For more information about services, versions, and instances see <https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine An Overview of App Engine>, <https://cloud.google.com/appengine/docs/python/microservices-on-app-engine Microservices Architecture on Google App Engine>, <https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed App Engine Standard request routing>, and <https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed App Engine Flex request routing>.+--+-- /See:/ 'newAppEngineRouting' smart constructor.+data AppEngineRouting = AppEngineRouting+ { -- | Output only. The host that the job is sent to. For more information about how App Engine requests are routed, see <https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed here>. The host is constructed as: * @host = [application_domain_name]@ @| [service] + \'.\' + [application_domain_name]@ @| [version] + \'.\' + [application_domain_name]@ @| [version_dot_service]+ \'.\' + [application_domain_name]@ @| [instance] + \'.\' + [application_domain_name]@ @| [instance_dot_service] + \'.\' + [application_domain_name]@ @| [instance_dot_version] + \'.\' + [application_domain_name]@ @| [instance_dot_version_dot_service] + \'.\' + [application_domain_name]@ * @application_domain_name@ = The domain name of the app, for example .appspot.com, which is associated with the job\'s project ID. * @service =@ service * @version =@ version * @version_dot_service =@ version @+ \'.\' +@ service * @instance =@ instance * @instance_dot_service =@ instance @+ \'.\' +@ service * @instance_dot_version =@+ -- instance @+ \'.\' +@ version * @instance_dot_version_dot_service =@ instance @+ \'.\' +@ version @+ \'.\' +@ service If service is empty, then the job will be sent to the service which is the default service when the job is attempted. If version is empty, then the job will be sent to the version which is the default version when the job is attempted. If instance is empty, then the job will be sent to an instance which is available when the job is attempted. If service, version, or instance is invalid, then the job will be sent to the default version of the default service when the job is attempted.+ host :: (Core.Maybe Core.Text),+ -- | App instance. By default, the job is sent to an instance which is available when the job is attempted. Requests can only be sent to a specific instance if <https://cloud.google.com/appengine/docs/python/an-overview-of-app-engine?#scaling_types_and_instance_classes manual scaling is used in App Engine Standard>. App Engine Flex does not support instances. For more information, see <https://cloud.google.com/appengine/docs/standard/python/how-requests-are-routed App Engine Standard request routing> and <https://cloud.google.com/appengine/docs/flexible/python/how-requests-are-routed App Engine Flex request routing>.+ instance' :: (Core.Maybe Core.Text),+ -- | App service. By default, the job is sent to the service which is the default service when the job is attempted.+ service :: (Core.Maybe Core.Text),+ -- | App version. By default, the job is sent to the version which is the default version when the job is attempted.+ version :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppEngineRouting' with the minimum fields required to make a request.+newAppEngineRouting ::+ AppEngineRouting+newAppEngineRouting =+ AppEngineRouting+ { host = Core.Nothing,+ instance' = Core.Nothing,+ service = Core.Nothing,+ version = Core.Nothing+ }++instance Core.FromJSON AppEngineRouting where+ parseJSON =+ Core.withObject+ "AppEngineRouting"+ ( \o ->+ AppEngineRouting+ Core.<$> (o Core..:? "host")+ Core.<*> (o Core..:? "instance")+ Core.<*> (o Core..:? "service")+ Core.<*> (o Core..:? "version")+ )++instance Core.ToJSON AppEngineRouting where+ toJSON AppEngineRouting {..} =+ Core.object+ ( Core.catMaybes+ [ ("host" Core..=) Core.<$> host,+ ("instance" Core..=) Core.<$> instance',+ ("service" Core..=) Core.<$> service,+ ("version" Core..=) Core.<$> version+ ]+ )++-- | The request message for Operations.CancelOperation.+--+-- /See:/ 'newCancelOperationRequest' smart constructor.+data CancelOperationRequest = CancelOperationRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CancelOperationRequest' with the minimum fields required to make a request.+newCancelOperationRequest ::+ CancelOperationRequest+newCancelOperationRequest = CancelOperationRequest++instance Core.FromJSON CancelOperationRequest where+ parseJSON =+ Core.withObject+ "CancelOperationRequest"+ (\o -> Core.pure CancelOperationRequest)++instance Core.ToJSON CancelOperationRequest where+ toJSON = Core.const Core.emptyObject++-- | A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }+--+-- /See:/ 'newEmpty' smart constructor.+data Empty = Empty+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Empty' with the minimum fields required to make a request.+newEmpty ::+ Empty+newEmpty = Empty++instance Core.FromJSON Empty where+ parseJSON = Core.withObject "Empty" (\o -> Core.pure Empty)++instance Core.ToJSON Empty where+ toJSON = Core.const Core.emptyObject++-- | Http target. The job will be pushed to the job handler by means of an HTTP request via an http_method such as HTTP POST, HTTP GET, etc. The job is acknowledged by means of an HTTP response code in the range [200 - 299]. A failure to receive a response constitutes a failed execution. For a redirected request, the response returned by the redirected request is considered.+--+-- /See:/ 'newHttpTarget' smart constructor.+data HttpTarget = HttpTarget+ { -- | HTTP request body. A request body is allowed only if the HTTP method is POST, PUT, or PATCH. It is an error to set body on a job with an incompatible HttpMethod.+ body :: (Core.Maybe Core.Base64),+ -- | HTTP request headers. This map contains the header field names and values. The user can specify HTTP request headers to send with the job\'s HTTP request. Repeated headers are not supported, but a header value can contain commas. The following headers represent a subset of the headers that accompany the job\'s HTTP request. Some HTTP request headers are ignored or replaced. A partial list of headers that are ignored or replaced is below: * Host: This will be computed by Cloud Scheduler and derived from uri. * @Content-Length@: This will be computed by Cloud Scheduler. * @User-Agent@: This will be set to @\"Google-Cloud-Scheduler\"@. * @X-Google-*@: Google internal use only. * @X-AppEngine-*@: Google internal use only. * @X-CloudScheduler@: This header will be set to true. * @X-CloudScheduler-JobName@: This header will contain the job name. * @X-CloudScheduler-ScheduleTime@: For Cloud Scheduler jobs specified in the unix-cron format, this header will contain the job schedule as an offset of UTC parsed+ -- according to RFC3339. If the job has a body and the following headers are not set by the user, Cloud Scheduler sets default values: * @Content-Type@: This will be set to @\"application\/octet-stream\"@. You can override this default by explicitly setting @Content-Type@ to a particular media type when creating the job. For example, you can set @Content-Type@ to @\"application\/json\"@. The total size of headers must be less than 80KB.+ headers :: (Core.Maybe HttpTarget_Headers),+ -- | Which HTTP method to use for the request.+ httpMethod :: (Core.Maybe HttpTarget_HttpMethod),+ -- | If specified, an <https://developers.google.com/identity/protocols/OAuth2 OAuth token> will be generated and attached as an @Authorization@ header in the HTTP request. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.+ oauthToken :: (Core.Maybe OAuthToken),+ -- | If specified, an <https://developers.google.com/identity/protocols/OpenIDConnect OIDC> token will be generated and attached as an @Authorization@ header in the HTTP request. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.+ oidcToken :: (Core.Maybe OidcToken),+ -- | Required. The full URI path that the request will be sent to. This string must begin with either \"http:\/\/\" or \"https:\/\/\". Some examples of valid values for uri are: @http:\/\/acme.com@ and @https:\/\/acme.com\/sales:8080@. Cloud Scheduler will encode some characters for safety and compatibility. The maximum allowed URL length is 2083 characters after encoding.+ uri :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HttpTarget' with the minimum fields required to make a request.+newHttpTarget ::+ HttpTarget+newHttpTarget =+ HttpTarget+ { body = Core.Nothing,+ headers = Core.Nothing,+ httpMethod = Core.Nothing,+ oauthToken = Core.Nothing,+ oidcToken = Core.Nothing,+ uri = Core.Nothing+ }++instance Core.FromJSON HttpTarget where+ parseJSON =+ Core.withObject+ "HttpTarget"+ ( \o ->+ HttpTarget+ Core.<$> (o Core..:? "body")+ Core.<*> (o Core..:? "headers")+ Core.<*> (o Core..:? "httpMethod")+ Core.<*> (o Core..:? "oauthToken")+ Core.<*> (o Core..:? "oidcToken")+ Core.<*> (o Core..:? "uri")+ )++instance Core.ToJSON HttpTarget where+ toJSON HttpTarget {..} =+ Core.object+ ( Core.catMaybes+ [ ("body" Core..=) Core.<$> body,+ ("headers" Core..=) Core.<$> headers,+ ("httpMethod" Core..=) Core.<$> httpMethod,+ ("oauthToken" Core..=) Core.<$> oauthToken,+ ("oidcToken" Core..=) Core.<$> oidcToken,+ ("uri" Core..=) Core.<$> uri+ ]+ )++-- | HTTP request headers. This map contains the header field names and values. The user can specify HTTP request headers to send with the job\'s HTTP request. Repeated headers are not supported, but a header value can contain commas. The following headers represent a subset of the headers that accompany the job\'s HTTP request. Some HTTP request headers are ignored or replaced. A partial list of headers that are ignored or replaced is below: * Host: This will be computed by Cloud Scheduler and derived from uri. * @Content-Length@: This will be computed by Cloud Scheduler. * @User-Agent@: This will be set to @\"Google-Cloud-Scheduler\"@. * @X-Google-*@: Google internal use only. * @X-AppEngine-*@: Google internal use only. * @X-CloudScheduler@: This header will be set to true. * @X-CloudScheduler-JobName@: This header will contain the job name. * @X-CloudScheduler-ScheduleTime@: For Cloud Scheduler jobs specified in the unix-cron format, this header will contain the job schedule as an offset of UTC parsed+-- according to RFC3339. If the job has a body and the following headers are not set by the user, Cloud Scheduler sets default values: * @Content-Type@: This will be set to @\"application\/octet-stream\"@. You can override this default by explicitly setting @Content-Type@ to a particular media type when creating the job. For example, you can set @Content-Type@ to @\"application\/json\"@. The total size of headers must be less than 80KB.+--+-- /See:/ 'newHttpTarget_Headers' smart constructor.+newtype HttpTarget_Headers = HttpTarget_Headers+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HttpTarget_Headers' with the minimum fields required to make a request.+newHttpTarget_Headers ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ HttpTarget_Headers+newHttpTarget_Headers additional =+ HttpTarget_Headers {additional = additional}++instance Core.FromJSON HttpTarget_Headers where+ parseJSON =+ Core.withObject+ "HttpTarget_Headers"+ (\o -> HttpTarget_Headers Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON HttpTarget_Headers where+ toJSON HttpTarget_Headers {..} = Core.toJSON additional++-- | Configuration for a job. The maximum allowed size for a job is 1MB.+--+-- /See:/ 'newJob' smart constructor.+data Job = Job+ { -- | App Engine HTTP target.+ appEngineHttpTarget :: (Core.Maybe AppEngineHttpTarget),+ -- | The deadline for job attempts. If the request handler does not respond by this deadline then the request is cancelled and the attempt is marked as a @DEADLINE_EXCEEDED@ failure. The failed attempt can be viewed in execution logs. Cloud Scheduler will retry the job according to the RetryConfig. The default and the allowed values depend on the type of target: * For HTTP targets, the default is 3 minutes. The deadline must be in the interval [15 seconds, 30 minutes]. * For App Engine HTTP targets, 0 indicates that the request has the default deadline. The default deadline depends on the scaling type of the service: 10 minutes for standard apps with automatic scaling, 24 hours for standard apps with manual and basic scaling, and 60 minutes for flex apps. If the request deadline is set, it must be in the interval [15 seconds, 24 hours 15 seconds]. * For Pub\/Sub targets, this field is ignored.+ attemptDeadline :: (Core.Maybe Core.Duration),+ -- | Optionally caller-specified in CreateJob or UpdateJob. A human-readable description for the job. This string must not contain more than 500 characters.+ description :: (Core.Maybe Core.Text),+ -- | HTTP target.+ httpTarget :: (Core.Maybe HttpTarget),+ -- | Output only. The time the last job attempt started.+ lastAttemptTime :: (Core.Maybe Core.DateTime),+ -- | Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. * @PROJECT_ID@ can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see <https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects Identifying projects> * @LOCATION_ID@ is the canonical ID for the job\'s location. The list of available locations can be obtained by calling ListLocations. For more information, see https:\/\/cloud.google.com\/about\/locations\/. * @JOB_ID@ can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.+ name :: (Core.Maybe Core.Text),+ -- | Pub\/Sub target.+ pubsubTarget :: (Core.Maybe PubsubTarget),+ -- | Settings that determine the retry behavior.+ retryConfig :: (Core.Maybe RetryConfig),+ -- | Required, except when used with UpdateJob. Describes the schedule on which the job will be executed. The schedule can be either of the following types: * <https://en.wikipedia.org/wiki/Cron#Overview Crontab> * English-like <https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules schedule> As a general rule, execution @n + 1@ of a job will not begin until execution @n@ has finished. Cloud Scheduler will never allow two simultaneously outstanding executions. For example, this implies that if the @n+1@th execution is scheduled to run at 16:00 but the @n@th execution takes until 16:15, the @n+1@th execution will not start until @16:15@. A scheduled start time will be delayed if the previous execution has not ended when its scheduled time occurs. If retry/count > 0 and a job attempt fails, the job will be tried a total of retry/count times, with exponential backoff, until the next scheduled start time. If retry/count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler+ -- system will wait for the next scheduled execution time. Setting retry/count to 0 does not prevent failed jobs from running according to schedule after the failure.+ schedule :: (Core.Maybe Core.Text),+ -- | Output only. The next time the job is scheduled. Note that this may be a retry of a previously failed attempt or the next execution time according to the schedule.+ scheduleTime :: (Core.Maybe Core.DateTime),+ -- | Output only. State of the job.+ state :: (Core.Maybe Job_State),+ -- | Output only. The response from the target for the last attempted execution.+ status :: (Core.Maybe Status),+ -- | Specifies the time zone to be used in interpreting schedule. The value of this field must be a time zone name from the <http://en.wikipedia.org/wiki/Tz_database tz database>. Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string \"utc\". If a time zone is not specified, the default will be in UTC (also known as GMT).+ timeZone :: (Core.Maybe Core.Text),+ -- | Output only. The creation time of the job.+ userUpdateTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Job' with the minimum fields required to make a request.+newJob ::+ Job+newJob =+ Job+ { appEngineHttpTarget = Core.Nothing,+ attemptDeadline = Core.Nothing,+ description = Core.Nothing,+ httpTarget = Core.Nothing,+ lastAttemptTime = Core.Nothing,+ name = Core.Nothing,+ pubsubTarget = Core.Nothing,+ retryConfig = Core.Nothing,+ schedule = Core.Nothing,+ scheduleTime = Core.Nothing,+ state = Core.Nothing,+ status = Core.Nothing,+ timeZone = Core.Nothing,+ userUpdateTime = Core.Nothing+ }++instance Core.FromJSON Job where+ parseJSON =+ Core.withObject+ "Job"+ ( \o ->+ Job+ Core.<$> (o Core..:? "appEngineHttpTarget")+ Core.<*> (o Core..:? "attemptDeadline")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "httpTarget")+ Core.<*> (o Core..:? "lastAttemptTime")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "pubsubTarget")+ Core.<*> (o Core..:? "retryConfig")+ Core.<*> (o Core..:? "schedule")+ Core.<*> (o Core..:? "scheduleTime")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "status")+ Core.<*> (o Core..:? "timeZone")+ Core.<*> (o Core..:? "userUpdateTime")+ )++instance Core.ToJSON Job where+ toJSON Job {..} =+ Core.object+ ( Core.catMaybes+ [ ("appEngineHttpTarget" Core..=) Core.<$> appEngineHttpTarget,+ ("attemptDeadline" Core..=) Core.<$> attemptDeadline,+ ("description" Core..=) Core.<$> description,+ ("httpTarget" Core..=) Core.<$> httpTarget,+ ("lastAttemptTime" Core..=) Core.<$> lastAttemptTime,+ ("name" Core..=) Core.<$> name,+ ("pubsubTarget" Core..=) Core.<$> pubsubTarget,+ ("retryConfig" Core..=) Core.<$> retryConfig,+ ("schedule" Core..=) Core.<$> schedule,+ ("scheduleTime" Core..=) Core.<$> scheduleTime,+ ("state" Core..=) Core.<$> state,+ ("status" Core..=) Core.<$> status,+ ("timeZone" Core..=) Core.<$> timeZone,+ ("userUpdateTime" Core..=) Core.<$> userUpdateTime+ ]+ )++-- | Response message for listing jobs using ListJobs.+--+-- /See:/ 'newListJobsResponse' smart constructor.+data ListJobsResponse = ListJobsResponse+ { -- | The list of jobs.+ jobs :: (Core.Maybe [Job]),+ -- | A token to retrieve next page of results. Pass this value in the page_token field in the subsequent call to ListJobs to retrieve the next page of results. If this is empty it indicates that there are no more results through which to paginate. The page token is valid for only 2 hours.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListJobsResponse' with the minimum fields required to make a request.+newListJobsResponse ::+ ListJobsResponse+newListJobsResponse =+ ListJobsResponse+ { jobs = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListJobsResponse where+ parseJSON =+ Core.withObject+ "ListJobsResponse"+ ( \o ->+ ListJobsResponse+ Core.<$> (o Core..:? "jobs")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListJobsResponse where+ toJSON ListJobsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("jobs" Core..=) Core.<$> jobs,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | 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+ ]+ )++-- | 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++-- | Contains information needed for generating an <https://developers.google.com/identity/protocols/OAuth2 OAuth token>. This type of authorization should generally only be used when calling Google APIs hosted on *.googleapis.com.+--+-- /See:/ 'newOAuthToken' smart constructor.+data OAuthToken = OAuthToken+ { -- | OAuth scope to be used for generating OAuth access token. If not specified, \"https:\/\/www.googleapis.com\/auth\/cloud-platform\" will be used.+ scope :: (Core.Maybe Core.Text),+ -- | <https://cloud.google.com/iam/docs/service-accounts Service account email> to be used for generating OAuth token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.+ serviceAccountEmail :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OAuthToken' with the minimum fields required to make a request.+newOAuthToken ::+ OAuthToken+newOAuthToken =+ OAuthToken+ { scope = Core.Nothing,+ serviceAccountEmail = Core.Nothing+ }++instance Core.FromJSON OAuthToken where+ parseJSON =+ Core.withObject+ "OAuthToken"+ ( \o ->+ OAuthToken+ Core.<$> (o Core..:? "scope")+ Core.<*> (o Core..:? "serviceAccountEmail")+ )++instance Core.ToJSON OAuthToken where+ toJSON OAuthToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("scope" Core..=) Core.<$> scope,+ ("serviceAccountEmail" Core..=) Core.<$> serviceAccountEmail+ ]+ )++-- | Contains information needed for generating an <https://developers.google.com/identity/protocols/OpenIDConnect OpenID Connect token>. This type of authorization can be used for many scenarios, including calling Cloud Run, or endpoints where you intend to validate the token yourself.+--+-- /See:/ 'newOidcToken' smart constructor.+data OidcToken = OidcToken+ { -- | Audience to be used when generating OIDC token. If not specified, the URI specified in target will be used.+ audience :: (Core.Maybe Core.Text),+ -- | <https://cloud.google.com/iam/docs/service-accounts Service account email> to be used for generating OIDC token. The service account must be within the same project as the job. The caller must have iam.serviceAccounts.actAs permission for the service account.+ serviceAccountEmail :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OidcToken' with the minimum fields required to make a request.+newOidcToken ::+ OidcToken+newOidcToken =+ OidcToken+ { audience = Core.Nothing,+ serviceAccountEmail = Core.Nothing+ }++instance Core.FromJSON OidcToken where+ parseJSON =+ Core.withObject+ "OidcToken"+ ( \o ->+ OidcToken+ Core.<$> (o Core..:? "audience")+ Core.<*> (o Core..:? "serviceAccountEmail")+ )++instance Core.ToJSON OidcToken where+ toJSON OidcToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("audience" Core..=) Core.<$> audience,+ ("serviceAccountEmail" Core..=) Core.<$> serviceAccountEmail+ ]+ )++-- | 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++-- | Represents the metadata of the long-running operation.+--+-- /See:/ 'newOperationMetadata' smart constructor.+data OperationMetadata = OperationMetadata+ { -- | Output only. API version used to start the operation.+ apiVersion :: (Core.Maybe Core.Text),+ -- | Output only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have google.longrunning.Operation.error value with a google.rpc.Status.code of @1@, corresponding to @Code.CANCELLED@.+ cancelRequested :: (Core.Maybe Core.Bool),+ -- | Output only. The time the operation was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. The time the operation finished running.+ endTime :: (Core.Maybe Core.DateTime),+ -- | Output only. Human-readable status of the operation, if any.+ statusDetail :: (Core.Maybe Core.Text),+ -- | Output only. Server-defined resource path for the target of the operation.+ target :: (Core.Maybe Core.Text),+ -- | Output only. Name of the verb executed by the operation.+ verb :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OperationMetadata' with the minimum fields required to make a request.+newOperationMetadata ::+ OperationMetadata+newOperationMetadata =+ OperationMetadata+ { apiVersion = Core.Nothing,+ cancelRequested = Core.Nothing,+ createTime = Core.Nothing,+ endTime = Core.Nothing,+ statusDetail = Core.Nothing,+ target = Core.Nothing,+ verb = Core.Nothing+ }++instance Core.FromJSON OperationMetadata where+ parseJSON =+ Core.withObject+ "OperationMetadata"+ ( \o ->+ OperationMetadata+ Core.<$> (o Core..:? "apiVersion")+ Core.<*> (o Core..:? "cancelRequested")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "endTime")+ Core.<*> (o Core..:? "statusDetail")+ Core.<*> (o Core..:? "target")+ Core.<*> (o Core..:? "verb")+ )++instance Core.ToJSON OperationMetadata where+ toJSON OperationMetadata {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiVersion" Core..=) Core.<$> apiVersion,+ ("cancelRequested" Core..=) Core.<$> cancelRequested,+ ("createTime" Core..=) Core.<$> createTime,+ ("endTime" Core..=) Core.<$> endTime,+ ("statusDetail" Core..=) Core.<$> statusDetail,+ ("target" Core..=) Core.<$> target,+ ("verb" Core..=) Core.<$> verb+ ]+ )++-- | Request message for PauseJob.+--+-- /See:/ 'newPauseJobRequest' smart constructor.+data PauseJobRequest = PauseJobRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PauseJobRequest' with the minimum fields required to make a request.+newPauseJobRequest ::+ PauseJobRequest+newPauseJobRequest = PauseJobRequest++instance Core.FromJSON PauseJobRequest where+ parseJSON =+ Core.withObject+ "PauseJobRequest"+ (\o -> Core.pure PauseJobRequest)++instance Core.ToJSON PauseJobRequest where+ toJSON = Core.const Core.emptyObject++-- | A message that is published by publishers and consumed by subscribers. The message must contain either a non-empty data field or at least one attribute. Note that client libraries represent this object differently depending on the language. See the corresponding <https://cloud.google.com/pubsub/docs/reference/libraries client library documentation> for more information. See [quotas and limits] (https:\/\/cloud.google.com\/pubsub\/quotas) for more information about message limits.+--+-- /See:/ 'newPubsubMessage' smart constructor.+data PubsubMessage = PubsubMessage+ { -- | Optional. Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.+ attributes :: (Core.Maybe PubsubMessage_Attributes),+ -- | Optional. The message data field. If this field is empty, the message must contain at least one attribute.+ data' :: (Core.Maybe Core.Base64),+ -- | ID of this message, assigned by the server when the message is published. Guaranteed to be unique within the topic. This value may be read by a subscriber that receives a @PubsubMessage@ via a @Pull@ call or a push delivery. It must not be populated by the publisher in a @Publish@ call.+ messageId :: (Core.Maybe Core.Text),+ -- | Optional. If non-empty, identifies related messages for which publish order should be respected. If a @Subscription@ has @enable_message_ordering@ set to @true@, messages published with the same non-empty @ordering_key@ value will be delivered to subscribers in the order in which they are received by the Pub\/Sub system. All @PubsubMessage@s published in a given @PublishRequest@ must specify the same @ordering_key@ value. For more information, see <https://cloud.google.com/pubsub/docs/ordering ordering messages>.+ orderingKey :: (Core.Maybe Core.Text),+ -- | The time at which the message was published, populated by the server when it receives the @Publish@ call. It must not be populated by the publisher in a @Publish@ call.+ publishTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PubsubMessage' with the minimum fields required to make a request.+newPubsubMessage ::+ PubsubMessage+newPubsubMessage =+ PubsubMessage+ { attributes = Core.Nothing,+ data' = Core.Nothing,+ messageId = Core.Nothing,+ orderingKey = Core.Nothing,+ publishTime = Core.Nothing+ }++instance Core.FromJSON PubsubMessage where+ parseJSON =+ Core.withObject+ "PubsubMessage"+ ( \o ->+ PubsubMessage+ Core.<$> (o Core..:? "attributes")+ Core.<*> (o Core..:? "data")+ Core.<*> (o Core..:? "messageId")+ Core.<*> (o Core..:? "orderingKey")+ Core.<*> (o Core..:? "publishTime")+ )++instance Core.ToJSON PubsubMessage where+ toJSON PubsubMessage {..} =+ Core.object+ ( Core.catMaybes+ [ ("attributes" Core..=) Core.<$> attributes,+ ("data" Core..=) Core.<$> data',+ ("messageId" Core..=) Core.<$> messageId,+ ("orderingKey" Core..=) Core.<$> orderingKey,+ ("publishTime" Core..=) Core.<$> publishTime+ ]+ )++-- | Optional. Attributes for this message. If this field is empty, the message must contain non-empty data. This can be used to filter messages on the subscription.+--+-- /See:/ 'newPubsubMessage_Attributes' smart constructor.+newtype PubsubMessage_Attributes = PubsubMessage_Attributes+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PubsubMessage_Attributes' with the minimum fields required to make a request.+newPubsubMessage_Attributes ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ PubsubMessage_Attributes+newPubsubMessage_Attributes additional =+ PubsubMessage_Attributes {additional = additional}++instance Core.FromJSON PubsubMessage_Attributes where+ parseJSON =+ Core.withObject+ "PubsubMessage_Attributes"+ (\o -> PubsubMessage_Attributes Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON PubsubMessage_Attributes where+ toJSON PubsubMessage_Attributes {..} = Core.toJSON additional++-- | Pub\/Sub target. The job will be delivered by publishing a message to the given Pub\/Sub topic.+--+-- /See:/ 'newPubsubTarget' smart constructor.+data PubsubTarget = PubsubTarget+ { -- | Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.+ attributes :: (Core.Maybe PubsubTarget_Attributes),+ -- | The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.+ data' :: (Core.Maybe Core.Base64),+ -- | Required. The name of the Cloud Pub\/Sub topic to which messages will be published when a job is delivered. The topic name must be in the same format as required by Pub\/Sub\'s <https://cloud.google.com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest PublishRequest.name>, for example @projects\/PROJECT_ID\/topics\/TOPIC_ID@. The topic must be in the same project as the Cloud Scheduler job.+ topicName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PubsubTarget' with the minimum fields required to make a request.+newPubsubTarget ::+ PubsubTarget+newPubsubTarget =+ PubsubTarget+ { attributes = Core.Nothing,+ data' = Core.Nothing,+ topicName = Core.Nothing+ }++instance Core.FromJSON PubsubTarget where+ parseJSON =+ Core.withObject+ "PubsubTarget"+ ( \o ->+ PubsubTarget+ Core.<$> (o Core..:? "attributes")+ Core.<*> (o Core..:? "data")+ Core.<*> (o Core..:? "topicName")+ )++instance Core.ToJSON PubsubTarget where+ toJSON PubsubTarget {..} =+ Core.object+ ( Core.catMaybes+ [ ("attributes" Core..=) Core.<$> attributes,+ ("data" Core..=) Core.<$> data',+ ("topicName" Core..=) Core.<$> topicName+ ]+ )++-- | Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute.+--+-- /See:/ 'newPubsubTarget_Attributes' smart constructor.+newtype PubsubTarget_Attributes = PubsubTarget_Attributes+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PubsubTarget_Attributes' with the minimum fields required to make a request.+newPubsubTarget_Attributes ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ PubsubTarget_Attributes+newPubsubTarget_Attributes additional =+ PubsubTarget_Attributes {additional = additional}++instance Core.FromJSON PubsubTarget_Attributes where+ parseJSON =+ Core.withObject+ "PubsubTarget_Attributes"+ (\o -> PubsubTarget_Attributes Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON PubsubTarget_Attributes where+ toJSON PubsubTarget_Attributes {..} = Core.toJSON additional++-- | Request message for ResumeJob.+--+-- /See:/ 'newResumeJobRequest' smart constructor.+data ResumeJobRequest = ResumeJobRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ResumeJobRequest' with the minimum fields required to make a request.+newResumeJobRequest ::+ ResumeJobRequest+newResumeJobRequest = ResumeJobRequest++instance Core.FromJSON ResumeJobRequest where+ parseJSON =+ Core.withObject+ "ResumeJobRequest"+ (\o -> Core.pure ResumeJobRequest)++instance Core.ToJSON ResumeJobRequest where+ toJSON = Core.const Core.emptyObject++-- | Settings that determine the retry behavior. By default, if a job does not complete successfully (meaning that an acknowledgement is not received from the handler, then it will be retried with exponential backoff according to the settings in RetryConfig.+--+-- /See:/ 'newRetryConfig' smart constructor.+data RetryConfig = RetryConfig+ { -- | The maximum amount of time to wait before retrying a job after it fails. The default value of this field is 1 hour.+ maxBackoffDuration :: (Core.Maybe Core.Duration),+ -- | The time between retries will double @max_doublings@ times. A job\'s retry interval starts at min/backoff/duration, then doubles @max_doublings@ times, then increases linearly, and finally retries at intervals of max/backoff/duration up to retry/count times. For example, if min/backoff/duration is 10s, max/backoff/duration is 300s, and @max_doublings@ is 3, then the job will first be retried in 10s. The retry interval will double three times, and then increase linearly by 2^3 * 10s. Finally, the job will retry at intervals of max/backoff/duration until the job has been attempted retry/count times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, .... The default value of this field is 5.+ maxDoublings :: (Core.Maybe Core.Int32),+ -- | The time limit for retrying a failed job, measured from time when an execution was first attempted. If specified with retry/count, the job will be retried until both limits are reached. The default value for max/retry_duration is zero, which means retry duration is unlimited.+ maxRetryDuration :: (Core.Maybe Core.Duration),+ -- | The minimum amount of time to wait before retrying a job after it fails. The default value of this field is 5 seconds.+ minBackoffDuration :: (Core.Maybe Core.Duration),+ -- | The number of attempts that the system will make to run a job using the exponential backoff procedure described by max/doublings. The default value of retry/count is zero. If retry/count is 0, a job attempt will not be retried if it fails. Instead the Cloud Scheduler system will wait for the next scheduled execution time. Setting retry/count to 0 does not prevent failed jobs from running according to schedule after the failure. If retry/count is set to a non-zero number then Cloud Scheduler will retry failed attempts, using exponential backoff, retry/count times, or until the next scheduled execution time, whichever comes first. Values greater than 5 and negative values are not allowed.+ retryCount :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RetryConfig' with the minimum fields required to make a request.+newRetryConfig ::+ RetryConfig+newRetryConfig =+ RetryConfig+ { maxBackoffDuration = Core.Nothing,+ maxDoublings = Core.Nothing,+ maxRetryDuration = Core.Nothing,+ minBackoffDuration = Core.Nothing,+ retryCount = Core.Nothing+ }++instance Core.FromJSON RetryConfig where+ parseJSON =+ Core.withObject+ "RetryConfig"+ ( \o ->+ RetryConfig+ Core.<$> (o Core..:? "maxBackoffDuration")+ Core.<*> (o Core..:? "maxDoublings")+ Core.<*> (o Core..:? "maxRetryDuration")+ Core.<*> (o Core..:? "minBackoffDuration")+ Core.<*> (o Core..:? "retryCount")+ )++instance Core.ToJSON RetryConfig where+ toJSON RetryConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("maxBackoffDuration" Core..=) Core.<$> maxBackoffDuration,+ ("maxDoublings" Core..=) Core.<$> maxDoublings,+ ("maxRetryDuration" Core..=) Core.<$> maxRetryDuration,+ ("minBackoffDuration" Core..=) Core.<$> minBackoffDuration,+ ("retryCount" Core..=) Core.<$> retryCount+ ]+ )++-- | Request message for forcing a job to run now using RunJob.+--+-- /See:/ 'newRunJobRequest' smart constructor.+data RunJobRequest = RunJobRequest+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RunJobRequest' with the minimum fields required to make a request.+newRunJobRequest ::+ RunJobRequest+newRunJobRequest = RunJobRequest++instance Core.FromJSON RunJobRequest where+ parseJSON =+ Core.withObject "RunJobRequest" (\o -> Core.pure RunJobRequest)++instance Core.ToJSON RunJobRequest where+ toJSON = Core.const Core.emptyObject++-- | 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
+ gen/Gogol/CloudScheduler/Internal/Sum.hs view
@@ -0,0 +1,255 @@+{-# 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.CloudScheduler.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.CloudScheduler.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * AppEngineHttpTarget_HttpMethod+ AppEngineHttpTarget_HttpMethod+ ( AppEngineHttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED,+ AppEngineHttpTarget_HttpMethod_Post',+ AppEngineHttpTarget_HttpMethod_Get',+ AppEngineHttpTarget_HttpMethod_Head',+ AppEngineHttpTarget_HttpMethod_Put',+ AppEngineHttpTarget_HttpMethod_Delete',+ AppEngineHttpTarget_HttpMethod_Patch',+ AppEngineHttpTarget_HttpMethod_Options,+ ..+ ),++ -- * HttpTarget_HttpMethod+ HttpTarget_HttpMethod+ ( HttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED,+ HttpTarget_HttpMethod_Post',+ HttpTarget_HttpMethod_Get',+ HttpTarget_HttpMethod_Head',+ HttpTarget_HttpMethod_Put',+ HttpTarget_HttpMethod_Delete',+ HttpTarget_HttpMethod_Patch',+ HttpTarget_HttpMethod_Options,+ ..+ ),++ -- * Job_State+ Job_State+ ( Job_State_STATEUNSPECIFIED,+ Job_State_Enabled,+ Job_State_Paused,+ Job_State_Disabled,+ Job_State_UPDATEFAILED,+ ..+ ),+ )+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 HTTP method to use for the request. PATCH and OPTIONS are not permitted.+newtype AppEngineHttpTarget_HttpMethod = AppEngineHttpTarget_HttpMethod {fromAppEngineHttpTarget_HttpMethod :: 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+ )++-- | HTTP method unspecified. Defaults to POST.+pattern AppEngineHttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED = AppEngineHttpTarget_HttpMethod "HTTP_METHOD_UNSPECIFIED"++-- | HTTP POST+pattern AppEngineHttpTarget_HttpMethod_Post' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Post' = AppEngineHttpTarget_HttpMethod "POST"++-- | HTTP GET+pattern AppEngineHttpTarget_HttpMethod_Get' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Get' = AppEngineHttpTarget_HttpMethod "GET"++-- | HTTP HEAD+pattern AppEngineHttpTarget_HttpMethod_Head' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Head' = AppEngineHttpTarget_HttpMethod "HEAD"++-- | HTTP PUT+pattern AppEngineHttpTarget_HttpMethod_Put' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Put' = AppEngineHttpTarget_HttpMethod "PUT"++-- | HTTP DELETE+pattern AppEngineHttpTarget_HttpMethod_Delete' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Delete' = AppEngineHttpTarget_HttpMethod "DELETE"++-- | HTTP PATCH+pattern AppEngineHttpTarget_HttpMethod_Patch' :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Patch' = AppEngineHttpTarget_HttpMethod "PATCH"++-- | HTTP OPTIONS+pattern AppEngineHttpTarget_HttpMethod_Options :: AppEngineHttpTarget_HttpMethod+pattern AppEngineHttpTarget_HttpMethod_Options = AppEngineHttpTarget_HttpMethod "OPTIONS"++{-# COMPLETE+ AppEngineHttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED,+ AppEngineHttpTarget_HttpMethod_Post',+ AppEngineHttpTarget_HttpMethod_Get',+ AppEngineHttpTarget_HttpMethod_Head',+ AppEngineHttpTarget_HttpMethod_Put',+ AppEngineHttpTarget_HttpMethod_Delete',+ AppEngineHttpTarget_HttpMethod_Patch',+ AppEngineHttpTarget_HttpMethod_Options,+ AppEngineHttpTarget_HttpMethod+ #-}++-- | Which HTTP method to use for the request.+newtype HttpTarget_HttpMethod = HttpTarget_HttpMethod {fromHttpTarget_HttpMethod :: 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+ )++-- | HTTP method unspecified. Defaults to POST.+pattern HttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED = HttpTarget_HttpMethod "HTTP_METHOD_UNSPECIFIED"++-- | HTTP POST+pattern HttpTarget_HttpMethod_Post' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Post' = HttpTarget_HttpMethod "POST"++-- | HTTP GET+pattern HttpTarget_HttpMethod_Get' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Get' = HttpTarget_HttpMethod "GET"++-- | HTTP HEAD+pattern HttpTarget_HttpMethod_Head' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Head' = HttpTarget_HttpMethod "HEAD"++-- | HTTP PUT+pattern HttpTarget_HttpMethod_Put' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Put' = HttpTarget_HttpMethod "PUT"++-- | HTTP DELETE+pattern HttpTarget_HttpMethod_Delete' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Delete' = HttpTarget_HttpMethod "DELETE"++-- | HTTP PATCH+pattern HttpTarget_HttpMethod_Patch' :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Patch' = HttpTarget_HttpMethod "PATCH"++-- | HTTP OPTIONS+pattern HttpTarget_HttpMethod_Options :: HttpTarget_HttpMethod+pattern HttpTarget_HttpMethod_Options = HttpTarget_HttpMethod "OPTIONS"++{-# COMPLETE+ HttpTarget_HttpMethod_HTTPMETHODUNSPECIFIED,+ HttpTarget_HttpMethod_Post',+ HttpTarget_HttpMethod_Get',+ HttpTarget_HttpMethod_Head',+ HttpTarget_HttpMethod_Put',+ HttpTarget_HttpMethod_Delete',+ HttpTarget_HttpMethod_Patch',+ HttpTarget_HttpMethod_Options,+ HttpTarget_HttpMethod+ #-}++-- | Output only. State of the job.+newtype Job_State = Job_State {fromJob_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+ )++-- | Unspecified state.+pattern Job_State_STATEUNSPECIFIED :: Job_State+pattern Job_State_STATEUNSPECIFIED = Job_State "STATE_UNSPECIFIED"++-- | The job is executing normally.+pattern Job_State_Enabled :: Job_State+pattern Job_State_Enabled = Job_State "ENABLED"++-- | The job is paused by the user. It will not execute. A user can intentionally pause the job using PauseJobRequest.+pattern Job_State_Paused :: Job_State+pattern Job_State_Paused = Job_State "PAUSED"++-- | The job is disabled by the system due to error. The user cannot directly set a job to be disabled.+pattern Job_State_Disabled :: Job_State+pattern Job_State_Disabled = Job_State "DISABLED"++-- | The job state resulting from a failed CloudScheduler.UpdateJob operation. To recover a job from this state, retry CloudScheduler.UpdateJob until a successful response is received.+pattern Job_State_UPDATEFAILED :: Job_State+pattern Job_State_UPDATEFAILED = Job_State "UPDATE_FAILED"++{-# COMPLETE+ Job_State_STATEUNSPECIFIED,+ Job_State_Enabled,+ Job_State_Paused,+ Job_State_Disabled,+ Job_State_UPDATEFAILED,+ Job_State+ #-}
+ gen/Gogol/CloudScheduler/Operations/Cancel.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Operations.Cancel+-- 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)+--+-- Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of @1@, corresponding to @Code.CANCELLED@.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.operations.cancel@.+module Gogol.CloudScheduler.Operations.Cancel+ ( -- * Resource+ CloudSchedulerOperationsCancelResource,++ -- ** Constructing a Request+ CloudSchedulerOperationsCancel (..),+ newCloudSchedulerOperationsCancel,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.operations.cancel@ method which the+-- 'CloudSchedulerOperationsCancel' request conforms to.+type CloudSchedulerOperationsCancelResource =+ "v1"+ Core.:> Core.CaptureMode "name" "cancel" 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] CancelOperationRequest+ Core.:> Core.Post '[Core.JSON] Empty++-- | Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of @1@, corresponding to @Code.CANCELLED@.+--+-- /See:/ 'newCloudSchedulerOperationsCancel' smart constructor.+data CloudSchedulerOperationsCancel = CloudSchedulerOperationsCancel+ { -- | 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 to be cancelled.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: CancelOperationRequest,+ -- | 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 'CloudSchedulerOperationsCancel' with the minimum fields required to make a request.+newCloudSchedulerOperationsCancel ::+ -- | The name of the operation resource to be cancelled. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ CancelOperationRequest ->+ CloudSchedulerOperationsCancel+newCloudSchedulerOperationsCancel name payload =+ CloudSchedulerOperationsCancel+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerOperationsCancel where+ type Rs CloudSchedulerOperationsCancel = Empty+ type Scopes CloudSchedulerOperationsCancel = '[]+ requestClient CloudSchedulerOperationsCancel {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudSchedulerOperationsCancelResource)+ Core.mempty
+ gen/Gogol/CloudScheduler/Operations/Delete.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Operations.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 long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.operations.delete@.+module Gogol.CloudScheduler.Operations.Delete+ ( -- * Resource+ CloudSchedulerOperationsDeleteResource,++ -- ** Constructing a Request+ CloudSchedulerOperationsDelete (..),+ newCloudSchedulerOperationsDelete,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.operations.delete@ method which the+-- 'CloudSchedulerOperationsDelete' request conforms to.+type CloudSchedulerOperationsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn\'t support this method, it returns @google.rpc.Code.UNIMPLEMENTED@.+--+-- /See:/ 'newCloudSchedulerOperationsDelete' smart constructor.+data CloudSchedulerOperationsDelete = CloudSchedulerOperationsDelete+ { -- | 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 to 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 'CloudSchedulerOperationsDelete' with the minimum fields required to make a request.+newCloudSchedulerOperationsDelete ::+ -- | The name of the operation resource to be deleted. See 'name'.+ Core.Text ->+ CloudSchedulerOperationsDelete+newCloudSchedulerOperationsDelete name =+ CloudSchedulerOperationsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerOperationsDelete where+ type Rs CloudSchedulerOperationsDelete = Empty+ type Scopes CloudSchedulerOperationsDelete = '[]+ requestClient CloudSchedulerOperationsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudSchedulerOperationsDeleteResource)+ Core.mempty
+ gen/Gogol/CloudScheduler/Operations/Get.hs view
@@ -0,0 +1,107 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.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/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.operations.get@.+module Gogol.CloudScheduler.Operations.Get+ ( -- * Resource+ CloudSchedulerOperationsGetResource,++ -- ** Constructing a Request+ CloudSchedulerOperationsGet (..),+ newCloudSchedulerOperationsGet,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.operations.get@ method which the+-- 'CloudSchedulerOperationsGet' request conforms to.+type CloudSchedulerOperationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Operation++-- | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ 'newCloudSchedulerOperationsGet' smart constructor.+data CloudSchedulerOperationsGet = CloudSchedulerOperationsGet+ { -- | 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 'CloudSchedulerOperationsGet' with the minimum fields required to make a request.+newCloudSchedulerOperationsGet ::+ -- | The name of the operation resource. See 'name'.+ Core.Text ->+ CloudSchedulerOperationsGet+newCloudSchedulerOperationsGet name =+ CloudSchedulerOperationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerOperationsGet where+ type Rs CloudSchedulerOperationsGet = Operation+ type Scopes CloudSchedulerOperationsGet = '[]+ requestClient CloudSchedulerOperationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudSchedulerOperationsGetResource)+ Core.mempty
+ gen/Gogol/CloudScheduler/Operations/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.CloudScheduler.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/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.operations.list@.+module Gogol.CloudScheduler.Operations.List+ ( -- * Resource+ CloudSchedulerOperationsListResource,++ -- ** Constructing a Request+ CloudSchedulerOperationsList (..),+ newCloudSchedulerOperationsList,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.operations.list@ method which the+-- 'CloudSchedulerOperationsList' request conforms to.+type CloudSchedulerOperationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "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:/ 'newCloudSchedulerOperationsList' smart constructor.+data CloudSchedulerOperationsList = CloudSchedulerOperationsList+ { -- | 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 'CloudSchedulerOperationsList' with the minimum fields required to make a request.+newCloudSchedulerOperationsList ::+ -- | The name of the operation\'s parent resource. See 'name'.+ Core.Text ->+ CloudSchedulerOperationsList+newCloudSchedulerOperationsList name =+ CloudSchedulerOperationsList+ { 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 CloudSchedulerOperationsList where+ type Rs CloudSchedulerOperationsList = ListOperationsResponse+ type Scopes CloudSchedulerOperationsList = '[]+ requestClient CloudSchedulerOperationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy CloudSchedulerOperationsListResource)+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Get.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets information about a location.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.get@.+module Gogol.CloudScheduler.Projects.Locations.Get+ ( -- * Resource+ CloudSchedulerProjectsLocationsGetResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsGet (..),+ newCloudSchedulerProjectsLocationsGet,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.get@ method which the+-- 'CloudSchedulerProjectsLocationsGet' request conforms to.+type CloudSchedulerProjectsLocationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Location++-- | Gets information about a location.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsGet' smart constructor.+data CloudSchedulerProjectsLocationsGet = CloudSchedulerProjectsLocationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Resource name for the location.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudSchedulerProjectsLocationsGet' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsGet ::+ -- | Resource name for the location. See 'name'.+ Core.Text ->+ CloudSchedulerProjectsLocationsGet+newCloudSchedulerProjectsLocationsGet name =+ CloudSchedulerProjectsLocationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerProjectsLocationsGet where+ type Rs CloudSchedulerProjectsLocationsGet = Location+ type+ Scopes CloudSchedulerProjectsLocationsGet =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/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.CloudScheduler.Projects.Locations.Jobs.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 job.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.create@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Create+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsCreateResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsCreate (..),+ newCloudSchedulerProjectsLocationsJobsCreate,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.create@ method which the+-- 'CloudSchedulerProjectsLocationsJobsCreate' request conforms to.+type CloudSchedulerProjectsLocationsJobsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "jobs"+ 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] Job+ Core.:> Core.Post '[Core.JSON] Job++-- | Creates a job.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsCreate' smart constructor.+data CloudSchedulerProjectsLocationsJobsCreate = CloudSchedulerProjectsLocationsJobsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The location name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID@.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: Job,+ -- | 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 'CloudSchedulerProjectsLocationsJobsCreate' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsCreate ::+ -- | Required. The location name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID@. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Job ->+ CloudSchedulerProjectsLocationsJobsCreate+newCloudSchedulerProjectsLocationsJobsCreate parent payload =+ CloudSchedulerProjectsLocationsJobsCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudSchedulerProjectsLocationsJobsCreate+ where+ type Rs CloudSchedulerProjectsLocationsJobsCreate = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsCreate =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsCreateResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Delete.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Jobs.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 job.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.delete@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Delete+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsDeleteResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsDelete (..),+ newCloudSchedulerProjectsLocationsJobsDelete,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.delete@ method which the+-- 'CloudSchedulerProjectsLocationsJobsDelete' request conforms to.+type CloudSchedulerProjectsLocationsJobsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a job.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsDelete' smart constructor.+data CloudSchedulerProjectsLocationsJobsDelete = CloudSchedulerProjectsLocationsJobsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudSchedulerProjectsLocationsJobsDelete' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsDelete ::+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. See 'name'.+ Core.Text ->+ CloudSchedulerProjectsLocationsJobsDelete+newCloudSchedulerProjectsLocationsJobsDelete name =+ CloudSchedulerProjectsLocationsJobsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudSchedulerProjectsLocationsJobsDelete+ where+ type Rs CloudSchedulerProjectsLocationsJobsDelete = Empty+ type+ Scopes CloudSchedulerProjectsLocationsJobsDelete =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsDeleteResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Get.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Jobs.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 a job.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.get@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Get+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsGetResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsGet (..),+ newCloudSchedulerProjectsLocationsJobsGet,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.get@ method which the+-- 'CloudSchedulerProjectsLocationsJobsGet' request conforms to.+type CloudSchedulerProjectsLocationsJobsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Job++-- | Gets a job.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsGet' smart constructor.+data CloudSchedulerProjectsLocationsJobsGet = CloudSchedulerProjectsLocationsJobsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@.+ name :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CloudSchedulerProjectsLocationsJobsGet' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsGet ::+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. See 'name'.+ Core.Text ->+ CloudSchedulerProjectsLocationsJobsGet+newCloudSchedulerProjectsLocationsJobsGet name =+ CloudSchedulerProjectsLocationsJobsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerProjectsLocationsJobsGet where+ type Rs CloudSchedulerProjectsLocationsJobsGet = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsGet =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsGetResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/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.CloudScheduler.Projects.Locations.Jobs.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 jobs.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.list@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.List+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsListResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsList (..),+ newCloudSchedulerProjectsLocationsJobsList,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.list@ method which the+-- 'CloudSchedulerProjectsLocationsJobsList' request conforms to.+type CloudSchedulerProjectsLocationsJobsListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "jobs"+ 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] ListJobsResponse++-- | Lists jobs.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsList' smart constructor.+data CloudSchedulerProjectsLocationsJobsList = CloudSchedulerProjectsLocationsJobsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Requested page size. The maximum page size is 500. If unspecified, the page size will be the maximum. Fewer jobs than requested might be returned, even if more jobs exist; use next/page/token to determine if more jobs exist.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results the server will return. To request the first page results, page/token must be empty. To request the next page of results, page/token must be the value of next/page/token returned from the previous call to ListJobs.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The location name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_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 'CloudSchedulerProjectsLocationsJobsList' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsList ::+ -- | Required. The location name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID@. See 'parent'.+ Core.Text ->+ CloudSchedulerProjectsLocationsJobsList+newCloudSchedulerProjectsLocationsJobsList parent =+ CloudSchedulerProjectsLocationsJobsList+ { 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 CloudSchedulerProjectsLocationsJobsList where+ type Rs CloudSchedulerProjectsLocationsJobsList = ListJobsResponse+ type+ Scopes CloudSchedulerProjectsLocationsJobsList =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsListResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/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.CloudScheduler.Projects.Locations.Jobs.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 a job. If successful, the updated Job is returned. If the job does not exist, @NOT_FOUND@ is returned. If UpdateJob does not successfully return, it is possible for the job to be in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.patch@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Patch+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsPatchResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsPatch (..),+ newCloudSchedulerProjectsLocationsJobsPatch,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.patch@ method which the+-- 'CloudSchedulerProjectsLocationsJobsPatch' request conforms to.+type CloudSchedulerProjectsLocationsJobsPatchResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Job+ Core.:> Core.Patch '[Core.JSON] Job++-- | Updates a job. If successful, the updated Job is returned. If the job does not exist, @NOT_FOUND@ is returned. If UpdateJob does not successfully return, it is possible for the job to be in an Job.State.UPDATE_FAILED state. A job in this state may not be executed. If this happens, retry the UpdateJob request until a successful response is received.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsPatch' smart constructor.+data CloudSchedulerProjectsLocationsJobsPatch = CloudSchedulerProjectsLocationsJobsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. * @PROJECT_ID@ can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see <https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects Identifying projects> * @LOCATION_ID@ is the canonical ID for the job\'s location. The list of available locations can be obtained by calling ListLocations. For more information, see https:\/\/cloud.google.com\/about\/locations\/. * @JOB_ID@ can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Job,+ -- | A mask used to specify which fields of the job are being 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 'CloudSchedulerProjectsLocationsJobsPatch' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsPatch ::+ -- | Optionally caller-specified in CreateJob, after which it becomes output only. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. * @PROJECT_ID@ can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see <https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects Identifying projects> * @LOCATION_ID@ is the canonical ID for the job\'s location. The list of available locations can be obtained by calling ListLocations. For more information, see https:\/\/cloud.google.com\/about\/locations\/. * @JOB_ID@ can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Job ->+ CloudSchedulerProjectsLocationsJobsPatch+newCloudSchedulerProjectsLocationsJobsPatch name payload =+ CloudSchedulerProjectsLocationsJobsPatch+ { 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+ CloudSchedulerProjectsLocationsJobsPatch+ where+ type Rs CloudSchedulerProjectsLocationsJobsPatch = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsPatch =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsPatchResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Pause.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Jobs.Pause+-- 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)+--+-- Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via ResumeJob. The state of the job is stored in state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.pause@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Pause+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsPauseResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsPause (..),+ newCloudSchedulerProjectsLocationsJobsPause,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.pause@ method which the+-- 'CloudSchedulerProjectsLocationsJobsPause' request conforms to.+type CloudSchedulerProjectsLocationsJobsPauseResource =+ "v1"+ Core.:> Core.CaptureMode "name" "pause" 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] PauseJobRequest+ Core.:> Core.Post '[Core.JSON] Job++-- | Pauses a job. If a job is paused then the system will stop executing the job until it is re-enabled via ResumeJob. The state of the job is stored in state; if paused it will be set to Job.State.PAUSED. A job must be in Job.State.ENABLED to be paused.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsPause' smart constructor.+data CloudSchedulerProjectsLocationsJobsPause = CloudSchedulerProjectsLocationsJobsPause+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: PauseJobRequest,+ -- | 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 'CloudSchedulerProjectsLocationsJobsPause' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsPause ::+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ PauseJobRequest ->+ CloudSchedulerProjectsLocationsJobsPause+newCloudSchedulerProjectsLocationsJobsPause name payload =+ CloudSchedulerProjectsLocationsJobsPause+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudSchedulerProjectsLocationsJobsPause+ where+ type Rs CloudSchedulerProjectsLocationsJobsPause = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsPause =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsPause {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsPauseResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Resume.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Jobs.Resume+-- 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)+--+-- Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.resume@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Resume+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsResumeResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsResume (..),+ newCloudSchedulerProjectsLocationsJobsResume,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.resume@ method which the+-- 'CloudSchedulerProjectsLocationsJobsResume' request conforms to.+type CloudSchedulerProjectsLocationsJobsResumeResource =+ "v1"+ Core.:> Core.CaptureMode "name" "resume" 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] ResumeJobRequest+ Core.:> Core.Post '[Core.JSON] Job++-- | Resume a job. This method reenables a job after it has been Job.State.PAUSED. The state of a job is stored in Job.state; after calling this method it will be set to Job.State.ENABLED. A job must be in Job.State.PAUSED to be resumed.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsResume' smart constructor.+data CloudSchedulerProjectsLocationsJobsResume = CloudSchedulerProjectsLocationsJobsResume+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: ResumeJobRequest,+ -- | 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 'CloudSchedulerProjectsLocationsJobsResume' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsResume ::+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ResumeJobRequest ->+ CloudSchedulerProjectsLocationsJobsResume+newCloudSchedulerProjectsLocationsJobsResume name payload =+ CloudSchedulerProjectsLocationsJobsResume+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ CloudSchedulerProjectsLocationsJobsResume+ where+ type Rs CloudSchedulerProjectsLocationsJobsResume = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsResume =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsResume {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsResumeResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Projects/Locations/Jobs/Run.hs view
@@ -0,0 +1,118 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.CloudScheduler.Projects.Locations.Jobs.Run+-- 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)+--+-- Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.+--+-- /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.run@.+module Gogol.CloudScheduler.Projects.Locations.Jobs.Run+ ( -- * Resource+ CloudSchedulerProjectsLocationsJobsRunResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsJobsRun (..),+ newCloudSchedulerProjectsLocationsJobsRun,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.jobs.run@ method which the+-- 'CloudSchedulerProjectsLocationsJobsRun' request conforms to.+type CloudSchedulerProjectsLocationsJobsRunResource =+ "v1"+ Core.:> Core.CaptureMode "name" "run" 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] RunJobRequest+ Core.:> Core.Post '[Core.JSON] Job++-- | Forces a job to run now. When this method is called, Cloud Scheduler will dispatch the job, even if the job is already running.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsJobsRun' smart constructor.+data CloudSchedulerProjectsLocationsJobsRun = CloudSchedulerProjectsLocationsJobsRun+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: RunJobRequest,+ -- | 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 'CloudSchedulerProjectsLocationsJobsRun' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsJobsRun ::+ -- | Required. The job name. For example: @projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID@. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ RunJobRequest ->+ CloudSchedulerProjectsLocationsJobsRun+newCloudSchedulerProjectsLocationsJobsRun name payload =+ CloudSchedulerProjectsLocationsJobsRun+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest CloudSchedulerProjectsLocationsJobsRun where+ type Rs CloudSchedulerProjectsLocationsJobsRun = Job+ type+ Scopes CloudSchedulerProjectsLocationsJobsRun =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsJobsRun {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsJobsRunResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/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.CloudScheduler.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/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.list@.+module Gogol.CloudScheduler.Projects.Locations.List+ ( -- * Resource+ CloudSchedulerProjectsLocationsListResource,++ -- ** Constructing a Request+ CloudSchedulerProjectsLocationsList (..),+ newCloudSchedulerProjectsLocationsList,+ )+where++import Gogol.CloudScheduler.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @cloudscheduler.projects.locations.list@ method which the+-- 'CloudSchedulerProjectsLocationsList' request conforms to.+type CloudSchedulerProjectsLocationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> "locations"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListLocationsResponse++-- | Lists information about the supported locations for this service.+--+-- /See:/ 'newCloudSchedulerProjectsLocationsList' smart constructor.+data CloudSchedulerProjectsLocationsList = CloudSchedulerProjectsLocationsList+ { -- | 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 'CloudSchedulerProjectsLocationsList' with the minimum fields required to make a request.+newCloudSchedulerProjectsLocationsList ::+ -- | The resource that owns the locations collection, if applicable. See 'name'.+ Core.Text ->+ CloudSchedulerProjectsLocationsList+newCloudSchedulerProjectsLocationsList name =+ CloudSchedulerProjectsLocationsList+ { 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 CloudSchedulerProjectsLocationsList where+ type Rs CloudSchedulerProjectsLocationsList = ListLocationsResponse+ type+ Scopes CloudSchedulerProjectsLocationsList =+ '[CloudPlatform'FullControl]+ requestClient CloudSchedulerProjectsLocationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ cloudSchedulerService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy CloudSchedulerProjectsLocationsListResource+ )+ Core.mempty
+ gen/Gogol/CloudScheduler/Types.hs view
@@ -0,0 +1,182 @@+{-# 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.CloudScheduler.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.CloudScheduler.Types+ ( -- * Configuration+ cloudSchedulerService,++ -- * OAuth Scopes+ CloudPlatform'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AppEngineHttpTarget+ AppEngineHttpTarget (..),+ newAppEngineHttpTarget,++ -- ** AppEngineHttpTarget_Headers+ AppEngineHttpTarget_Headers (..),+ newAppEngineHttpTarget_Headers,++ -- ** AppEngineHttpTarget_HttpMethod+ AppEngineHttpTarget_HttpMethod (..),++ -- ** AppEngineRouting+ AppEngineRouting (..),+ newAppEngineRouting,++ -- ** CancelOperationRequest+ CancelOperationRequest (..),+ newCancelOperationRequest,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** HttpTarget+ HttpTarget (..),+ newHttpTarget,++ -- ** HttpTarget_Headers+ HttpTarget_Headers (..),+ newHttpTarget_Headers,++ -- ** HttpTarget_HttpMethod+ HttpTarget_HttpMethod (..),++ -- ** Job+ Job (..),+ newJob,++ -- ** Job_State+ Job_State (..),++ -- ** ListJobsResponse+ ListJobsResponse (..),+ newListJobsResponse,++ -- ** ListLocationsResponse+ ListLocationsResponse (..),+ newListLocationsResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** Location_Labels+ Location_Labels (..),+ newLocation_Labels,++ -- ** Location_Metadata+ Location_Metadata (..),+ newLocation_Metadata,++ -- ** OAuthToken+ OAuthToken (..),+ newOAuthToken,++ -- ** OidcToken+ OidcToken (..),+ newOidcToken,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OperationMetadata+ OperationMetadata (..),+ newOperationMetadata,++ -- ** PauseJobRequest+ PauseJobRequest (..),+ newPauseJobRequest,++ -- ** PubsubMessage+ PubsubMessage (..),+ newPubsubMessage,++ -- ** PubsubMessage_Attributes+ PubsubMessage_Attributes (..),+ newPubsubMessage_Attributes,++ -- ** PubsubTarget+ PubsubTarget (..),+ newPubsubTarget,++ -- ** PubsubTarget_Attributes+ PubsubTarget_Attributes (..),+ newPubsubTarget_Attributes,++ -- ** ResumeJobRequest+ ResumeJobRequest (..),+ newResumeJobRequest,++ -- ** RetryConfig+ RetryConfig (..),+ newRetryConfig,++ -- ** RunJobRequest+ RunJobRequest (..),+ newRunJobRequest,++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,+ )+where++import Gogol.CloudScheduler.Internal.Product+import Gogol.CloudScheduler.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v1@ of the Cloud Scheduler API. This contains the host and root path used as a starting point for constructing service requests.+cloudSchedulerService :: Core.ServiceConfig+cloudSchedulerService =+ Core.defaultService+ (Core.ServiceId "cloudscheduler:v1")+ "cloudscheduler.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/CloudScheduler.hs
@@ -1,250 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.CloudScheduler--- 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 and manages jobs run on a regular recurring schedule.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference>-module Network.Google.CloudScheduler- (- -- * Service Configuration- cloudSchedulerService-- -- * OAuth Scopes- , cloudPlatformScope-- -- * API Declaration- , CloudSchedulerAPI-- -- * Resources-- -- ** cloudscheduler.projects.locations.get- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Get-- -- ** cloudscheduler.projects.locations.jobs.create- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Create-- -- ** cloudscheduler.projects.locations.jobs.delete- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Delete-- -- ** cloudscheduler.projects.locations.jobs.get- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Get-- -- ** cloudscheduler.projects.locations.jobs.list- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.List-- -- ** cloudscheduler.projects.locations.jobs.patch- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Patch-- -- ** cloudscheduler.projects.locations.jobs.pause- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Pause-- -- ** cloudscheduler.projects.locations.jobs.resume- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume-- -- ** cloudscheduler.projects.locations.jobs.run- , module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Run-- -- ** cloudscheduler.projects.locations.list- , module Network.Google.Resource.CloudScheduler.Projects.Locations.List-- -- * Types-- -- ** Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- ** PauseJobRequest- , PauseJobRequest- , pauseJobRequest-- -- ** ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- ** ResumeJobRequest- , ResumeJobRequest- , resumeJobRequest-- -- ** AppEngineHTTPTargetHeaders- , AppEngineHTTPTargetHeaders- , appEngineHTTPTargetHeaders- , aehttpthAddtional-- -- ** RetryConfig- , RetryConfig- , retryConfig- , rcMaxDoublings- , rcMaxRetryDuration- , rcMinBackoffDuration- , rcRetryCount- , rcMaxBackoffDuration-- -- ** Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- ** Empty- , Empty- , empty-- -- ** PubsubTargetAttributes- , PubsubTargetAttributes- , pubsubTargetAttributes- , ptaAddtional-- -- ** HTTPTargetHeaders- , HTTPTargetHeaders- , hTTPTargetHeaders- , httpthAddtional-- -- ** PubsubMessage- , PubsubMessage- , pubsubMessage- , pmData- , pmPublishTime- , pmAttributes- , pmMessageId-- -- ** JobState- , JobState (..)-- -- ** StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- ** AppEngineHTTPTarget- , AppEngineHTTPTarget- , appEngineHTTPTarget- , aehttptHTTPMethod- , aehttptRelativeURI- , aehttptBody- , aehttptHeaders- , aehttptAppEngineRouting-- -- ** HTTPTarget- , HTTPTarget- , hTTPTarget- , httptHTTPMethod- , httptBody- , httptURI- , httptHeaders-- -- ** RunJobRequest- , RunJobRequest- , runJobRequest-- -- ** Job- , Job- , job- , jStatus- , jState- , jLastAttemptTime- , jRetryConfig- , jSchedule- , jScheduleTime- , jAppEngineHTTPTarget- , jHTTPTarget- , jName- , jPubsubTarget- , jUserUpdateTime- , jTimeZone- , jDescription-- -- ** PubsubMessageAttributes- , PubsubMessageAttributes- , pubsubMessageAttributes- , pmaAddtional-- -- ** PubsubTarget- , PubsubTarget- , pubsubTarget- , ptData- , ptTopicName- , ptAttributes-- -- ** Xgafv- , Xgafv (..)-- -- ** ListJobsResponse- , ListJobsResponse- , listJobsResponse- , ljrNextPageToken- , ljrJobs-- -- ** LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- ** LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- ** AppEngineRouting- , AppEngineRouting- , appEngineRouting- , aerService- , aerVersion- , aerHost- , aerInstance-- -- ** HTTPTargetHTTPMethod- , HTTPTargetHTTPMethod (..)-- -- ** AppEngineHTTPTargetHTTPMethod- , AppEngineHTTPTargetHTTPMethod (..)- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude-import Network.Google.Resource.CloudScheduler.Projects.Locations.Get-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Create-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Delete-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Get-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.List-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Patch-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Pause-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume-import Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Run-import Network.Google.Resource.CloudScheduler.Projects.Locations.List--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Cloud Scheduler API service.-type CloudSchedulerAPI =- ProjectsLocationsJobsListResource :<|>- ProjectsLocationsJobsPatchResource- :<|> ProjectsLocationsJobsGetResource- :<|> ProjectsLocationsJobsRunResource- :<|> ProjectsLocationsJobsCreateResource- :<|> ProjectsLocationsJobsPauseResource- :<|> ProjectsLocationsJobsDeleteResource- :<|> ProjectsLocationsJobsResumeResource- :<|> ProjectsLocationsListResource- :<|> ProjectsLocationsGetResource
− gen/Network/Google/CloudScheduler/Types.hs
@@ -1,195 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.CloudScheduler.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.CloudScheduler.Types- (- -- * Service Configuration- cloudSchedulerService-- -- * OAuth Scopes- , cloudPlatformScope-- -- * Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- * PauseJobRequest- , PauseJobRequest- , pauseJobRequest-- -- * ListLocationsResponse- , ListLocationsResponse- , listLocationsResponse- , llrNextPageToken- , llrLocations-- -- * ResumeJobRequest- , ResumeJobRequest- , resumeJobRequest-- -- * AppEngineHTTPTargetHeaders- , AppEngineHTTPTargetHeaders- , appEngineHTTPTargetHeaders- , aehttpthAddtional-- -- * RetryConfig- , RetryConfig- , retryConfig- , rcMaxDoublings- , rcMaxRetryDuration- , rcMinBackoffDuration- , rcRetryCount- , rcMaxBackoffDuration-- -- * Location- , Location- , location- , lName- , lMetadata- , lDisplayName- , lLabels- , lLocationId-- -- * Empty- , Empty- , empty-- -- * PubsubTargetAttributes- , PubsubTargetAttributes- , pubsubTargetAttributes- , ptaAddtional-- -- * HTTPTargetHeaders- , HTTPTargetHeaders- , hTTPTargetHeaders- , httpthAddtional-- -- * PubsubMessage- , PubsubMessage- , pubsubMessage- , pmData- , pmPublishTime- , pmAttributes- , pmMessageId-- -- * JobState- , JobState (..)-- -- * StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- * AppEngineHTTPTarget- , AppEngineHTTPTarget- , appEngineHTTPTarget- , aehttptHTTPMethod- , aehttptRelativeURI- , aehttptBody- , aehttptHeaders- , aehttptAppEngineRouting-- -- * HTTPTarget- , HTTPTarget- , hTTPTarget- , httptHTTPMethod- , httptBody- , httptURI- , httptHeaders-- -- * RunJobRequest- , RunJobRequest- , runJobRequest-- -- * Job- , Job- , job- , jStatus- , jState- , jLastAttemptTime- , jRetryConfig- , jSchedule- , jScheduleTime- , jAppEngineHTTPTarget- , jHTTPTarget- , jName- , jPubsubTarget- , jUserUpdateTime- , jTimeZone- , jDescription-- -- * PubsubMessageAttributes- , PubsubMessageAttributes- , pubsubMessageAttributes- , pmaAddtional-- -- * PubsubTarget- , PubsubTarget- , pubsubTarget- , ptData- , ptTopicName- , ptAttributes-- -- * Xgafv- , Xgafv (..)-- -- * ListJobsResponse- , ListJobsResponse- , listJobsResponse- , ljrNextPageToken- , ljrJobs-- -- * LocationLabels- , LocationLabels- , locationLabels- , llAddtional-- -- * LocationMetadata- , LocationMetadata- , locationMetadata- , lmAddtional-- -- * AppEngineRouting- , AppEngineRouting- , appEngineRouting- , aerService- , aerVersion- , aerHost- , aerInstance-- -- * HTTPTargetHTTPMethod- , HTTPTargetHTTPMethod (..)-- -- * AppEngineHTTPTargetHTTPMethod- , AppEngineHTTPTargetHTTPMethod (..)- ) where--import Network.Google.CloudScheduler.Types.Product-import Network.Google.CloudScheduler.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Cloud Scheduler API. This contains the host and root path used as a starting point for constructing service requests.-cloudSchedulerService :: ServiceConfig-cloudSchedulerService- = defaultService (ServiceId "cloudscheduler:v1")- "cloudscheduler.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/CloudScheduler/Types/Product.hs
@@ -1,1506 +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.CloudScheduler.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.CloudScheduler.Types.Product where--import Network.Google.CloudScheduler.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])---- | Request message for PauseJob.------ /See:/ 'pauseJobRequest' smart constructor.-data PauseJobRequest =- PauseJobRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PauseJobRequest' with the minimum fields required to make a request.----pauseJobRequest- :: PauseJobRequest-pauseJobRequest = PauseJobRequest'---instance FromJSON PauseJobRequest where- parseJSON- = withObject "PauseJobRequest"- (\ o -> pure PauseJobRequest')--instance ToJSON PauseJobRequest where- toJSON = const emptyObject---- | 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])---- | Request message for ResumeJob.------ /See:/ 'resumeJobRequest' smart constructor.-data ResumeJobRequest =- ResumeJobRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ResumeJobRequest' with the minimum fields required to make a request.----resumeJobRequest- :: ResumeJobRequest-resumeJobRequest = ResumeJobRequest'---instance FromJSON ResumeJobRequest where- parseJSON- = withObject "ResumeJobRequest"- (\ o -> pure ResumeJobRequest')--instance ToJSON ResumeJobRequest where- toJSON = const emptyObject---- | HTTP request headers. This map contains the header field names and--- values. Headers can be set when the job is created. Cloud Scheduler sets--- some headers to default values: * \`User-Agent\`: By default, this--- header is \`\"AppEngine-Google;--- (+http:\/\/code.google.com\/appengine)\"\`. This header can be modified,--- but Cloud Scheduler will append \`\"AppEngine-Google;--- (+http:\/\/code.google.com\/appengine)\"\` to the modified--- \`User-Agent\`. * \`X-CloudScheduler\`: This header will be set to true.--- If the job has an body, Cloud Scheduler sets the following headers: *--- \`Content-Type\`: By default, the \`Content-Type\` header is set to--- \`\"application\/octet-stream\"\`. The default can be overridden by--- explictly setting \`Content-Type\` to a particular media type when the--- job is created. For example, \`Content-Type\` can be set to--- \`\"application\/json\"\`. * \`Content-Length\`: This is computed by--- Cloud Scheduler. This value is output only. It cannot be changed. The--- headers below are output only. They cannot be set or overridden: *--- \`X-Google-*\`: For Google internal use only. * \`X-AppEngine-*\`: For--- Google internal use only. In addition, some App Engine headers, which--- contain job-specific information, are also be sent to the job handler.------ /See:/ 'appEngineHTTPTargetHeaders' smart constructor.-newtype AppEngineHTTPTargetHeaders =- AppEngineHTTPTargetHeaders'- { _aehttpthAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppEngineHTTPTargetHeaders' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aehttpthAddtional'-appEngineHTTPTargetHeaders- :: HashMap Text Text -- ^ 'aehttpthAddtional'- -> AppEngineHTTPTargetHeaders-appEngineHTTPTargetHeaders pAehttpthAddtional_ =- AppEngineHTTPTargetHeaders'- {_aehttpthAddtional = _Coerce # pAehttpthAddtional_}---aehttpthAddtional :: Lens' AppEngineHTTPTargetHeaders (HashMap Text Text)-aehttpthAddtional- = lens _aehttpthAddtional- (\ s a -> s{_aehttpthAddtional = a})- . _Coerce--instance FromJSON AppEngineHTTPTargetHeaders where- parseJSON- = withObject "AppEngineHTTPTargetHeaders"- (\ o ->- AppEngineHTTPTargetHeaders' <$> (parseJSONObject o))--instance ToJSON AppEngineHTTPTargetHeaders where- toJSON = toJSON . _aehttpthAddtional---- | Settings that determine the retry behavior. By default, if a job does--- not complete successfully (meaning that an acknowledgement is not--- received from the handler, then it will be retried with exponential--- backoff according to the settings in RetryConfig.------ /See:/ 'retryConfig' smart constructor.-data RetryConfig =- RetryConfig'- { _rcMaxDoublings :: !(Maybe (Textual Int32))- , _rcMaxRetryDuration :: !(Maybe GDuration)- , _rcMinBackoffDuration :: !(Maybe GDuration)- , _rcRetryCount :: !(Maybe (Textual Int32))- , _rcMaxBackoffDuration :: !(Maybe GDuration)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RetryConfig' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'rcMaxDoublings'------ * 'rcMaxRetryDuration'------ * 'rcMinBackoffDuration'------ * 'rcRetryCount'------ * 'rcMaxBackoffDuration'-retryConfig- :: RetryConfig-retryConfig =- RetryConfig'- { _rcMaxDoublings = Nothing- , _rcMaxRetryDuration = Nothing- , _rcMinBackoffDuration = Nothing- , _rcRetryCount = Nothing- , _rcMaxBackoffDuration = Nothing- }----- | The time between retries will double \`max_doublings\` times. A job\'s--- retry interval starts at min_backoff_duration, then doubles--- \`max_doublings\` times, then increases linearly, and finally retries--- retries at intervals of max_backoff_duration up to retry_count times.--- For example, if min_backoff_duration is 10s, max_backoff_duration is--- 300s, and \`max_doublings\` is 3, then the a job will first be retried--- in 10s. The retry interval will double three times, and then increase--- linearly by 2^3 * 10s. Finally, the job will retry at intervals of--- max_backoff_duration until the job has been attempted retry_count times.--- Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s,--- 300s, .... The default value of this field is 5.-rcMaxDoublings :: Lens' RetryConfig (Maybe Int32)-rcMaxDoublings- = lens _rcMaxDoublings- (\ s a -> s{_rcMaxDoublings = a})- . mapping _Coerce---- | The time limit for retrying a failed job, measured from time when an--- execution was first attempted. If specified with retry_count, the job--- will be retried until both limits are reached. The default value for--- max_retry_duration is zero, which means retry duration is unlimited.-rcMaxRetryDuration :: Lens' RetryConfig (Maybe Scientific)-rcMaxRetryDuration- = lens _rcMaxRetryDuration- (\ s a -> s{_rcMaxRetryDuration = a})- . mapping _GDuration---- | The minimum amount of time to wait before retrying a job after it fails.--- The default value of this field is 5 seconds.-rcMinBackoffDuration :: Lens' RetryConfig (Maybe Scientific)-rcMinBackoffDuration- = lens _rcMinBackoffDuration- (\ s a -> s{_rcMinBackoffDuration = a})- . mapping _GDuration---- | The number of attempts that the system will make to run a job using the--- exponential backoff procedure described by max_doublings. The default--- value of retry_count is zero. If retry_count is zero, a job attempt will--- *not* be retried if it fails. Instead the Cloud Scheduler system will--- wait for the next scheduled execution time. If retry_count is set to a--- non-zero number then Cloud Scheduler will retry failed attempts, using--- exponential backoff, retry_count times, or until the next scheduled--- execution time, whichever comes first. Values greater than 5 and--- negative values are not allowed.-rcRetryCount :: Lens' RetryConfig (Maybe Int32)-rcRetryCount- = lens _rcRetryCount (\ s a -> s{_rcRetryCount = a})- . mapping _Coerce---- | The maximum amount of time to wait before retrying a job after it fails.--- The default value of this field is 1 hour.-rcMaxBackoffDuration :: Lens' RetryConfig (Maybe Scientific)-rcMaxBackoffDuration- = lens _rcMaxBackoffDuration- (\ s a -> s{_rcMaxBackoffDuration = a})- . mapping _GDuration--instance FromJSON RetryConfig where- parseJSON- = withObject "RetryConfig"- (\ o ->- RetryConfig' <$>- (o .:? "maxDoublings") <*> (o .:? "maxRetryDuration")- <*> (o .:? "minBackoffDuration")- <*> (o .:? "retryCount")- <*> (o .:? "maxBackoffDuration"))--instance ToJSON RetryConfig where- toJSON RetryConfig'{..}- = object- (catMaybes- [("maxDoublings" .=) <$> _rcMaxDoublings,- ("maxRetryDuration" .=) <$> _rcMaxRetryDuration,- ("minBackoffDuration" .=) <$> _rcMinBackoffDuration,- ("retryCount" .=) <$> _rcRetryCount,- ("maxBackoffDuration" .=) <$> _rcMaxBackoffDuration])---- | 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])---- | A generic empty message that you can re-use to avoid defining duplicated--- empty messages in your APIs. A typical example is to use it as the--- request or the response type of an API method. For instance: service Foo--- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The--- JSON representation for \`Empty\` is empty JSON object \`{}\`.------ /See:/ 'empty' smart constructor.-data Empty =- Empty'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Empty' with the minimum fields required to make a request.----empty- :: Empty-empty = Empty'---instance FromJSON Empty where- parseJSON = withObject "Empty" (\ o -> pure Empty')--instance ToJSON Empty where- toJSON = const emptyObject---- | Attributes for PubsubMessage. Pubsub message must contain either--- non-empty data, or at least one attribute.------ /See:/ 'pubsubTargetAttributes' smart constructor.-newtype PubsubTargetAttributes =- PubsubTargetAttributes'- { _ptaAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PubsubTargetAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ptaAddtional'-pubsubTargetAttributes- :: HashMap Text Text -- ^ 'ptaAddtional'- -> PubsubTargetAttributes-pubsubTargetAttributes pPtaAddtional_ =- PubsubTargetAttributes' {_ptaAddtional = _Coerce # pPtaAddtional_}---ptaAddtional :: Lens' PubsubTargetAttributes (HashMap Text Text)-ptaAddtional- = lens _ptaAddtional (\ s a -> s{_ptaAddtional = a})- . _Coerce--instance FromJSON PubsubTargetAttributes where- parseJSON- = withObject "PubsubTargetAttributes"- (\ o ->- PubsubTargetAttributes' <$> (parseJSONObject o))--instance ToJSON PubsubTargetAttributes where- toJSON = toJSON . _ptaAddtional---- | The user can specify HTTP request headers to send with the job\'s HTTP--- request. This map contains the header field names and values. Repeated--- headers are not supported, but a header value can contain commas. These--- headers represent a subset of the headers that will accompany the job\'s--- HTTP request. Some HTTP request headers will be ignored or replaced. A--- partial list of headers that will be ignored or replaced is below: ---- Host: This will be computed by Cloud Scheduler and derived from uri. *--- \`Content-Length\`: This will be computed by Cloud Scheduler. *--- \`User-Agent\`: This will be set to \`\"Google-Cloud-Scheduler\"\`. *--- \`X-Google-*\`: Google internal use only. * \`X-AppEngine-*\`: Google--- internal use only. The total size of headers must be less than 80KB.------ /See:/ 'hTTPTargetHeaders' smart constructor.-newtype HTTPTargetHeaders =- HTTPTargetHeaders'- { _httpthAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'HTTPTargetHeaders' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'httpthAddtional'-hTTPTargetHeaders- :: HashMap Text Text -- ^ 'httpthAddtional'- -> HTTPTargetHeaders-hTTPTargetHeaders pHttpthAddtional_ =- HTTPTargetHeaders' {_httpthAddtional = _Coerce # pHttpthAddtional_}---httpthAddtional :: Lens' HTTPTargetHeaders (HashMap Text Text)-httpthAddtional- = lens _httpthAddtional- (\ s a -> s{_httpthAddtional = a})- . _Coerce--instance FromJSON HTTPTargetHeaders where- parseJSON- = withObject "HTTPTargetHeaders"- (\ o -> HTTPTargetHeaders' <$> (parseJSONObject o))--instance ToJSON HTTPTargetHeaders where- toJSON = toJSON . _httpthAddtional---- | A message that is published by publishers and consumed by subscribers.--- The message must contain either a non-empty data field or at least one--- attribute. Note that client libraries represent this object differently--- depending on the language. See the corresponding--- <https://cloud.google.com/pubsub/docs/reference/libraries client library documentation>--- for more information. See--- <https://cloud.google.com/pubsub/quotas Quotas and limits> for more--- information about message limits.------ /See:/ 'pubsubMessage' smart constructor.-data PubsubMessage =- PubsubMessage'- { _pmData :: !(Maybe Bytes)- , _pmPublishTime :: !(Maybe DateTime')- , _pmAttributes :: !(Maybe PubsubMessageAttributes)- , _pmMessageId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PubsubMessage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pmData'------ * 'pmPublishTime'------ * 'pmAttributes'------ * 'pmMessageId'-pubsubMessage- :: PubsubMessage-pubsubMessage =- PubsubMessage'- { _pmData = Nothing- , _pmPublishTime = Nothing- , _pmAttributes = Nothing- , _pmMessageId = Nothing- }----- | The message data field. If this field is empty, the message must contain--- at least one attribute.-pmData :: Lens' PubsubMessage (Maybe ByteString)-pmData- = lens _pmData (\ s a -> s{_pmData = a}) .- mapping _Bytes---- | The time at which the message was published, populated by the server--- when it receives the \`Publish\` call. It must not be populated by the--- publisher in a \`Publish\` call.-pmPublishTime :: Lens' PubsubMessage (Maybe UTCTime)-pmPublishTime- = lens _pmPublishTime- (\ s a -> s{_pmPublishTime = a})- . mapping _DateTime---- | Optional attributes for this message.-pmAttributes :: Lens' PubsubMessage (Maybe PubsubMessageAttributes)-pmAttributes- = lens _pmAttributes (\ s a -> s{_pmAttributes = a})---- | ID of this message, assigned by the server when the message is--- published. Guaranteed to be unique within the topic. This value may be--- read by a subscriber that receives a \`PubsubMessage\` via a \`Pull\`--- call or a push delivery. It must not be populated by the publisher in a--- \`Publish\` call.-pmMessageId :: Lens' PubsubMessage (Maybe Text)-pmMessageId- = lens _pmMessageId (\ s a -> s{_pmMessageId = a})--instance FromJSON PubsubMessage where- parseJSON- = withObject "PubsubMessage"- (\ o ->- PubsubMessage' <$>- (o .:? "data") <*> (o .:? "publishTime") <*>- (o .:? "attributes")- <*> (o .:? "messageId"))--instance ToJSON PubsubMessage where- toJSON PubsubMessage'{..}- = object- (catMaybes- [("data" .=) <$> _pmData,- ("publishTime" .=) <$> _pmPublishTime,- ("attributes" .=) <$> _pmAttributes,- ("messageId" .=) <$> _pmMessageId])------- /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---- | App Engine target. The job will be pushed to a job handler by means of--- an HTTP request via an http_method such as HTTP POST, HTTP GET, etc. The--- job is acknowledged by means of an HTTP response code in the range [200--- - 299]. Error 503 is considered an App Engine system error instead of an--- application error. Requests returning error 503 will be retried--- regardless of retry configuration and not counted against retry counts.--- Any other response code, or a failure to receive a response before the--- deadline, constitutes a failed attempt.------ /See:/ 'appEngineHTTPTarget' smart constructor.-data AppEngineHTTPTarget =- AppEngineHTTPTarget'- { _aehttptHTTPMethod :: !(Maybe AppEngineHTTPTargetHTTPMethod)- , _aehttptRelativeURI :: !(Maybe Text)- , _aehttptBody :: !(Maybe Bytes)- , _aehttptHeaders :: !(Maybe AppEngineHTTPTargetHeaders)- , _aehttptAppEngineRouting :: !(Maybe AppEngineRouting)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppEngineHTTPTarget' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aehttptHTTPMethod'------ * 'aehttptRelativeURI'------ * 'aehttptBody'------ * 'aehttptHeaders'------ * 'aehttptAppEngineRouting'-appEngineHTTPTarget- :: AppEngineHTTPTarget-appEngineHTTPTarget =- AppEngineHTTPTarget'- { _aehttptHTTPMethod = Nothing- , _aehttptRelativeURI = Nothing- , _aehttptBody = Nothing- , _aehttptHeaders = Nothing- , _aehttptAppEngineRouting = Nothing- }----- | The HTTP method to use for the request. PATCH and OPTIONS are not--- permitted.-aehttptHTTPMethod :: Lens' AppEngineHTTPTarget (Maybe AppEngineHTTPTargetHTTPMethod)-aehttptHTTPMethod- = lens _aehttptHTTPMethod- (\ s a -> s{_aehttptHTTPMethod = a})---- | The relative URI. The relative URL must begin with \"\/\" and must be a--- valid HTTP relative URL. It can contain a path, query string arguments,--- and \`#\` fragments. If the relative URL is empty, then the root path--- \"\/\" will be used. No spaces are allowed, and the maximum length--- allowed is 2083 characters.-aehttptRelativeURI :: Lens' AppEngineHTTPTarget (Maybe Text)-aehttptRelativeURI- = lens _aehttptRelativeURI- (\ s a -> s{_aehttptRelativeURI = a})---- | Body. HTTP request body. A request body is allowed only if the HTTP--- method is POST or PUT. It will result in invalid argument error to set a--- body on a job with an incompatible HttpMethod.-aehttptBody :: Lens' AppEngineHTTPTarget (Maybe ByteString)-aehttptBody- = lens _aehttptBody (\ s a -> s{_aehttptBody = a}) .- mapping _Bytes---- | HTTP request headers. This map contains the header field names and--- values. Headers can be set when the job is created. Cloud Scheduler sets--- some headers to default values: * \`User-Agent\`: By default, this--- header is \`\"AppEngine-Google;--- (+http:\/\/code.google.com\/appengine)\"\`. This header can be modified,--- but Cloud Scheduler will append \`\"AppEngine-Google;--- (+http:\/\/code.google.com\/appengine)\"\` to the modified--- \`User-Agent\`. * \`X-CloudScheduler\`: This header will be set to true.--- If the job has an body, Cloud Scheduler sets the following headers: *--- \`Content-Type\`: By default, the \`Content-Type\` header is set to--- \`\"application\/octet-stream\"\`. The default can be overridden by--- explictly setting \`Content-Type\` to a particular media type when the--- job is created. For example, \`Content-Type\` can be set to--- \`\"application\/json\"\`. * \`Content-Length\`: This is computed by--- Cloud Scheduler. This value is output only. It cannot be changed. The--- headers below are output only. They cannot be set or overridden: *--- \`X-Google-*\`: For Google internal use only. * \`X-AppEngine-*\`: For--- Google internal use only. In addition, some App Engine headers, which--- contain job-specific information, are also be sent to the job handler.-aehttptHeaders :: Lens' AppEngineHTTPTarget (Maybe AppEngineHTTPTargetHeaders)-aehttptHeaders- = lens _aehttptHeaders- (\ s a -> s{_aehttptHeaders = a})---- | App Engine Routing setting for the job.-aehttptAppEngineRouting :: Lens' AppEngineHTTPTarget (Maybe AppEngineRouting)-aehttptAppEngineRouting- = lens _aehttptAppEngineRouting- (\ s a -> s{_aehttptAppEngineRouting = a})--instance FromJSON AppEngineHTTPTarget where- parseJSON- = withObject "AppEngineHTTPTarget"- (\ o ->- AppEngineHTTPTarget' <$>- (o .:? "httpMethod") <*> (o .:? "relativeUri") <*>- (o .:? "body")- <*> (o .:? "headers")- <*> (o .:? "appEngineRouting"))--instance ToJSON AppEngineHTTPTarget where- toJSON AppEngineHTTPTarget'{..}- = object- (catMaybes- [("httpMethod" .=) <$> _aehttptHTTPMethod,- ("relativeUri" .=) <$> _aehttptRelativeURI,- ("body" .=) <$> _aehttptBody,- ("headers" .=) <$> _aehttptHeaders,- ("appEngineRouting" .=) <$>- _aehttptAppEngineRouting])---- | Http target. The job will be pushed to the job handler by means of an--- HTTP request via an http_method such as HTTP POST, HTTP GET, etc. The--- job is acknowledged by means of an HTTP response code in the range [200--- - 299]. A failure to receive a response constitutes a failed execution.--- For a redirected request, the response returned by the redirected--- request is considered.------ /See:/ 'hTTPTarget' smart constructor.-data HTTPTarget =- HTTPTarget'- { _httptHTTPMethod :: !(Maybe HTTPTargetHTTPMethod)- , _httptBody :: !(Maybe Bytes)- , _httptURI :: !(Maybe Text)- , _httptHeaders :: !(Maybe HTTPTargetHeaders)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'HTTPTarget' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'httptHTTPMethod'------ * 'httptBody'------ * 'httptURI'------ * 'httptHeaders'-hTTPTarget- :: HTTPTarget-hTTPTarget =- HTTPTarget'- { _httptHTTPMethod = Nothing- , _httptBody = Nothing- , _httptURI = Nothing- , _httptHeaders = Nothing- }----- | Which HTTP method to use for the request.-httptHTTPMethod :: Lens' HTTPTarget (Maybe HTTPTargetHTTPMethod)-httptHTTPMethod- = lens _httptHTTPMethod- (\ s a -> s{_httptHTTPMethod = a})---- | HTTP request body. A request body is allowed only if the HTTP method is--- POST, PUT, or PATCH. It is an error to set body on a job with an--- incompatible HttpMethod.-httptBody :: Lens' HTTPTarget (Maybe ByteString)-httptBody- = lens _httptBody (\ s a -> s{_httptBody = a}) .- mapping _Bytes---- | Required. The full URI path that the request will be sent to. This--- string must begin with either \"http:\/\/\" or \"https:\/\/\". Some--- examples of valid values for uri are: \`http:\/\/acme.com\` and--- \`https:\/\/acme.com\/sales:8080\`. Cloud Scheduler will encode some--- characters for safety and compatibility. The maximum allowed URL length--- is 2083 characters after encoding.-httptURI :: Lens' HTTPTarget (Maybe Text)-httptURI = lens _httptURI (\ s a -> s{_httptURI = a})---- | The user can specify HTTP request headers to send with the job\'s HTTP--- request. This map contains the header field names and values. Repeated--- headers are not supported, but a header value can contain commas. These--- headers represent a subset of the headers that will accompany the job\'s--- HTTP request. Some HTTP request headers will be ignored or replaced. A--- partial list of headers that will be ignored or replaced is below: ---- Host: This will be computed by Cloud Scheduler and derived from uri. *--- \`Content-Length\`: This will be computed by Cloud Scheduler. *--- \`User-Agent\`: This will be set to \`\"Google-Cloud-Scheduler\"\`. *--- \`X-Google-*\`: Google internal use only. * \`X-AppEngine-*\`: Google--- internal use only. The total size of headers must be less than 80KB.-httptHeaders :: Lens' HTTPTarget (Maybe HTTPTargetHeaders)-httptHeaders- = lens _httptHeaders (\ s a -> s{_httptHeaders = a})--instance FromJSON HTTPTarget where- parseJSON- = withObject "HTTPTarget"- (\ o ->- HTTPTarget' <$>- (o .:? "httpMethod") <*> (o .:? "body") <*>- (o .:? "uri")- <*> (o .:? "headers"))--instance ToJSON HTTPTarget where- toJSON HTTPTarget'{..}- = object- (catMaybes- [("httpMethod" .=) <$> _httptHTTPMethod,- ("body" .=) <$> _httptBody, ("uri" .=) <$> _httptURI,- ("headers" .=) <$> _httptHeaders])---- | Request message for forcing a job to run now using RunJob.------ /See:/ 'runJobRequest' smart constructor.-data RunJobRequest =- RunJobRequest'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'RunJobRequest' with the minimum fields required to make a request.----runJobRequest- :: RunJobRequest-runJobRequest = RunJobRequest'---instance FromJSON RunJobRequest where- parseJSON- = withObject "RunJobRequest"- (\ o -> pure RunJobRequest')--instance ToJSON RunJobRequest where- toJSON = const emptyObject---- | Configuration for a job. The maximum allowed size for a job is 100KB.------ /See:/ 'job' smart constructor.-data Job =- Job'- { _jStatus :: !(Maybe Status)- , _jState :: !(Maybe JobState)- , _jLastAttemptTime :: !(Maybe DateTime')- , _jRetryConfig :: !(Maybe RetryConfig)- , _jSchedule :: !(Maybe Text)- , _jScheduleTime :: !(Maybe DateTime')- , _jAppEngineHTTPTarget :: !(Maybe AppEngineHTTPTarget)- , _jHTTPTarget :: !(Maybe HTTPTarget)- , _jName :: !(Maybe Text)- , _jPubsubTarget :: !(Maybe PubsubTarget)- , _jUserUpdateTime :: !(Maybe DateTime')- , _jTimeZone :: !(Maybe Text)- , _jDescription :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Job' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'jStatus'------ * 'jState'------ * 'jLastAttemptTime'------ * 'jRetryConfig'------ * 'jSchedule'------ * 'jScheduleTime'------ * 'jAppEngineHTTPTarget'------ * 'jHTTPTarget'------ * 'jName'------ * 'jPubsubTarget'------ * 'jUserUpdateTime'------ * 'jTimeZone'------ * 'jDescription'-job- :: Job-job =- Job'- { _jStatus = Nothing- , _jState = Nothing- , _jLastAttemptTime = Nothing- , _jRetryConfig = Nothing- , _jSchedule = Nothing- , _jScheduleTime = Nothing- , _jAppEngineHTTPTarget = Nothing- , _jHTTPTarget = Nothing- , _jName = Nothing- , _jPubsubTarget = Nothing- , _jUserUpdateTime = Nothing- , _jTimeZone = Nothing- , _jDescription = Nothing- }----- | Output only. The response from the target for the last attempted--- execution.-jStatus :: Lens' Job (Maybe Status)-jStatus = lens _jStatus (\ s a -> s{_jStatus = a})---- | Output only. State of the job.-jState :: Lens' Job (Maybe JobState)-jState = lens _jState (\ s a -> s{_jState = a})---- | Output only. The time the last job attempt started.-jLastAttemptTime :: Lens' Job (Maybe UTCTime)-jLastAttemptTime- = lens _jLastAttemptTime- (\ s a -> s{_jLastAttemptTime = a})- . mapping _DateTime---- | Settings that determine the retry behavior.-jRetryConfig :: Lens' Job (Maybe RetryConfig)-jRetryConfig- = lens _jRetryConfig (\ s a -> s{_jRetryConfig = a})---- | Required, except when used with UpdateJob. Describes the schedule on--- which the job will be executed. The schedule can be either of the--- following types: *--- [Crontab](http:\/\/en.wikipedia.org\/wiki\/Cron#Overview) * English-like--- [schedule](https:\/\/cloud.google.com\/scheduler\/docs\/configuring\/cron-job-schedules)--- As a general rule, execution \`n + 1\` of a job will not begin until--- execution \`n\` has finished. Cloud Scheduler will never allow two--- simultaneously outstanding executions. For example, this implies that if--- the \`n+1\`th execution is scheduled to run at 16:00 but the \`n\`th--- execution takes until 16:15, the \`n+1\`th execution will not start--- until \`16:15\`. A scheduled start time will be delayed if the previous--- execution has not ended when its scheduled time occurs. If retry_count >--- 0 and a job attempt fails, the job will be tried a total of retry_count--- times, with exponential backoff, until the next scheduled start time.-jSchedule :: Lens' Job (Maybe Text)-jSchedule- = lens _jSchedule (\ s a -> s{_jSchedule = a})---- | Output only. The next time the job is scheduled. Note that this may be a--- retry of a previously failed attempt or the next execution time--- according to the schedule.-jScheduleTime :: Lens' Job (Maybe UTCTime)-jScheduleTime- = lens _jScheduleTime- (\ s a -> s{_jScheduleTime = a})- . mapping _DateTime---- | App Engine HTTP target.-jAppEngineHTTPTarget :: Lens' Job (Maybe AppEngineHTTPTarget)-jAppEngineHTTPTarget- = lens _jAppEngineHTTPTarget- (\ s a -> s{_jAppEngineHTTPTarget = a})---- | HTTP target.-jHTTPTarget :: Lens' Job (Maybe HTTPTarget)-jHTTPTarget- = lens _jHTTPTarget (\ s a -> s{_jHTTPTarget = a})---- | Optionally caller-specified in CreateJob, after which it becomes output--- only. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`. *--- \`PROJECT_ID\` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens--- (-), colons (:), or periods (.). For more information, see [Identifying--- projects](https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-projects#identifying_projects)--- * \`LOCATION_ID\` is the canonical ID for the job\'s location. The list--- of available locations can be obtained by calling ListLocations. For--- more information, see https:\/\/cloud.google.com\/about\/locations\/. *--- \`JOB_ID\` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens--- (-), or underscores (_). The maximum length is 500 characters.-jName :: Lens' Job (Maybe Text)-jName = lens _jName (\ s a -> s{_jName = a})---- | Pub\/Sub target.-jPubsubTarget :: Lens' Job (Maybe PubsubTarget)-jPubsubTarget- = lens _jPubsubTarget- (\ s a -> s{_jPubsubTarget = a})---- | Output only. The creation time of the job.-jUserUpdateTime :: Lens' Job (Maybe UTCTime)-jUserUpdateTime- = lens _jUserUpdateTime- (\ s a -> s{_jUserUpdateTime = a})- . mapping _DateTime---- | Specifies the time zone to be used in interpreting schedule. The value--- of this field must be a time zone name from the [tz--- database](http:\/\/en.wikipedia.org\/wiki\/Tz_database). Note that some--- time zones include a provision for daylight savings time. The rules for--- daylight saving time are determined by the chosen tz. For UTC use the--- string \"utc\". If a time zone is not specified, the default will be in--- UTC (also known as GMT).-jTimeZone :: Lens' Job (Maybe Text)-jTimeZone- = lens _jTimeZone (\ s a -> s{_jTimeZone = a})---- | Optionally caller-specified in CreateJob or UpdateJob. A human-readable--- description for the job. This string must not contain more than 500--- characters.-jDescription :: Lens' Job (Maybe Text)-jDescription- = lens _jDescription (\ s a -> s{_jDescription = a})--instance FromJSON Job where- parseJSON- = withObject "Job"- (\ o ->- Job' <$>- (o .:? "status") <*> (o .:? "state") <*>- (o .:? "lastAttemptTime")- <*> (o .:? "retryConfig")- <*> (o .:? "schedule")- <*> (o .:? "scheduleTime")- <*> (o .:? "appEngineHttpTarget")- <*> (o .:? "httpTarget")- <*> (o .:? "name")- <*> (o .:? "pubsubTarget")- <*> (o .:? "userUpdateTime")- <*> (o .:? "timeZone")- <*> (o .:? "description"))--instance ToJSON Job where- toJSON Job'{..}- = object- (catMaybes- [("status" .=) <$> _jStatus,- ("state" .=) <$> _jState,- ("lastAttemptTime" .=) <$> _jLastAttemptTime,- ("retryConfig" .=) <$> _jRetryConfig,- ("schedule" .=) <$> _jSchedule,- ("scheduleTime" .=) <$> _jScheduleTime,- ("appEngineHttpTarget" .=) <$> _jAppEngineHTTPTarget,- ("httpTarget" .=) <$> _jHTTPTarget,- ("name" .=) <$> _jName,- ("pubsubTarget" .=) <$> _jPubsubTarget,- ("userUpdateTime" .=) <$> _jUserUpdateTime,- ("timeZone" .=) <$> _jTimeZone,- ("description" .=) <$> _jDescription])---- | Optional attributes for this message.------ /See:/ 'pubsubMessageAttributes' smart constructor.-newtype PubsubMessageAttributes =- PubsubMessageAttributes'- { _pmaAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PubsubMessageAttributes' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pmaAddtional'-pubsubMessageAttributes- :: HashMap Text Text -- ^ 'pmaAddtional'- -> PubsubMessageAttributes-pubsubMessageAttributes pPmaAddtional_ =- PubsubMessageAttributes' {_pmaAddtional = _Coerce # pPmaAddtional_}---pmaAddtional :: Lens' PubsubMessageAttributes (HashMap Text Text)-pmaAddtional- = lens _pmaAddtional (\ s a -> s{_pmaAddtional = a})- . _Coerce--instance FromJSON PubsubMessageAttributes where- parseJSON- = withObject "PubsubMessageAttributes"- (\ o ->- PubsubMessageAttributes' <$> (parseJSONObject o))--instance ToJSON PubsubMessageAttributes where- toJSON = toJSON . _pmaAddtional---- | Pub\/Sub target. The job will be delivered by publishing a message to--- the given Pub\/Sub topic.------ /See:/ 'pubsubTarget' smart constructor.-data PubsubTarget =- PubsubTarget'- { _ptData :: !(Maybe Bytes)- , _ptTopicName :: !(Maybe Text)- , _ptAttributes :: !(Maybe PubsubTargetAttributes)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PubsubTarget' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ptData'------ * 'ptTopicName'------ * 'ptAttributes'-pubsubTarget- :: PubsubTarget-pubsubTarget =- PubsubTarget'- {_ptData = Nothing, _ptTopicName = Nothing, _ptAttributes = Nothing}----- | The message payload for PubsubMessage. Pubsub message must contain--- either non-empty data, or at least one attribute.-ptData :: Lens' PubsubTarget (Maybe ByteString)-ptData- = lens _ptData (\ s a -> s{_ptData = a}) .- mapping _Bytes---- | Required. The name of the Cloud Pub\/Sub topic to which messages will be--- published when a job is delivered. The topic name must be in the same--- format as required by PubSub\'s--- [PublishRequest.name](https:\/\/cloud.google.com\/pubsub\/docs\/reference\/rpc\/google.pubsub.v1#publishrequest),--- for example \`projects\/PROJECT_ID\/topics\/TOPIC_ID\`. The topic must--- be in the same project as the Cloud Scheduler job.-ptTopicName :: Lens' PubsubTarget (Maybe Text)-ptTopicName- = lens _ptTopicName (\ s a -> s{_ptTopicName = a})---- | Attributes for PubsubMessage. Pubsub message must contain either--- non-empty data, or at least one attribute.-ptAttributes :: Lens' PubsubTarget (Maybe PubsubTargetAttributes)-ptAttributes- = lens _ptAttributes (\ s a -> s{_ptAttributes = a})--instance FromJSON PubsubTarget where- parseJSON- = withObject "PubsubTarget"- (\ o ->- PubsubTarget' <$>- (o .:? "data") <*> (o .:? "topicName") <*>- (o .:? "attributes"))--instance ToJSON PubsubTarget where- toJSON PubsubTarget'{..}- = object- (catMaybes- [("data" .=) <$> _ptData,- ("topicName" .=) <$> _ptTopicName,- ("attributes" .=) <$> _ptAttributes])---- | Response message for listing jobs using ListJobs.------ /See:/ 'listJobsResponse' smart constructor.-data ListJobsResponse =- ListJobsResponse'- { _ljrNextPageToken :: !(Maybe Text)- , _ljrJobs :: !(Maybe [Job])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListJobsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ljrNextPageToken'------ * 'ljrJobs'-listJobsResponse- :: ListJobsResponse-listJobsResponse =- ListJobsResponse' {_ljrNextPageToken = Nothing, _ljrJobs = Nothing}----- | A token to retrieve next page of results. Pass this value in the--- page_token field in the subsequent call to ListJobs to retrieve the next--- page of results. If this is empty it indicates that there are no more--- results through which to paginate. The page token is valid for only 2--- hours.-ljrNextPageToken :: Lens' ListJobsResponse (Maybe Text)-ljrNextPageToken- = lens _ljrNextPageToken- (\ s a -> s{_ljrNextPageToken = a})---- | The list of jobs.-ljrJobs :: Lens' ListJobsResponse [Job]-ljrJobs- = lens _ljrJobs (\ s a -> s{_ljrJobs = a}) . _Default- . _Coerce--instance FromJSON ListJobsResponse where- parseJSON- = withObject "ListJobsResponse"- (\ o ->- ListJobsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "jobs" .!= mempty))--instance ToJSON ListJobsResponse where- toJSON ListJobsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _ljrNextPageToken,- ("jobs" .=) <$> _ljrJobs])---- | 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---- | 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---- | App Engine Routing. For more information about services, versions, and--- instances see [An Overview of App--- Engine](https:\/\/cloud.google.com\/appengine\/docs\/python\/an-overview-of-app-engine),--- [Microservices Architecture on Google App--- Engine](https:\/\/cloud.google.com\/appengine\/docs\/python\/microservices-on-app-engine),--- [App Engine Standard request--- routing](https:\/\/cloud.google.com\/appengine\/docs\/standard\/python\/how-requests-are-routed),--- and [App Engine Flex request--- routing](https:\/\/cloud.google.com\/appengine\/docs\/flexible\/python\/how-requests-are-routed).------ /See:/ 'appEngineRouting' smart constructor.-data AppEngineRouting =- AppEngineRouting'- { _aerService :: !(Maybe Text)- , _aerVersion :: !(Maybe Text)- , _aerHost :: !(Maybe Text)- , _aerInstance :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppEngineRouting' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aerService'------ * 'aerVersion'------ * 'aerHost'------ * 'aerInstance'-appEngineRouting- :: AppEngineRouting-appEngineRouting =- AppEngineRouting'- { _aerService = Nothing- , _aerVersion = Nothing- , _aerHost = Nothing- , _aerInstance = Nothing- }----- | App service. By default, the job is sent to the service which is the--- default service when the job is attempted.-aerService :: Lens' AppEngineRouting (Maybe Text)-aerService- = lens _aerService (\ s a -> s{_aerService = a})---- | App version. By default, the job is sent to the version which is the--- default version when the job is attempted.-aerVersion :: Lens' AppEngineRouting (Maybe Text)-aerVersion- = lens _aerVersion (\ s a -> s{_aerVersion = a})---- | Output only. The host that the job is sent to. For more information--- about how App Engine requests are routed, see--- [here](https:\/\/cloud.google.com\/appengine\/docs\/standard\/python\/how-requests-are-routed).--- The host is constructed as: * \`host = [application_domain_name]\` \`|--- [service] + \'.\' + [application_domain_name]\` \`| [version] + \'.\' +--- [application_domain_name]\` \`| [version_dot_service]+ \'.\' +--- [application_domain_name]\` \`| [instance] + \'.\' +--- [application_domain_name]\` \`| [instance_dot_service] + \'.\' +--- [application_domain_name]\` \`| [instance_dot_version] + \'.\' +--- [application_domain_name]\` \`| [instance_dot_version_dot_service] +--- \'.\' + [application_domain_name]\` * \`application_domain_name\` = The--- domain name of the app, for example .appspot.com, which is associated--- with the job\'s project ID. * \`service =\` service * \`version =\`--- version * \`version_dot_service =\` version \`+ \'.\' +\` service *--- \`instance =\` instance * \`instance_dot_service =\` instance \`+ \'.\'--- +\` service * \`instance_dot_version =\` instance \`+ \'.\' +\` version--- * \`instance_dot_version_dot_service =\` instance \`+ \'.\' +\` version--- \`+ \'.\' +\` service If service is empty, then the job will be sent to--- the service which is the default service when the job is attempted. If--- version is empty, then the job will be sent to the version which is the--- default version when the job is attempted. If instance is empty, then--- the job will be sent to an instance which is available when the job is--- attempted. If service, version, or instance is invalid, then the job--- will be sent to the default version of the default service when the job--- is attempted.-aerHost :: Lens' AppEngineRouting (Maybe Text)-aerHost = lens _aerHost (\ s a -> s{_aerHost = a})---- | App instance. By default, the job is sent to an instance which is--- available when the job is attempted. Requests can only be sent to a--- specific instance if [manual scaling is used in App Engine--- Standard](https:\/\/cloud.google.com\/appengine\/docs\/python\/an-overview-of-app-engine?hl=en_US#scaling_types_and_instance_classes).--- App Engine Flex does not support instances. For more information, see--- [App Engine Standard request--- routing](https:\/\/cloud.google.com\/appengine\/docs\/standard\/python\/how-requests-are-routed)--- and [App Engine Flex request--- routing](https:\/\/cloud.google.com\/appengine\/docs\/flexible\/python\/how-requests-are-routed).-aerInstance :: Lens' AppEngineRouting (Maybe Text)-aerInstance- = lens _aerInstance (\ s a -> s{_aerInstance = a})--instance FromJSON AppEngineRouting where- parseJSON- = withObject "AppEngineRouting"- (\ o ->- AppEngineRouting' <$>- (o .:? "service") <*> (o .:? "version") <*>- (o .:? "host")- <*> (o .:? "instance"))--instance ToJSON AppEngineRouting where- toJSON AppEngineRouting'{..}- = object- (catMaybes- [("service" .=) <$> _aerService,- ("version" .=) <$> _aerVersion,- ("host" .=) <$> _aerHost,- ("instance" .=) <$> _aerInstance])
− gen/Network/Google/CloudScheduler/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.CloudScheduler.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.CloudScheduler.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | Output only. State of the job.-data JobState- = StateUnspecified- -- ^ @STATE_UNSPECIFIED@- -- Unspecified state.- | Enabled- -- ^ @ENABLED@- -- The job is executing normally.- | Paused- -- ^ @PAUSED@- -- The job is paused by the user. It will not execute. A user can- -- intentionally pause the job using PauseJobRequest.- | Disabled- -- ^ @DISABLED@- -- The job is disabled by the system due to error. The user cannot directly- -- set a job to be disabled.- | UpdateFailed- -- ^ @UPDATE_FAILED@- -- The job state resulting from a failed CloudScheduler.UpdateJob- -- operation. To recover a job from this state, retry- -- CloudScheduler.UpdateJob until a successful response is received.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable JobState--instance FromHttpApiData JobState where- parseQueryParam = \case- "STATE_UNSPECIFIED" -> Right StateUnspecified- "ENABLED" -> Right Enabled- "PAUSED" -> Right Paused- "DISABLED" -> Right Disabled- "UPDATE_FAILED" -> Right UpdateFailed- x -> Left ("Unable to parse JobState from: " <> x)--instance ToHttpApiData JobState where- toQueryParam = \case- StateUnspecified -> "STATE_UNSPECIFIED"- Enabled -> "ENABLED"- Paused -> "PAUSED"- Disabled -> "DISABLED"- UpdateFailed -> "UPDATE_FAILED"--instance FromJSON JobState where- parseJSON = parseJSONText "JobState"--instance ToJSON JobState 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---- | Which HTTP method to use for the request.-data HTTPTargetHTTPMethod- = HTTPMethodUnspecified- -- ^ @HTTP_METHOD_UNSPECIFIED@- -- HTTP method unspecified. Defaults to POST.- | Post'- -- ^ @POST@- -- HTTP POST- | Get'- -- ^ @GET@- -- HTTP GET- | Head'- -- ^ @HEAD@- -- HTTP HEAD- | Put'- -- ^ @PUT@- -- HTTP PUT- | Delete'- -- ^ @DELETE@- -- HTTP DELETE- | Patch'- -- ^ @PATCH@- -- HTTP PATCH- | Options- -- ^ @OPTIONS@- -- HTTP OPTIONS- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable HTTPTargetHTTPMethod--instance FromHttpApiData HTTPTargetHTTPMethod where- parseQueryParam = \case- "HTTP_METHOD_UNSPECIFIED" -> Right HTTPMethodUnspecified- "POST" -> Right Post'- "GET" -> Right Get'- "HEAD" -> Right Head'- "PUT" -> Right Put'- "DELETE" -> Right Delete'- "PATCH" -> Right Patch'- "OPTIONS" -> Right Options- x -> Left ("Unable to parse HTTPTargetHTTPMethod from: " <> x)--instance ToHttpApiData HTTPTargetHTTPMethod where- toQueryParam = \case- HTTPMethodUnspecified -> "HTTP_METHOD_UNSPECIFIED"- Post' -> "POST"- Get' -> "GET"- Head' -> "HEAD"- Put' -> "PUT"- Delete' -> "DELETE"- Patch' -> "PATCH"- Options -> "OPTIONS"--instance FromJSON HTTPTargetHTTPMethod where- parseJSON = parseJSONText "HTTPTargetHTTPMethod"--instance ToJSON HTTPTargetHTTPMethod where- toJSON = toJSONText---- | The HTTP method to use for the request. PATCH and OPTIONS are not--- permitted.-data AppEngineHTTPTargetHTTPMethod- = AEHTTPTHTTPMHTTPMethodUnspecified- -- ^ @HTTP_METHOD_UNSPECIFIED@- -- HTTP method unspecified. Defaults to POST.- | AEHTTPTHTTPMPost'- -- ^ @POST@- -- HTTP POST- | AEHTTPTHTTPMGet'- -- ^ @GET@- -- HTTP GET- | AEHTTPTHTTPMHead'- -- ^ @HEAD@- -- HTTP HEAD- | AEHTTPTHTTPMPut'- -- ^ @PUT@- -- HTTP PUT- | AEHTTPTHTTPMDelete'- -- ^ @DELETE@- -- HTTP DELETE- | AEHTTPTHTTPMPatch'- -- ^ @PATCH@- -- HTTP PATCH- | AEHTTPTHTTPMOptions- -- ^ @OPTIONS@- -- HTTP OPTIONS- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable AppEngineHTTPTargetHTTPMethod--instance FromHttpApiData AppEngineHTTPTargetHTTPMethod where- parseQueryParam = \case- "HTTP_METHOD_UNSPECIFIED" -> Right AEHTTPTHTTPMHTTPMethodUnspecified- "POST" -> Right AEHTTPTHTTPMPost'- "GET" -> Right AEHTTPTHTTPMGet'- "HEAD" -> Right AEHTTPTHTTPMHead'- "PUT" -> Right AEHTTPTHTTPMPut'- "DELETE" -> Right AEHTTPTHTTPMDelete'- "PATCH" -> Right AEHTTPTHTTPMPatch'- "OPTIONS" -> Right AEHTTPTHTTPMOptions- x -> Left ("Unable to parse AppEngineHTTPTargetHTTPMethod from: " <> x)--instance ToHttpApiData AppEngineHTTPTargetHTTPMethod where- toQueryParam = \case- AEHTTPTHTTPMHTTPMethodUnspecified -> "HTTP_METHOD_UNSPECIFIED"- AEHTTPTHTTPMPost' -> "POST"- AEHTTPTHTTPMGet' -> "GET"- AEHTTPTHTTPMHead' -> "HEAD"- AEHTTPTHTTPMPut' -> "PUT"- AEHTTPTHTTPMDelete' -> "DELETE"- AEHTTPTHTTPMPatch' -> "PATCH"- AEHTTPTHTTPMOptions -> "OPTIONS"--instance FromJSON AppEngineHTTPTargetHTTPMethod where- parseJSON = parseJSONText "AppEngineHTTPTargetHTTPMethod"--instance ToJSON AppEngineHTTPTargetHTTPMethod where- toJSON = toJSONText
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Get.hs
@@ -1,148 +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.CloudScheduler.Projects.Locations.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets information about a location.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.get@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Get- (- -- * REST Resource- ProjectsLocationsGetResource-- -- * Creating a Request- , projectsLocationsGet- , ProjectsLocationsGet-- -- * Request Lenses- , plgXgafv- , plgUploadProtocol- , plgAccessToken- , plgUploadType- , plgName- , plgCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.get@ method which the--- 'ProjectsLocationsGet' request conforms to.-type ProjectsLocationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Location---- | Gets information about a location.------ /See:/ 'projectsLocationsGet' smart constructor.-data ProjectsLocationsGet =- ProjectsLocationsGet'- { _plgXgafv :: !(Maybe Xgafv)- , _plgUploadProtocol :: !(Maybe Text)- , _plgAccessToken :: !(Maybe Text)- , _plgUploadType :: !(Maybe Text)- , _plgName :: !Text- , _plgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plgXgafv'------ * 'plgUploadProtocol'------ * 'plgAccessToken'------ * 'plgUploadType'------ * 'plgName'------ * 'plgCallback'-projectsLocationsGet- :: Text -- ^ 'plgName'- -> ProjectsLocationsGet-projectsLocationsGet pPlgName_ =- ProjectsLocationsGet'- { _plgXgafv = Nothing- , _plgUploadProtocol = Nothing- , _plgAccessToken = Nothing- , _plgUploadType = Nothing- , _plgName = pPlgName_- , _plgCallback = Nothing- }----- | V1 error format.-plgXgafv :: Lens' ProjectsLocationsGet (Maybe Xgafv)-plgXgafv = lens _plgXgafv (\ s a -> s{_plgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-plgUploadProtocol :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadProtocol- = lens _plgUploadProtocol- (\ s a -> s{_plgUploadProtocol = a})---- | OAuth access token.-plgAccessToken :: Lens' ProjectsLocationsGet (Maybe Text)-plgAccessToken- = lens _plgAccessToken- (\ s a -> s{_plgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-plgUploadType :: Lens' ProjectsLocationsGet (Maybe Text)-plgUploadType- = lens _plgUploadType- (\ s a -> s{_plgUploadType = a})---- | Resource name for the location.-plgName :: Lens' ProjectsLocationsGet Text-plgName = lens _plgName (\ s a -> s{_plgName = a})---- | JSONP-plgCallback :: Lens' ProjectsLocationsGet (Maybe Text)-plgCallback- = lens _plgCallback (\ s a -> s{_plgCallback = a})--instance GoogleRequest ProjectsLocationsGet where- type Rs ProjectsLocationsGet = Location- type Scopes ProjectsLocationsGet =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsGet'{..}- = go _plgName _plgXgafv _plgUploadProtocol- _plgAccessToken- _plgUploadType- _plgCallback- (Just AltJSON)- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsGetResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Create.hs
@@ -1,166 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.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 job.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.create@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Create- (- -- * REST Resource- ProjectsLocationsJobsCreateResource-- -- * Creating a Request- , projectsLocationsJobsCreate- , ProjectsLocationsJobsCreate-- -- * Request Lenses- , pljcParent- , pljcXgafv- , pljcUploadProtocol- , pljcAccessToken- , pljcUploadType- , pljcPayload- , pljcCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.create@ method which the--- 'ProjectsLocationsJobsCreate' request conforms to.-type ProjectsLocationsJobsCreateResource =- "v1" :>- Capture "parent" Text :>- "jobs" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Job :> Post '[JSON] Job---- | Creates a job.------ /See:/ 'projectsLocationsJobsCreate' smart constructor.-data ProjectsLocationsJobsCreate =- ProjectsLocationsJobsCreate'- { _pljcParent :: !Text- , _pljcXgafv :: !(Maybe Xgafv)- , _pljcUploadProtocol :: !(Maybe Text)- , _pljcAccessToken :: !(Maybe Text)- , _pljcUploadType :: !(Maybe Text)- , _pljcPayload :: !Job- , _pljcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljcParent'------ * 'pljcXgafv'------ * 'pljcUploadProtocol'------ * 'pljcAccessToken'------ * 'pljcUploadType'------ * 'pljcPayload'------ * 'pljcCallback'-projectsLocationsJobsCreate- :: Text -- ^ 'pljcParent'- -> Job -- ^ 'pljcPayload'- -> ProjectsLocationsJobsCreate-projectsLocationsJobsCreate pPljcParent_ pPljcPayload_ =- ProjectsLocationsJobsCreate'- { _pljcParent = pPljcParent_- , _pljcXgafv = Nothing- , _pljcUploadProtocol = Nothing- , _pljcAccessToken = Nothing- , _pljcUploadType = Nothing- , _pljcPayload = pPljcPayload_- , _pljcCallback = Nothing- }----- | Required. The location name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\`.-pljcParent :: Lens' ProjectsLocationsJobsCreate Text-pljcParent- = lens _pljcParent (\ s a -> s{_pljcParent = a})---- | V1 error format.-pljcXgafv :: Lens' ProjectsLocationsJobsCreate (Maybe Xgafv)-pljcXgafv- = lens _pljcXgafv (\ s a -> s{_pljcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljcUploadProtocol :: Lens' ProjectsLocationsJobsCreate (Maybe Text)-pljcUploadProtocol- = lens _pljcUploadProtocol- (\ s a -> s{_pljcUploadProtocol = a})---- | OAuth access token.-pljcAccessToken :: Lens' ProjectsLocationsJobsCreate (Maybe Text)-pljcAccessToken- = lens _pljcAccessToken- (\ s a -> s{_pljcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljcUploadType :: Lens' ProjectsLocationsJobsCreate (Maybe Text)-pljcUploadType- = lens _pljcUploadType- (\ s a -> s{_pljcUploadType = a})---- | Multipart request metadata.-pljcPayload :: Lens' ProjectsLocationsJobsCreate Job-pljcPayload- = lens _pljcPayload (\ s a -> s{_pljcPayload = a})---- | JSONP-pljcCallback :: Lens' ProjectsLocationsJobsCreate (Maybe Text)-pljcCallback- = lens _pljcCallback (\ s a -> s{_pljcCallback = a})--instance GoogleRequest ProjectsLocationsJobsCreate- where- type Rs ProjectsLocationsJobsCreate = Job- type Scopes ProjectsLocationsJobsCreate =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsCreate'{..}- = go _pljcParent _pljcXgafv _pljcUploadProtocol- _pljcAccessToken- _pljcUploadType- _pljcCallback- (Just AltJSON)- _pljcPayload- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsCreateResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Delete.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.CloudScheduler.Projects.Locations.Jobs.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 job.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.delete@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Delete- (- -- * REST Resource- ProjectsLocationsJobsDeleteResource-- -- * Creating a Request- , projectsLocationsJobsDelete- , ProjectsLocationsJobsDelete-- -- * Request Lenses- , pljdXgafv- , pljdUploadProtocol- , pljdAccessToken- , pljdUploadType- , pljdName- , pljdCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.delete@ method which the--- 'ProjectsLocationsJobsDelete' request conforms to.-type ProjectsLocationsJobsDeleteResource =- "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] Empty---- | Deletes a job.------ /See:/ 'projectsLocationsJobsDelete' smart constructor.-data ProjectsLocationsJobsDelete =- ProjectsLocationsJobsDelete'- { _pljdXgafv :: !(Maybe Xgafv)- , _pljdUploadProtocol :: !(Maybe Text)- , _pljdAccessToken :: !(Maybe Text)- , _pljdUploadType :: !(Maybe Text)- , _pljdName :: !Text- , _pljdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljdXgafv'------ * 'pljdUploadProtocol'------ * 'pljdAccessToken'------ * 'pljdUploadType'------ * 'pljdName'------ * 'pljdCallback'-projectsLocationsJobsDelete- :: Text -- ^ 'pljdName'- -> ProjectsLocationsJobsDelete-projectsLocationsJobsDelete pPljdName_ =- ProjectsLocationsJobsDelete'- { _pljdXgafv = Nothing- , _pljdUploadProtocol = Nothing- , _pljdAccessToken = Nothing- , _pljdUploadType = Nothing- , _pljdName = pPljdName_- , _pljdCallback = Nothing- }----- | V1 error format.-pljdXgafv :: Lens' ProjectsLocationsJobsDelete (Maybe Xgafv)-pljdXgafv- = lens _pljdXgafv (\ s a -> s{_pljdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljdUploadProtocol :: Lens' ProjectsLocationsJobsDelete (Maybe Text)-pljdUploadProtocol- = lens _pljdUploadProtocol- (\ s a -> s{_pljdUploadProtocol = a})---- | OAuth access token.-pljdAccessToken :: Lens' ProjectsLocationsJobsDelete (Maybe Text)-pljdAccessToken- = lens _pljdAccessToken- (\ s a -> s{_pljdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljdUploadType :: Lens' ProjectsLocationsJobsDelete (Maybe Text)-pljdUploadType- = lens _pljdUploadType- (\ s a -> s{_pljdUploadType = a})---- | Required. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`.-pljdName :: Lens' ProjectsLocationsJobsDelete Text-pljdName = lens _pljdName (\ s a -> s{_pljdName = a})---- | JSONP-pljdCallback :: Lens' ProjectsLocationsJobsDelete (Maybe Text)-pljdCallback- = lens _pljdCallback (\ s a -> s{_pljdCallback = a})--instance GoogleRequest ProjectsLocationsJobsDelete- where- type Rs ProjectsLocationsJobsDelete = Empty- type Scopes ProjectsLocationsJobsDelete =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsDelete'{..}- = go _pljdName _pljdXgafv _pljdUploadProtocol- _pljdAccessToken- _pljdUploadType- _pljdCallback- (Just AltJSON)- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsDeleteResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/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.CloudScheduler.Projects.Locations.Jobs.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 a job.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.get@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Get- (- -- * REST Resource- ProjectsLocationsJobsGetResource-- -- * Creating a Request- , projectsLocationsJobsGet- , ProjectsLocationsJobsGet-- -- * Request Lenses- , pljgXgafv- , pljgUploadProtocol- , pljgAccessToken- , pljgUploadType- , pljgName- , pljgCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.get@ method which the--- 'ProjectsLocationsJobsGet' request conforms to.-type ProjectsLocationsJobsGetResource =- "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] Job---- | Gets a job.------ /See:/ 'projectsLocationsJobsGet' smart constructor.-data ProjectsLocationsJobsGet =- ProjectsLocationsJobsGet'- { _pljgXgafv :: !(Maybe Xgafv)- , _pljgUploadProtocol :: !(Maybe Text)- , _pljgAccessToken :: !(Maybe Text)- , _pljgUploadType :: !(Maybe Text)- , _pljgName :: !Text- , _pljgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljgXgafv'------ * 'pljgUploadProtocol'------ * 'pljgAccessToken'------ * 'pljgUploadType'------ * 'pljgName'------ * 'pljgCallback'-projectsLocationsJobsGet- :: Text -- ^ 'pljgName'- -> ProjectsLocationsJobsGet-projectsLocationsJobsGet pPljgName_ =- ProjectsLocationsJobsGet'- { _pljgXgafv = Nothing- , _pljgUploadProtocol = Nothing- , _pljgAccessToken = Nothing- , _pljgUploadType = Nothing- , _pljgName = pPljgName_- , _pljgCallback = Nothing- }----- | V1 error format.-pljgXgafv :: Lens' ProjectsLocationsJobsGet (Maybe Xgafv)-pljgXgafv- = lens _pljgXgafv (\ s a -> s{_pljgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljgUploadProtocol :: Lens' ProjectsLocationsJobsGet (Maybe Text)-pljgUploadProtocol- = lens _pljgUploadProtocol- (\ s a -> s{_pljgUploadProtocol = a})---- | OAuth access token.-pljgAccessToken :: Lens' ProjectsLocationsJobsGet (Maybe Text)-pljgAccessToken- = lens _pljgAccessToken- (\ s a -> s{_pljgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljgUploadType :: Lens' ProjectsLocationsJobsGet (Maybe Text)-pljgUploadType- = lens _pljgUploadType- (\ s a -> s{_pljgUploadType = a})---- | Required. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`.-pljgName :: Lens' ProjectsLocationsJobsGet Text-pljgName = lens _pljgName (\ s a -> s{_pljgName = a})---- | JSONP-pljgCallback :: Lens' ProjectsLocationsJobsGet (Maybe Text)-pljgCallback- = lens _pljgCallback (\ s a -> s{_pljgCallback = a})--instance GoogleRequest ProjectsLocationsJobsGet where- type Rs ProjectsLocationsJobsGet = Job- type Scopes ProjectsLocationsJobsGet =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsGet'{..}- = go _pljgName _pljgXgafv _pljgUploadProtocol- _pljgAccessToken- _pljgUploadType- _pljgCallback- (Just AltJSON)- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsGetResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/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.CloudScheduler.Projects.Locations.Jobs.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 jobs.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.list@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.List- (- -- * REST Resource- ProjectsLocationsJobsListResource-- -- * Creating a Request- , projectsLocationsJobsList- , ProjectsLocationsJobsList-- -- * Request Lenses- , pljlParent- , pljlXgafv- , pljlUploadProtocol- , pljlAccessToken- , pljlUploadType- , pljlPageToken- , pljlPageSize- , pljlCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.list@ method which the--- 'ProjectsLocationsJobsList' request conforms to.-type ProjectsLocationsJobsListResource =- "v1" :>- Capture "parent" Text :>- "jobs" :>- 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] ListJobsResponse---- | Lists jobs.------ /See:/ 'projectsLocationsJobsList' smart constructor.-data ProjectsLocationsJobsList =- ProjectsLocationsJobsList'- { _pljlParent :: !Text- , _pljlXgafv :: !(Maybe Xgafv)- , _pljlUploadProtocol :: !(Maybe Text)- , _pljlAccessToken :: !(Maybe Text)- , _pljlUploadType :: !(Maybe Text)- , _pljlPageToken :: !(Maybe Text)- , _pljlPageSize :: !(Maybe (Textual Int32))- , _pljlCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljlParent'------ * 'pljlXgafv'------ * 'pljlUploadProtocol'------ * 'pljlAccessToken'------ * 'pljlUploadType'------ * 'pljlPageToken'------ * 'pljlPageSize'------ * 'pljlCallback'-projectsLocationsJobsList- :: Text -- ^ 'pljlParent'- -> ProjectsLocationsJobsList-projectsLocationsJobsList pPljlParent_ =- ProjectsLocationsJobsList'- { _pljlParent = pPljlParent_- , _pljlXgafv = Nothing- , _pljlUploadProtocol = Nothing- , _pljlAccessToken = Nothing- , _pljlUploadType = Nothing- , _pljlPageToken = Nothing- , _pljlPageSize = Nothing- , _pljlCallback = Nothing- }----- | Required. The location name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\`.-pljlParent :: Lens' ProjectsLocationsJobsList Text-pljlParent- = lens _pljlParent (\ s a -> s{_pljlParent = a})---- | V1 error format.-pljlXgafv :: Lens' ProjectsLocationsJobsList (Maybe Xgafv)-pljlXgafv- = lens _pljlXgafv (\ s a -> s{_pljlXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljlUploadProtocol :: Lens' ProjectsLocationsJobsList (Maybe Text)-pljlUploadProtocol- = lens _pljlUploadProtocol- (\ s a -> s{_pljlUploadProtocol = a})---- | OAuth access token.-pljlAccessToken :: Lens' ProjectsLocationsJobsList (Maybe Text)-pljlAccessToken- = lens _pljlAccessToken- (\ s a -> s{_pljlAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljlUploadType :: Lens' ProjectsLocationsJobsList (Maybe Text)-pljlUploadType- = lens _pljlUploadType- (\ s a -> s{_pljlUploadType = a})---- | A token identifying a page of results the server will return. To request--- the first page results, page_token must be empty. To request the next--- page of results, page_token must be the value of next_page_token--- returned from the previous call to ListJobs. It is an error to switch--- the value of filter or order_by while iterating through pages.-pljlPageToken :: Lens' ProjectsLocationsJobsList (Maybe Text)-pljlPageToken- = lens _pljlPageToken- (\ s a -> s{_pljlPageToken = a})---- | Requested page size. The maximum page size is 500. If unspecified, the--- page size will be the maximum. Fewer jobs than requested might be--- returned, even if more jobs exist; use next_page_token to determine if--- more jobs exist.-pljlPageSize :: Lens' ProjectsLocationsJobsList (Maybe Int32)-pljlPageSize- = lens _pljlPageSize (\ s a -> s{_pljlPageSize = a})- . mapping _Coerce---- | JSONP-pljlCallback :: Lens' ProjectsLocationsJobsList (Maybe Text)-pljlCallback- = lens _pljlCallback (\ s a -> s{_pljlCallback = a})--instance GoogleRequest ProjectsLocationsJobsList- where- type Rs ProjectsLocationsJobsList = ListJobsResponse- type Scopes ProjectsLocationsJobsList =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsList'{..}- = go _pljlParent _pljlXgafv _pljlUploadProtocol- _pljlAccessToken- _pljlUploadType- _pljlPageToken- _pljlPageSize- _pljlCallback- (Just AltJSON)- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsListResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Patch.hs
@@ -1,196 +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.CloudScheduler.Projects.Locations.Jobs.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 a job. If successful, the updated Job is returned. If the job--- does not exist, \`NOT_FOUND\` is returned. If UpdateJob does not--- successfully return, it is possible for the job to be in an--- Job.State.UPDATE_FAILED state. A job in this state may not be executed.--- If this happens, retry the UpdateJob request until a successful response--- is received.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.patch@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Patch- (- -- * REST Resource- ProjectsLocationsJobsPatchResource-- -- * Creating a Request- , projectsLocationsJobsPatch- , ProjectsLocationsJobsPatch-- -- * Request Lenses- , pljpXgafv- , pljpUploadProtocol- , pljpUpdateMask- , pljpAccessToken- , pljpUploadType- , pljpPayload- , pljpName- , pljpCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.patch@ method which the--- 'ProjectsLocationsJobsPatch' request conforms to.-type ProjectsLocationsJobsPatchResource =- "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] Job :> Patch '[JSON] Job---- | Updates a job. If successful, the updated Job is returned. If the job--- does not exist, \`NOT_FOUND\` is returned. If UpdateJob does not--- successfully return, it is possible for the job to be in an--- Job.State.UPDATE_FAILED state. A job in this state may not be executed.--- If this happens, retry the UpdateJob request until a successful response--- is received.------ /See:/ 'projectsLocationsJobsPatch' smart constructor.-data ProjectsLocationsJobsPatch =- ProjectsLocationsJobsPatch'- { _pljpXgafv :: !(Maybe Xgafv)- , _pljpUploadProtocol :: !(Maybe Text)- , _pljpUpdateMask :: !(Maybe GFieldMask)- , _pljpAccessToken :: !(Maybe Text)- , _pljpUploadType :: !(Maybe Text)- , _pljpPayload :: !Job- , _pljpName :: !Text- , _pljpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljpXgafv'------ * 'pljpUploadProtocol'------ * 'pljpUpdateMask'------ * 'pljpAccessToken'------ * 'pljpUploadType'------ * 'pljpPayload'------ * 'pljpName'------ * 'pljpCallback'-projectsLocationsJobsPatch- :: Job -- ^ 'pljpPayload'- -> Text -- ^ 'pljpName'- -> ProjectsLocationsJobsPatch-projectsLocationsJobsPatch pPljpPayload_ pPljpName_ =- ProjectsLocationsJobsPatch'- { _pljpXgafv = Nothing- , _pljpUploadProtocol = Nothing- , _pljpUpdateMask = Nothing- , _pljpAccessToken = Nothing- , _pljpUploadType = Nothing- , _pljpPayload = pPljpPayload_- , _pljpName = pPljpName_- , _pljpCallback = Nothing- }----- | V1 error format.-pljpXgafv :: Lens' ProjectsLocationsJobsPatch (Maybe Xgafv)-pljpXgafv- = lens _pljpXgafv (\ s a -> s{_pljpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljpUploadProtocol :: Lens' ProjectsLocationsJobsPatch (Maybe Text)-pljpUploadProtocol- = lens _pljpUploadProtocol- (\ s a -> s{_pljpUploadProtocol = a})---- | A mask used to specify which fields of the job are being updated.-pljpUpdateMask :: Lens' ProjectsLocationsJobsPatch (Maybe GFieldMask)-pljpUpdateMask- = lens _pljpUpdateMask- (\ s a -> s{_pljpUpdateMask = a})---- | OAuth access token.-pljpAccessToken :: Lens' ProjectsLocationsJobsPatch (Maybe Text)-pljpAccessToken- = lens _pljpAccessToken- (\ s a -> s{_pljpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljpUploadType :: Lens' ProjectsLocationsJobsPatch (Maybe Text)-pljpUploadType- = lens _pljpUploadType- (\ s a -> s{_pljpUploadType = a})---- | Multipart request metadata.-pljpPayload :: Lens' ProjectsLocationsJobsPatch Job-pljpPayload- = lens _pljpPayload (\ s a -> s{_pljpPayload = a})---- | Optionally caller-specified in CreateJob, after which it becomes output--- only. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`. *--- \`PROJECT_ID\` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens--- (-), colons (:), or periods (.). For more information, see [Identifying--- projects](https:\/\/cloud.google.com\/resource-manager\/docs\/creating-managing-projects#identifying_projects)--- * \`LOCATION_ID\` is the canonical ID for the job\'s location. The list--- of available locations can be obtained by calling ListLocations. For--- more information, see https:\/\/cloud.google.com\/about\/locations\/. *--- \`JOB_ID\` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens--- (-), or underscores (_). The maximum length is 500 characters.-pljpName :: Lens' ProjectsLocationsJobsPatch Text-pljpName = lens _pljpName (\ s a -> s{_pljpName = a})---- | JSONP-pljpCallback :: Lens' ProjectsLocationsJobsPatch (Maybe Text)-pljpCallback- = lens _pljpCallback (\ s a -> s{_pljpCallback = a})--instance GoogleRequest ProjectsLocationsJobsPatch- where- type Rs ProjectsLocationsJobsPatch = Job- type Scopes ProjectsLocationsJobsPatch =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsPatch'{..}- = go _pljpName _pljpXgafv _pljpUploadProtocol- _pljpUpdateMask- _pljpAccessToken- _pljpUploadType- _pljpCallback- (Just AltJSON)- _pljpPayload- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsPatchResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Pause.hs
@@ -1,169 +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.CloudScheduler.Projects.Locations.Jobs.Pause--- 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)------ Pauses a job. If a job is paused then the system will stop executing the--- job until it is re-enabled via ResumeJob. The state of the job is stored--- in state; if paused it will be set to Job.State.PAUSED. A job must be in--- Job.State.ENABLED to be paused.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.pause@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Pause- (- -- * REST Resource- ProjectsLocationsJobsPauseResource-- -- * Creating a Request- , projectsLocationsJobsPause- , ProjectsLocationsJobsPause-- -- * Request Lenses- , proXgafv- , proUploadProtocol- , proAccessToken- , proUploadType- , proPayload- , proName- , proCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.pause@ method which the--- 'ProjectsLocationsJobsPause' request conforms to.-type ProjectsLocationsJobsPauseResource =- "v1" :>- CaptureMode "name" "pause" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] PauseJobRequest :> Post '[JSON] Job---- | Pauses a job. If a job is paused then the system will stop executing the--- job until it is re-enabled via ResumeJob. The state of the job is stored--- in state; if paused it will be set to Job.State.PAUSED. A job must be in--- Job.State.ENABLED to be paused.------ /See:/ 'projectsLocationsJobsPause' smart constructor.-data ProjectsLocationsJobsPause =- ProjectsLocationsJobsPause'- { _proXgafv :: !(Maybe Xgafv)- , _proUploadProtocol :: !(Maybe Text)- , _proAccessToken :: !(Maybe Text)- , _proUploadType :: !(Maybe Text)- , _proPayload :: !PauseJobRequest- , _proName :: !Text- , _proCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsPause' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'proXgafv'------ * 'proUploadProtocol'------ * 'proAccessToken'------ * 'proUploadType'------ * 'proPayload'------ * 'proName'------ * 'proCallback'-projectsLocationsJobsPause- :: PauseJobRequest -- ^ 'proPayload'- -> Text -- ^ 'proName'- -> ProjectsLocationsJobsPause-projectsLocationsJobsPause pProPayload_ pProName_ =- ProjectsLocationsJobsPause'- { _proXgafv = Nothing- , _proUploadProtocol = Nothing- , _proAccessToken = Nothing- , _proUploadType = Nothing- , _proPayload = pProPayload_- , _proName = pProName_- , _proCallback = Nothing- }----- | V1 error format.-proXgafv :: Lens' ProjectsLocationsJobsPause (Maybe Xgafv)-proXgafv = lens _proXgafv (\ s a -> s{_proXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-proUploadProtocol :: Lens' ProjectsLocationsJobsPause (Maybe Text)-proUploadProtocol- = lens _proUploadProtocol- (\ s a -> s{_proUploadProtocol = a})---- | OAuth access token.-proAccessToken :: Lens' ProjectsLocationsJobsPause (Maybe Text)-proAccessToken- = lens _proAccessToken- (\ s a -> s{_proAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-proUploadType :: Lens' ProjectsLocationsJobsPause (Maybe Text)-proUploadType- = lens _proUploadType- (\ s a -> s{_proUploadType = a})---- | Multipart request metadata.-proPayload :: Lens' ProjectsLocationsJobsPause PauseJobRequest-proPayload- = lens _proPayload (\ s a -> s{_proPayload = a})---- | Required. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`.-proName :: Lens' ProjectsLocationsJobsPause Text-proName = lens _proName (\ s a -> s{_proName = a})---- | JSONP-proCallback :: Lens' ProjectsLocationsJobsPause (Maybe Text)-proCallback- = lens _proCallback (\ s a -> s{_proCallback = a})--instance GoogleRequest ProjectsLocationsJobsPause- where- type Rs ProjectsLocationsJobsPause = Job- type Scopes ProjectsLocationsJobsPause =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsPause'{..}- = go _proName _proXgafv _proUploadProtocol- _proAccessToken- _proUploadType- _proCallback- (Just AltJSON)- _proPayload- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsPauseResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Resume.hs
@@ -1,170 +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.CloudScheduler.Projects.Locations.Jobs.Resume--- 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)------ Resume a job. This method reenables a job after it has been--- Job.State.PAUSED. The state of a job is stored in Job.state; after--- calling this method it will be set to Job.State.ENABLED. A job must be--- in Job.State.PAUSED to be resumed.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.resume@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume- (- -- * REST Resource- ProjectsLocationsJobsResumeResource-- -- * Creating a Request- , projectsLocationsJobsResume- , ProjectsLocationsJobsResume-- -- * Request Lenses- , pljrXgafv- , pljrUploadProtocol- , pljrAccessToken- , pljrUploadType- , pljrPayload- , pljrName- , pljrCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.resume@ method which the--- 'ProjectsLocationsJobsResume' request conforms to.-type ProjectsLocationsJobsResumeResource =- "v1" :>- CaptureMode "name" "resume" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ResumeJobRequest :> Post '[JSON] Job---- | Resume a job. This method reenables a job after it has been--- Job.State.PAUSED. The state of a job is stored in Job.state; after--- calling this method it will be set to Job.State.ENABLED. A job must be--- in Job.State.PAUSED to be resumed.------ /See:/ 'projectsLocationsJobsResume' smart constructor.-data ProjectsLocationsJobsResume =- ProjectsLocationsJobsResume'- { _pljrXgafv :: !(Maybe Xgafv)- , _pljrUploadProtocol :: !(Maybe Text)- , _pljrAccessToken :: !(Maybe Text)- , _pljrUploadType :: !(Maybe Text)- , _pljrPayload :: !ResumeJobRequest- , _pljrName :: !Text- , _pljrCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsResume' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pljrXgafv'------ * 'pljrUploadProtocol'------ * 'pljrAccessToken'------ * 'pljrUploadType'------ * 'pljrPayload'------ * 'pljrName'------ * 'pljrCallback'-projectsLocationsJobsResume- :: ResumeJobRequest -- ^ 'pljrPayload'- -> Text -- ^ 'pljrName'- -> ProjectsLocationsJobsResume-projectsLocationsJobsResume pPljrPayload_ pPljrName_ =- ProjectsLocationsJobsResume'- { _pljrXgafv = Nothing- , _pljrUploadProtocol = Nothing- , _pljrAccessToken = Nothing- , _pljrUploadType = Nothing- , _pljrPayload = pPljrPayload_- , _pljrName = pPljrName_- , _pljrCallback = Nothing- }----- | V1 error format.-pljrXgafv :: Lens' ProjectsLocationsJobsResume (Maybe Xgafv)-pljrXgafv- = lens _pljrXgafv (\ s a -> s{_pljrXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pljrUploadProtocol :: Lens' ProjectsLocationsJobsResume (Maybe Text)-pljrUploadProtocol- = lens _pljrUploadProtocol- (\ s a -> s{_pljrUploadProtocol = a})---- | OAuth access token.-pljrAccessToken :: Lens' ProjectsLocationsJobsResume (Maybe Text)-pljrAccessToken- = lens _pljrAccessToken- (\ s a -> s{_pljrAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pljrUploadType :: Lens' ProjectsLocationsJobsResume (Maybe Text)-pljrUploadType- = lens _pljrUploadType- (\ s a -> s{_pljrUploadType = a})---- | Multipart request metadata.-pljrPayload :: Lens' ProjectsLocationsJobsResume ResumeJobRequest-pljrPayload- = lens _pljrPayload (\ s a -> s{_pljrPayload = a})---- | Required. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`.-pljrName :: Lens' ProjectsLocationsJobsResume Text-pljrName = lens _pljrName (\ s a -> s{_pljrName = a})---- | JSONP-pljrCallback :: Lens' ProjectsLocationsJobsResume (Maybe Text)-pljrCallback- = lens _pljrCallback (\ s a -> s{_pljrCallback = a})--instance GoogleRequest ProjectsLocationsJobsResume- where- type Rs ProjectsLocationsJobsResume = Job- type Scopes ProjectsLocationsJobsResume =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsResume'{..}- = go _pljrName _pljrXgafv _pljrUploadProtocol- _pljrAccessToken- _pljrUploadType- _pljrCallback- (Just AltJSON)- _pljrPayload- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsResumeResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/Projects/Locations/Jobs/Run.hs
@@ -1,160 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Run--- 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)------ Forces a job to run now. When this method is called, Cloud Scheduler--- will dispatch the job, even if the job is already running.------ /See:/ <https://cloud.google.com/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.jobs.run@.-module Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Run- (- -- * REST Resource- ProjectsLocationsJobsRunResource-- -- * Creating a Request- , projectsLocationsJobsRun- , ProjectsLocationsJobsRun-- -- * Request Lenses- , pXgafv- , pUploadProtocol- , pAccessToken- , pUploadType- , pPayload- , pName- , pCallback- ) where--import Network.Google.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.projects.locations.jobs.run@ method which the--- 'ProjectsLocationsJobsRun' request conforms to.-type ProjectsLocationsJobsRunResource =- "v1" :>- CaptureMode "name" "run" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] RunJobRequest :> Post '[JSON] Job---- | Forces a job to run now. When this method is called, Cloud Scheduler--- will dispatch the job, even if the job is already running.------ /See:/ 'projectsLocationsJobsRun' smart constructor.-data ProjectsLocationsJobsRun =- ProjectsLocationsJobsRun'- { _pXgafv :: !(Maybe Xgafv)- , _pUploadProtocol :: !(Maybe Text)- , _pAccessToken :: !(Maybe Text)- , _pUploadType :: !(Maybe Text)- , _pPayload :: !RunJobRequest- , _pName :: !Text- , _pCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProjectsLocationsJobsRun' 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'-projectsLocationsJobsRun- :: RunJobRequest -- ^ 'pPayload'- -> Text -- ^ 'pName'- -> ProjectsLocationsJobsRun-projectsLocationsJobsRun pPPayload_ pPName_ =- ProjectsLocationsJobsRun'- { _pXgafv = Nothing- , _pUploadProtocol = Nothing- , _pAccessToken = Nothing- , _pUploadType = Nothing- , _pPayload = pPPayload_- , _pName = pPName_- , _pCallback = Nothing- }----- | V1 error format.-pXgafv :: Lens' ProjectsLocationsJobsRun (Maybe Xgafv)-pXgafv = lens _pXgafv (\ s a -> s{_pXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-pUploadProtocol :: Lens' ProjectsLocationsJobsRun (Maybe Text)-pUploadProtocol- = lens _pUploadProtocol- (\ s a -> s{_pUploadProtocol = a})---- | OAuth access token.-pAccessToken :: Lens' ProjectsLocationsJobsRun (Maybe Text)-pAccessToken- = lens _pAccessToken (\ s a -> s{_pAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-pUploadType :: Lens' ProjectsLocationsJobsRun (Maybe Text)-pUploadType- = lens _pUploadType (\ s a -> s{_pUploadType = a})---- | Multipart request metadata.-pPayload :: Lens' ProjectsLocationsJobsRun RunJobRequest-pPayload = lens _pPayload (\ s a -> s{_pPayload = a})---- | Required. The job name. For example:--- \`projects\/PROJECT_ID\/locations\/LOCATION_ID\/jobs\/JOB_ID\`.-pName :: Lens' ProjectsLocationsJobsRun Text-pName = lens _pName (\ s a -> s{_pName = a})---- | JSONP-pCallback :: Lens' ProjectsLocationsJobsRun (Maybe Text)-pCallback- = lens _pCallback (\ s a -> s{_pCallback = a})--instance GoogleRequest ProjectsLocationsJobsRun where- type Rs ProjectsLocationsJobsRun = Job- type Scopes ProjectsLocationsJobsRun =- '["https://www.googleapis.com/auth/cloud-platform"]- requestClient ProjectsLocationsJobsRun'{..}- = go _pName _pXgafv _pUploadProtocol _pAccessToken- _pUploadType- _pCallback- (Just AltJSON)- _pPayload- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsJobsRunResource)- mempty
− gen/Network/Google/Resource/CloudScheduler/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.CloudScheduler.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/scheduler/ Cloud Scheduler API Reference> for @cloudscheduler.projects.locations.list@.-module Network.Google.Resource.CloudScheduler.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.CloudScheduler.Types-import Network.Google.Prelude---- | A resource alias for @cloudscheduler.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)- cloudSchedulerService- where go- = buildClient- (Proxy :: Proxy ProjectsLocationsListResource)- mempty
gogol-cloudscheduler.cabal view
@@ -1,55 +1,74 @@-name: gogol-cloudscheduler-version: 0.5.0-synopsis: Google Cloud Scheduler 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-cloudscheduler+version: 1.0.0+synopsis: Google Cloud Scheduler 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:- Creates and manages jobs run on a regular recurring schedule.- .- /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.+ Creates and manages jobs run on a regular recurring schedule.+ .+ /Warning:/ This is an experimental prototype/preview release which is still+ under exploratory development and not intended for public use, caveat emptor!+ .+ This library is compatible with version @v1@+ of the API. source-repository head- type: git- location: git://github.com/brendanhay/gogol.git+ type: git+ location: git://github.com/brendanhay/gogol.git+ subdir: gogol-cloudscheduler +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.CloudScheduler- , Network.Google.CloudScheduler.Types- , Network.Google.Resource.CloudScheduler.Projects.Locations.Get- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Create- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Delete- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Get- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.List- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Patch- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Pause- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Resume- , Network.Google.Resource.CloudScheduler.Projects.Locations.Jobs.Run- , Network.Google.Resource.CloudScheduler.Projects.Locations.List+ exposed-modules:+ Gogol.CloudScheduler+ Gogol.CloudScheduler.Operations.Cancel+ Gogol.CloudScheduler.Operations.Delete+ Gogol.CloudScheduler.Operations.Get+ Gogol.CloudScheduler.Operations.List+ Gogol.CloudScheduler.Projects.Locations.Get+ Gogol.CloudScheduler.Projects.Locations.Jobs.Create+ Gogol.CloudScheduler.Projects.Locations.Jobs.Delete+ Gogol.CloudScheduler.Projects.Locations.Jobs.Get+ Gogol.CloudScheduler.Projects.Locations.Jobs.List+ Gogol.CloudScheduler.Projects.Locations.Jobs.Patch+ Gogol.CloudScheduler.Projects.Locations.Jobs.Pause+ Gogol.CloudScheduler.Projects.Locations.Jobs.Resume+ Gogol.CloudScheduler.Projects.Locations.Jobs.Run+ Gogol.CloudScheduler.Projects.Locations.List+ Gogol.CloudScheduler.Types - other-modules:- Network.Google.CloudScheduler.Types.Product- , Network.Google.CloudScheduler.Types.Sum+ other-modules:+ Gogol.CloudScheduler.Internal.Product+ Gogol.CloudScheduler.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0