on develop help sign in
Regenerating gogol-dataflow from updated service defintions
commit5d97ee3a9c059f21449093728699946b950d47e0 authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent3abe226
19 files changed+2695−204
gogol-dataflow/gen/Network/Google/Dataflow.hs+89−2 gogol-dataflow/gen/Network/Google/Dataflow/Types.hs+47 gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs+550−122 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Create.hs+27−15 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs+25−13 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/GetMetrics.hs+20−8 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs+28−15 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Messages/List.hs+24−12 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Update.hs+24−12 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs+226 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs+212 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs+221 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs+243 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs+280 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs+215 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs+223 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs+229 gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Templates/Create.hs+3−3 gogol-dataflow/gogol-dataflow.cabal+9−2
gogol-dataflow/gen/Network/Google/Dataflow.hs+89−2
@@ -13,8 +13,7 @@
1313-- Stability : auto-generated
1414-- Portability : non-portable (GHC extensions)
1515--
16−-- Develops and executes data processing patterns like ETL, batch
17−-- computation, and continuous computation.
16+-- Manages Google Cloud Dataflow projects on Google Cloud Platform.
1817--
1918-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference>
2019module Network.Google.Dataflow
@@ -61,6 +60,30 @@ module Network.Google.Dataflow
6160 -- ** dataflow.projects.jobs.workItems.reportStatus
6261 , module Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
6362
63+ -- ** dataflow.projects.locations.jobs.create
64+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
65+
66+ -- ** dataflow.projects.locations.jobs.get
67+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
68+
69+ -- ** dataflow.projects.locations.jobs.getMetrics
70+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
71+
72+ -- ** dataflow.projects.locations.jobs.list
73+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
74+
75+ -- ** dataflow.projects.locations.jobs.messages.list
76+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
77+
78+ -- ** dataflow.projects.locations.jobs.update
79+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
80+
81+ -- ** dataflow.projects.locations.jobs.workItems.lease
82+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.Lease
83+
84+ -- ** dataflow.projects.locations.jobs.workItems.reportStatus
85+ , module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.ReportStatus
86+
6487 -- ** dataflow.projects.templates.create
6588 , module Network.Google.Resource.Dataflow.Projects.Templates.Create
6689
@@ -92,9 +115,16 @@ module Network.Google.Dataflow
92115 , ssrShards
93116 , ssrOutcome
94117
118+ -- ** ResourceUtilizationReportMetricsItem
119+ , ResourceUtilizationReportMetricsItem
120+ , resourceUtilizationReportMetricsItem
121+ , rurmiAddtional
122+
95123 -- ** CreateJobFromTemplateRequest
96124 , CreateJobFromTemplateRequest
97125 , createJobFromTemplateRequest
126+ , cjftrEnvironment
127+ , cjftrJobName
98128 , cjftrGcsPath
99129 , cjftrParameters
100130
@@ -179,6 +209,7 @@ module Network.Google.Dataflow
179209 , ReportWorkItemStatusRequest
180210 , reportWorkItemStatusRequest
181211 , rwisrCurrentWorkerTime
212+ , rwisrLocation
182213 , rwisrWorkItemStatuses
183214 , rwisrWorkerId
184215
@@ -301,6 +332,7 @@ module Network.Google.Dataflow
301332 , cuInternal
302333 , cuStringList
303334 , cuShortId
335+ , cuDistribution
304336 , cuCumulative
305337 , cuStructuredNameAndMetadata
306338 , cuFloatingPointMean
@@ -435,6 +467,7 @@ module Network.Google.Dataflow
435467 , leaseWorkItemRequest
436468 , lwirWorkItemTypes
437469 , lwirCurrentWorkerTime
470+ , lwirLocation
438471 , lwirWorkerCapabilities
439472 , lwirRequestedLeaseDuration
440473 , lwirWorkerId
@@ -519,10 +552,21 @@ module Network.Google.Dataflow
519552 , ddaVMInstance
520553 , ddaDataDisks
521554
555+ -- ** ResourceUtilizationReport
556+ , ResourceUtilizationReport
557+ , resourceUtilizationReport
558+ , rurMetrics
559+
560+ -- ** FailedLocation
561+ , FailedLocation
562+ , failedLocation
563+ , flName
564+
522565 -- ** WorkerMessageResponse
523566 , WorkerMessageResponse
524567 , workerMessageResponse
525568 , wmrWorkerHealthReportResponse
569+ , wmrWorkerMetricsResponse
526570
527571 -- ** CreateJobFromTemplateRequestParameters
528572 , CreateJobFromTemplateRequestParameters
@@ -605,6 +649,15 @@ module Network.Google.Dataflow
605649 , workerPoolPoolArgs
606650 , wppaAddtional
607651
652+ -- ** RuntimeEnvironment
653+ , RuntimeEnvironment
654+ , runtimeEnvironment
655+ , reZone
656+ , reBypassTempDirValidation
657+ , reServiceAccountEmail
658+ , reMaxWorkers
659+ , reTempLocation
660+
608661 -- ** CounterMetadata
609662 , CounterMetadata
610663 , counterMetadata
@@ -676,6 +729,7 @@ module Network.Google.Dataflow
676729 , Job
677730 , job
678731 , jRequestedState
732+ , jLocation
679733 , jEnvironment
680734 , jClientRequestId
681735 , jCurrentState
@@ -773,6 +827,10 @@ module Network.Google.Dataflow
773827 , sfPrimary
774828 , sfResidualSource
775829
830+ -- ** ResourceUtilizationReportResponse
831+ , ResourceUtilizationReportResponse
832+ , resourceUtilizationReportResponse
833+
776834 -- ** StreamingComputationRanges
777835 , StreamingComputationRanges
778836 , streamingComputationRanges
@@ -783,6 +841,7 @@ module Network.Google.Dataflow
783841 , ListJobsResponse
784842 , listJobsResponse
785843 , ljrNextPageToken
844+ , ljrFailedLocation
786845 , ljrJobs
787846
788847 -- ** Source
@@ -807,6 +866,7 @@ module Network.Google.Dataflow
807866 , wmWorkerHealthReport
808867 , wmTime
809868 , wmWorkerMessageCode
869+ , wmWorkerMetrics
810870 , wmLabels
811871
812872 -- ** KeyRangeLocation
@@ -847,6 +907,15 @@ module Network.Google.Dataflow
847907 , customSourceLocation
848908 , cslStateful
849909
910+ -- ** DistributionUpdate
911+ , DistributionUpdate
912+ , distributionUpdate
913+ , duMax
914+ , duCount
915+ , duMin
916+ , duSumOfSquares
917+ , duSum
918+
850919 -- ** SourceBaseSpecsItem
851920 , SourceBaseSpecsItem
852921 , sourceBaseSpecsItem
@@ -943,6 +1012,7 @@ module Network.Google.Dataflow
9431012 , plTimestampLabel
9441013 , plIdLabel
9451014 , plTopic
1015+ , plWithAttributes
9461016 , plSubscription
9471017
9481018 -- ** FloatingPointList
@@ -1005,6 +1075,14 @@ import Network.Google.Resource.Dataflow.Projects.Jobs.Messages.List
10051075import Network.Google.Resource.Dataflow.Projects.Jobs.Update
10061076import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
10071077import Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
1078+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
1079+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
1080+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
1081+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
1082+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
1083+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
1084+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.Lease
1085+import Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.ReportStatus
10081086import Network.Google.Resource.Dataflow.Projects.Templates.Create
10091087import Network.Google.Resource.Dataflow.Projects.WorkerMessages
10101088
@@ -1025,4 +1103,13 @@ type DataflowAPI =
10251103 :<|> ProjectsJobsCreateResource
10261104 :<|> ProjectsJobsUpdateResource
10271105 :<|> ProjectsJobsGetMetricsResource
1106+ :<|> ProjectsLocationsJobsWorkItemsLeaseResource
1107+ :<|>
1108+ ProjectsLocationsJobsWorkItemsReportStatusResource
1109+ :<|> ProjectsLocationsJobsMessagesListResource
1110+ :<|> ProjectsLocationsJobsListResource
1111+ :<|> ProjectsLocationsJobsGetResource
1112+ :<|> ProjectsLocationsJobsCreateResource
1113+ :<|> ProjectsLocationsJobsUpdateResource
1114+ :<|> ProjectsLocationsJobsGetMetricsResource
10281115 :<|> ProjectsWorkerMessagesResource
gogol-dataflow/gen/Network/Google/Dataflow/Types.hs+47
@@ -46,9 +46,16 @@ module Network.Google.Dataflow.Types
4646 , ssrShards
4747 , ssrOutcome
4848
49+ -- * ResourceUtilizationReportMetricsItem
50+ , ResourceUtilizationReportMetricsItem
51+ , resourceUtilizationReportMetricsItem
52+ , rurmiAddtional
53+
4954 -- * CreateJobFromTemplateRequest
5055 , CreateJobFromTemplateRequest
5156 , createJobFromTemplateRequest
57+ , cjftrEnvironment
58+ , cjftrJobName
5259 , cjftrGcsPath
5360 , cjftrParameters
5461
@@ -133,6 +140,7 @@ module Network.Google.Dataflow.Types
133140 , ReportWorkItemStatusRequest
134141 , reportWorkItemStatusRequest
135142 , rwisrCurrentWorkerTime
143+ , rwisrLocation
136144 , rwisrWorkItemStatuses
137145 , rwisrWorkerId
138146
@@ -255,6 +263,7 @@ module Network.Google.Dataflow.Types
255263 , cuInternal
256264 , cuStringList
257265 , cuShortId
266+ , cuDistribution
258267 , cuCumulative
259268 , cuStructuredNameAndMetadata
260269 , cuFloatingPointMean
@@ -389,6 +398,7 @@ module Network.Google.Dataflow.Types
389398 , leaseWorkItemRequest
390399 , lwirWorkItemTypes
391400 , lwirCurrentWorkerTime
401+ , lwirLocation
392402 , lwirWorkerCapabilities
393403 , lwirRequestedLeaseDuration
394404 , lwirWorkerId
@@ -473,10 +483,21 @@ module Network.Google.Dataflow.Types
473483 , ddaVMInstance
474484 , ddaDataDisks
475485
486+ -- * ResourceUtilizationReport
487+ , ResourceUtilizationReport
488+ , resourceUtilizationReport
489+ , rurMetrics
490+
491+ -- * FailedLocation
492+ , FailedLocation
493+ , failedLocation
494+ , flName
495+
476496 -- * WorkerMessageResponse
477497 , WorkerMessageResponse
478498 , workerMessageResponse
479499 , wmrWorkerHealthReportResponse
500+ , wmrWorkerMetricsResponse
480501
481502 -- * CreateJobFromTemplateRequestParameters
482503 , CreateJobFromTemplateRequestParameters
@@ -559,6 +580,15 @@ module Network.Google.Dataflow.Types
559580 , workerPoolPoolArgs
560581 , wppaAddtional
561582
583+ -- * RuntimeEnvironment
584+ , RuntimeEnvironment
585+ , runtimeEnvironment
586+ , reZone
587+ , reBypassTempDirValidation
588+ , reServiceAccountEmail
589+ , reMaxWorkers
590+ , reTempLocation
591+
562592 -- * CounterMetadata
563593 , CounterMetadata
564594 , counterMetadata
@@ -630,6 +660,7 @@ module Network.Google.Dataflow.Types
630660 , Job
631661 , job
632662 , jRequestedState
663+ , jLocation
633664 , jEnvironment
634665 , jClientRequestId
635666 , jCurrentState
@@ -727,6 +758,10 @@ module Network.Google.Dataflow.Types
727758 , sfPrimary
728759 , sfResidualSource
729760
761+ -- * ResourceUtilizationReportResponse
762+ , ResourceUtilizationReportResponse
763+ , resourceUtilizationReportResponse
764+
730765 -- * StreamingComputationRanges
731766 , StreamingComputationRanges
732767 , streamingComputationRanges
@@ -737,6 +772,7 @@ module Network.Google.Dataflow.Types
737772 , ListJobsResponse
738773 , listJobsResponse
739774 , ljrNextPageToken
775+ , ljrFailedLocation
740776 , ljrJobs
741777
742778 -- * Source
@@ -761,6 +797,7 @@ module Network.Google.Dataflow.Types
761797 , wmWorkerHealthReport
762798 , wmTime
763799 , wmWorkerMessageCode
800+ , wmWorkerMetrics
764801 , wmLabels
765802
766803 -- * KeyRangeLocation
@@ -801,6 +838,15 @@ module Network.Google.Dataflow.Types
801838 , customSourceLocation
802839 , cslStateful
803840
841+ -- * DistributionUpdate
842+ , DistributionUpdate
843+ , distributionUpdate
844+ , duMax
845+ , duCount
846+ , duMin
847+ , duSumOfSquares
848+ , duSum
849+
804850 -- * SourceBaseSpecsItem
805851 , SourceBaseSpecsItem
806852 , sourceBaseSpecsItem
@@ -897,6 +943,7 @@ module Network.Google.Dataflow.Types
897943 , plTimestampLabel
898944 , plIdLabel
899945 , plTopic
946+ , plWithAttributes
900947 , plSubscription
901948
902949 -- * FloatingPointList
gogol-dataflow/gen/Network/Google/Dataflow/Types/Product.hs+550−122
@@ -239,18 +239,62 @@ instance ToJSON SourceSplitResponse where
239239 ("shards" .=) <$> _ssrShards,
240240 ("outcome" .=) <$> _ssrOutcome])
241241
242−-- | Request to create a Dataflow job.
242+--
243+-- /See:/ 'resourceUtilizationReportMetricsItem' smart constructor.
244+newtype ResourceUtilizationReportMetricsItem = ResourceUtilizationReportMetricsItem'
245+ { _rurmiAddtional :: HashMap Text JSONValue
246+ } deriving (Eq,Show,Data,Typeable,Generic)
247+
248+-- | Creates a value of 'ResourceUtilizationReportMetricsItem' with the minimum fields required to make a request.
249+--
250+-- Use one of the following lenses to modify other fields as desired:
251+--
252+-- * 'rurmiAddtional'
253+resourceUtilizationReportMetricsItem
254+ :: HashMap Text JSONValue -- ^ 'rurmiAddtional'
255+ -> ResourceUtilizationReportMetricsItem
256+resourceUtilizationReportMetricsItem pRurmiAddtional_ =
257+ ResourceUtilizationReportMetricsItem'
258+ { _rurmiAddtional = _Coerce # pRurmiAddtional_
259+ }
260+
261+-- | Properties of the object.
262+rurmiAddtional :: Lens' ResourceUtilizationReportMetricsItem (HashMap Text JSONValue)
263+rurmiAddtional
264+ = lens _rurmiAddtional
265+ (\ s a -> s{_rurmiAddtional = a})
266+ . _Coerce
267+
268+instance FromJSON
269+ ResourceUtilizationReportMetricsItem where
270+ parseJSON
271+ = withObject "ResourceUtilizationReportMetricsItem"
272+ (\ o ->
273+ ResourceUtilizationReportMetricsItem' <$>
274+ (parseJSONObject o))
275+
276+instance ToJSON ResourceUtilizationReportMetricsItem
277+ where
278+ toJSON = toJSON . _rurmiAddtional
279+
280+-- | A request to create a Cloud Dataflow job from a template.
243281--
244282-- /See:/ 'createJobFromTemplateRequest' smart constructor.
245283data CreateJobFromTemplateRequest = CreateJobFromTemplateRequest'
246− { _cjftrGcsPath :: !(Maybe Text)
247− , _cjftrParameters :: !(Maybe CreateJobFromTemplateRequestParameters)
284+ { _cjftrEnvironment :: !(Maybe RuntimeEnvironment)
285+ , _cjftrJobName :: !(Maybe Text)
286+ , _cjftrGcsPath :: !(Maybe Text)
287+ , _cjftrParameters :: !(Maybe CreateJobFromTemplateRequestParameters)
248288 } deriving (Eq,Show,Data,Typeable,Generic)
249289
250290-- | Creates a value of 'CreateJobFromTemplateRequest' with the minimum fields required to make a request.
251291--
252292-- Use one of the following lenses to modify other fields as desired:
253293--
294+-- * 'cjftrEnvironment'
295+--
296+-- * 'cjftrJobName'
297+--
254298-- * 'cjftrGcsPath'
255299--
256300-- * 'cjftrParameters'
@@ -258,16 +302,30 @@ createJobFromTemplateRequest
258302 :: CreateJobFromTemplateRequest
259303createJobFromTemplateRequest =
260304 CreateJobFromTemplateRequest'
261− { _cjftrGcsPath = Nothing
305+ { _cjftrEnvironment = Nothing
306+ , _cjftrJobName = Nothing
307+ , _cjftrGcsPath = Nothing
262308 , _cjftrParameters = Nothing
263309 }
264310
265−-- | A path to the serialized JSON representation of the job.
311+-- | The runtime environment for the job.
312+cjftrEnvironment :: Lens' CreateJobFromTemplateRequest (Maybe RuntimeEnvironment)
313+cjftrEnvironment
314+ = lens _cjftrEnvironment
315+ (\ s a -> s{_cjftrEnvironment = a})
316+
317+-- | Required. The job name to use for the created job.
318+cjftrJobName :: Lens' CreateJobFromTemplateRequest (Maybe Text)
319+cjftrJobName
320+ = lens _cjftrJobName (\ s a -> s{_cjftrJobName = a})
321+
322+-- | Required. A Cloud Storage path to the template from which to create the
323+-- job. Must be a valid Cloud Storage URL, beginning with \`gs:\/\/\`.
266324cjftrGcsPath :: Lens' CreateJobFromTemplateRequest (Maybe Text)
267325cjftrGcsPath
268326 = lens _cjftrGcsPath (\ s a -> s{_cjftrGcsPath = a})
269327
270−-- | Dynamic parameterization of the job\'s runtime environment.
328+-- | The runtime parameters to pass to the job.
271329cjftrParameters :: Lens' CreateJobFromTemplateRequest (Maybe CreateJobFromTemplateRequestParameters)
272330cjftrParameters
273331 = lens _cjftrParameters
@@ -278,13 +336,17 @@ instance FromJSON CreateJobFromTemplateRequest where
278336 = withObject "CreateJobFromTemplateRequest"
279337 (\ o ->
280338 CreateJobFromTemplateRequest' <$>
281− (o .:? "gcsPath") <*> (o .:? "parameters"))
339+ (o .:? "environment") <*> (o .:? "jobName") <*>
340+ (o .:? "gcsPath")
341+ <*> (o .:? "parameters"))
282342
283343instance ToJSON CreateJobFromTemplateRequest where
284344 toJSON CreateJobFromTemplateRequest'{..}
285345 = object
286346 (catMaybes
287− [("gcsPath" .=) <$> _cjftrGcsPath,
347+ [("environment" .=) <$> _cjftrEnvironment,
348+ ("jobName" .=) <$> _cjftrJobName,
349+ ("gcsPath" .=) <$> _cjftrGcsPath,
288350 ("parameters" .=) <$> _cjftrParameters])
289351
290352-- | The \`Status\` type defines a logical error model that is suitable for
@@ -1031,6 +1093,7 @@ instance ToJSON InstructionOutput where
10311093-- /See:/ 'reportWorkItemStatusRequest' smart constructor.
10321094data ReportWorkItemStatusRequest = ReportWorkItemStatusRequest'
10331095 { _rwisrCurrentWorkerTime :: !(Maybe Text)
1096+ , _rwisrLocation :: !(Maybe Text)
10341097 , _rwisrWorkItemStatuses :: !(Maybe [WorkItemStatus])
10351098 , _rwisrWorkerId :: !(Maybe Text)
10361099 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -1041,6 +1104,8 @@ data ReportWorkItemStatusRequest = ReportWorkItemStatusRequest'
10411104--
10421105-- * 'rwisrCurrentWorkerTime'
10431106--
1107+-- * 'rwisrLocation'
1108+--
10441109-- * 'rwisrWorkItemStatuses'
10451110--
10461111-- * 'rwisrWorkerId'
@@ -1049,6 +1114,7 @@ reportWorkItemStatusRequest
10491114reportWorkItemStatusRequest =
10501115 ReportWorkItemStatusRequest'
10511116 { _rwisrCurrentWorkerTime = Nothing
1117+ , _rwisrLocation = Nothing
10521118 , _rwisrWorkItemStatuses = Nothing
10531119 , _rwisrWorkerId = Nothing
10541120 }
@@ -1059,6 +1125,12 @@ rwisrCurrentWorkerTime
10591125 = lens _rwisrCurrentWorkerTime
10601126 (\ s a -> s{_rwisrCurrentWorkerTime = a})
10611127
1128+-- | The location which contains the WorkItem\'s job.
1129+rwisrLocation :: Lens' ReportWorkItemStatusRequest (Maybe Text)
1130+rwisrLocation
1131+ = lens _rwisrLocation
1132+ (\ s a -> s{_rwisrLocation = a})
1133+
10621134-- | The order is unimportant, except that the order of the
10631135-- WorkItemServiceState messages in the ReportWorkItemStatusResponse
10641136-- corresponds to the order of WorkItemStatus messages here.
@@ -1083,8 +1155,8 @@ instance FromJSON ReportWorkItemStatusRequest where
10831155 = withObject "ReportWorkItemStatusRequest"
10841156 (\ o ->
10851157 ReportWorkItemStatusRequest' <$>
1086− (o .:? "currentWorkerTime") <*>
1087− (o .:? "workItemStatuses" .!= mempty)
1158+ (o .:? "currentWorkerTime") <*> (o .:? "location")
1159+ <*> (o .:? "workItemStatuses" .!= mempty)
10881160 <*> (o .:? "workerId"))
10891161
10901162instance ToJSON ReportWorkItemStatusRequest where
@@ -1093,6 +1165,7 @@ instance ToJSON ReportWorkItemStatusRequest where
10931165 (catMaybes
10941166 [("currentWorkerTime" .=) <$>
10951167 _rwisrCurrentWorkerTime,
1168+ ("location" .=) <$> _rwisrLocation,
10961169 ("workItemStatuses" .=) <$> _rwisrWorkItemStatuses,
10971170 ("workerId" .=) <$> _rwisrWorkerId])
10981171
@@ -1616,12 +1689,12 @@ dSizeGb
16161689-- resource name typically ending in \"pd-standard\". If SSD persistent
16171690-- disks are available, the resource name typically ends with \"pd-ssd\".
16181691-- The actual valid values are defined the Google Compute Engine API, not
1619−-- by the Dataflow API; consult the Google Compute Engine documentation for
1620−-- more information about determining the set of available disk types for a
1621−-- particular project and zone. Google Compute Engine Disk types are local
1622−-- to a particular project in a particular zone, and so the resource name
1623−-- will typically look something like this:
1624−-- compute.googleapis.com\/projects\/ \/zones\/\/diskTypes\/pd-standard
1692+-- by the Cloud Dataflow API; consult the Google Compute Engine
1693+-- documentation for more information about determining the set of
1694+-- available disk types for a particular project and zone. Google Compute
1695+-- Engine Disk types are local to a particular project in a particular
1696+-- zone, and so the resource name will typically look something like this:
1697+-- compute.googleapis.com\/projects\/project-id\/zones\/zone\/diskTypes\/pd-standard
16251698dDiskType :: Lens' Disk (Maybe Text)
16261699dDiskType
16271700 = lens _dDiskType (\ s a -> s{_dDiskType = a})
@@ -1890,8 +1963,8 @@ eExperiments
18901963 . _Default
18911964 . _Coerce
18921965
1893−-- | Worker pools. At least one \"harness\" worker pool must be specified in
1894−-- order for the job to have workers.
1966+-- | The worker pools. At least one \"harness\" worker pool must be specified
1967+-- in order for the job to have workers.
18951968eWorkerPools :: Lens' Environment [WorkerPool]
18961969eWorkerPools
18971970 = lens _eWorkerPools (\ s a -> s{_eWorkerPools = a})
@@ -1942,10 +2015,10 @@ eUserAgent :: Lens' Environment (Maybe EnvironmentUserAgent)
19422015eUserAgent
19432016 = lens _eUserAgent (\ s a -> s{_eUserAgent = a})
19442017
1945−-- | The Dataflow SDK pipeline options specified by the user. These options
1946−-- are passed through the service and are used to recreate the SDK pipeline
1947−-- options on the worker in a language agnostic and platform independent
1948−-- way.
2018+-- | The Cloud Dataflow SDK pipeline options specified by the user. These
2019+-- options are passed through the service and are used to recreate the SDK
2020+-- pipeline options on the worker in a language agnostic and platform
2021+-- independent way.
19492022eSdkPipelineOptions :: Lens' Environment (Maybe EnvironmentSdkPipelineOptions)
19502023eSdkPipelineOptions
19512024 = lens _eSdkPipelineOptions
@@ -2082,6 +2155,7 @@ data CounterUpdate = CounterUpdate'
20822155 , _cuInternal :: !(Maybe JSONValue)
20832156 , _cuStringList :: !(Maybe StringList)
20842157 , _cuShortId :: !(Maybe (Textual Int64))
2158+ , _cuDistribution :: !(Maybe DistributionUpdate)
20852159 , _cuCumulative :: !(Maybe Bool)
20862160 , _cuStructuredNameAndMetadata :: !(Maybe CounterStructuredNameAndMetadata)
20872161 , _cuFloatingPointMean :: !(Maybe FloatingPointMean)
@@ -2107,6 +2181,8 @@ data CounterUpdate = CounterUpdate'
21072181--
21082182-- * 'cuShortId'
21092183--
2184+-- * 'cuDistribution'
2185+--
21102186-- * 'cuCumulative'
21112187--
21122188-- * 'cuStructuredNameAndMetadata'
@@ -2130,6 +2206,7 @@ counterUpdate =
21302206 , _cuInternal = Nothing
21312207 , _cuStringList = Nothing
21322208 , _cuShortId = Nothing
2209+ , _cuDistribution = Nothing
21332210 , _cuCumulative = Nothing
21342211 , _cuStructuredNameAndMetadata = Nothing
21352212 , _cuFloatingPointMean = Nothing
@@ -2175,6 +2252,12 @@ cuShortId
21752252 = lens _cuShortId (\ s a -> s{_cuShortId = a}) .
21762253 mapping _Coerce
21772254
2255+-- | Distribution data
2256+cuDistribution :: Lens' CounterUpdate (Maybe DistributionUpdate)
2257+cuDistribution
2258+ = lens _cuDistribution
2259+ (\ s a -> s{_cuDistribution = a})
2260+
21782261-- | True if this counter is reported as the total cumulative aggregate value
21792262-- accumulated since the worker started working on this WorkItem. By
21802263-- default this is false, indicating that this counter is reported as a
@@ -2227,6 +2310,7 @@ instance FromJSON CounterUpdate where
22272310 <*> (o .:? "internal")
22282311 <*> (o .:? "stringList")
22292312 <*> (o .:? "shortId")
2313+ <*> (o .:? "distribution")
22302314 <*> (o .:? "cumulative")
22312315 <*> (o .:? "structuredNameAndMetadata")
22322316 <*> (o .:? "floatingPointMean")
@@ -2245,6 +2329,7 @@ instance ToJSON CounterUpdate where
22452329 ("internal" .=) <$> _cuInternal,
22462330 ("stringList" .=) <$> _cuStringList,
22472331 ("shortId" .=) <$> _cuShortId,
2332+ ("distribution" .=) <$> _cuDistribution,
22482333 ("cumulative" .=) <$> _cuCumulative,
22492334 ("structuredNameAndMetadata" .=) <$>
22502335 _cuStructuredNameAndMetadata,
@@ -2820,7 +2905,7 @@ instance ToJSON WorkerMessageCode where
28202905 [("parameters" .=) <$> _wmcParameters,
28212906 ("code" .=) <$> _wmcCode])
28222907
2823−-- | Map of transform name prefixes of the job to be replaced to the
2908+-- | The map of transform name prefixes of the job to be replaced to the
28242909-- corresponding name prefixes of the new job.
28252910--
28262911-- /See:/ 'jobTransformNameMApping' smart constructor.
@@ -3085,19 +3170,19 @@ taskRunnerSettings =
30853170 , _trsLanguageHint = Nothing
30863171 }
30873172
3088−-- | Do we continue taskrunner if an exception is hit?
3173+-- | Whether to continue taskrunner if an exception is hit.
30893174trsContinueOnException :: Lens' TaskRunnerSettings (Maybe Bool)
30903175trsContinueOnException
30913176 = lens _trsContinueOnException
30923177 (\ s a -> s{_trsContinueOnException = a})
30933178
3094−-- | Command to launch the worker harness.
3179+-- | The command to launch the worker harness.
30953180trsHarnessCommand :: Lens' TaskRunnerSettings (Maybe Text)
30963181trsHarnessCommand
30973182 = lens _trsHarnessCommand
30983183 (\ s a -> s{_trsHarnessCommand = a})
30993184
3100−-- | Store the workflow in this file.
3185+-- | The file to store the workflow in.
31013186trsWorkflowFileName :: Lens' TaskRunnerSettings (Maybe Text)
31023187trsWorkflowFileName
31033188 = lens _trsWorkflowFileName
@@ -3109,30 +3194,30 @@ trsTaskGroup :: Lens' TaskRunnerSettings (Maybe Text)
31093194trsTaskGroup
31103195 = lens _trsTaskGroup (\ s a -> s{_trsTaskGroup = a})
31113196
3112−-- | Also send taskrunner log info to stderr?
3197+-- | Whether to also send taskrunner log info to stderr.
31133198trsAlsologtostderr :: Lens' TaskRunnerSettings (Maybe Bool)
31143199trsAlsologtostderr
31153200 = lens _trsAlsologtostderr
31163201 (\ s a -> s{_trsAlsologtostderr = a})
31173202
3118−-- | API version of endpoint, e.g. \"v1b3\"
3203+-- | The API version of endpoint, e.g. \"v1b3\"
31193204trsDataflowAPIVersion :: Lens' TaskRunnerSettings (Maybe Text)
31203205trsDataflowAPIVersion
31213206 = lens _trsDataflowAPIVersion
31223207 (\ s a -> s{_trsDataflowAPIVersion = a})
31233208
3124−-- | Directory on the VM to store logs.
3209+-- | The directory on the VM to store logs.
31253210trsLogDir :: Lens' TaskRunnerSettings (Maybe Text)
31263211trsLogDir
31273212 = lens _trsLogDir (\ s a -> s{_trsLogDir = a})
31283213
3129−-- | Store preprocessing commands in this file.
3214+-- | The file to store preprocessing commands in.
31303215trsCommandlinesFileName :: Lens' TaskRunnerSettings (Maybe Text)
31313216trsCommandlinesFileName
31323217 = lens _trsCommandlinesFileName
31333218 (\ s a -> s{_trsCommandlinesFileName = a})
31343219
3135−-- | ID string of VM.
3220+-- | The ID string of the VM.
31363221trsVMId :: Lens' TaskRunnerSettings (Maybe Text)
31373222trsVMId = lens _trsVMId (\ s a -> s{_trsVMId = a})
31383223
@@ -3146,8 +3231,8 @@ trsBaseURL :: Lens' TaskRunnerSettings (Maybe Text)
31463231trsBaseURL
31473232 = lens _trsBaseURL (\ s a -> s{_trsBaseURL = a})
31483233
3149−-- | OAuth2 scopes to be requested by the taskrunner in order to access the
3150−-- dataflow API.
3234+-- | The OAuth2 scopes to be requested by the taskrunner in order to access
3235+-- the Cloud Dataflow API.
31513236trsOAuthScopes :: Lens' TaskRunnerSettings [Text]
31523237trsOAuthScopes
31533238 = lens _trsOAuthScopes
@@ -3161,13 +3246,13 @@ trsTaskUser :: Lens' TaskRunnerSettings (Maybe Text)
31613246trsTaskUser
31623247 = lens _trsTaskUser (\ s a -> s{_trsTaskUser = a})
31633248
3164−-- | Streaming worker main class name.
3249+-- | The streaming worker main class name.
31653250trsStreamingWorkerMainClass :: Lens' TaskRunnerSettings (Maybe Text)
31663251trsStreamingWorkerMainClass
31673252 = lens _trsStreamingWorkerMainClass
31683253 (\ s a -> s{_trsStreamingWorkerMainClass = a})
31693254
3170−-- | Location on the worker for task-specific subdirectories.
3255+-- | The location on the worker for task-specific subdirectories.
31713256trsBaseTaskDir :: Lens' TaskRunnerSettings (Maybe Text)
31723257trsBaseTaskDir
31733258 = lens _trsBaseTaskDir
@@ -3191,19 +3276,20 @@ trsTempStoragePrefix
31913276 = lens _trsTempStoragePrefix
31923277 (\ s a -> s{_trsTempStoragePrefix = a})
31933278
3194−-- | Send taskrunner log into to Google Compute Engine VM serial console?
3279+-- | Whether to send taskrunner log info to Google Compute Engine VM serial
3280+-- console.
31953281trsLogToSerialconsole :: Lens' TaskRunnerSettings (Maybe Bool)
31963282trsLogToSerialconsole
31973283 = lens _trsLogToSerialconsole
31983284 (\ s a -> s{_trsLogToSerialconsole = a})
31993285
3200−-- | Settings to pass to the parallel worker harness.
3286+-- | The settings to pass to the parallel worker harness.
32013287trsParallelWorkerSettings :: Lens' TaskRunnerSettings (Maybe WorkerSettings)
32023288trsParallelWorkerSettings
32033289 = lens _trsParallelWorkerSettings
32043290 (\ s a -> s{_trsParallelWorkerSettings = a})
32053291
3206−-- | Suggested backend language.
3292+-- | The suggested backend language.
32073293trsLanguageHint :: Lens' TaskRunnerSettings (Maybe Text)
32083294trsLanguageHint
32093295 = lens _trsLanguageHint
@@ -3337,10 +3423,10 @@ instance ToJSON StreamingComputationConfig where
33373423 ("computationId" .=) <$> _sccComputationId,
33383424 ("stageName" .=) <$> _sccStageName])
33393425
3340−-- | The Dataflow SDK pipeline options specified by the user. These options
3341−-- are passed through the service and are used to recreate the SDK pipeline
3342−-- options on the worker in a language agnostic and platform independent
3343−-- way.
3426+-- | The Cloud Dataflow SDK pipeline options specified by the user. These
3427+-- options are passed through the service and are used to recreate the SDK
3428+-- pipeline options on the worker in a language agnostic and platform
3429+-- independent way.
33443430--
33453431-- /See:/ 'environmentSdkPipelineOptions' smart constructor.
33463432newtype EnvironmentSdkPipelineOptions = EnvironmentSdkPipelineOptions'
@@ -3429,6 +3515,7 @@ instance ToJSON FloatingPointMean where
34293515data LeaseWorkItemRequest = LeaseWorkItemRequest'
34303516 { _lwirWorkItemTypes :: !(Maybe [Text])
34313517 , _lwirCurrentWorkerTime :: !(Maybe Text)
3518+ , _lwirLocation :: !(Maybe Text)
34323519 , _lwirWorkerCapabilities :: !(Maybe [Text])
34333520 , _lwirRequestedLeaseDuration :: !(Maybe Text)
34343521 , _lwirWorkerId :: !(Maybe Text)
@@ -3442,6 +3529,8 @@ data LeaseWorkItemRequest = LeaseWorkItemRequest'
34423529--
34433530-- * 'lwirCurrentWorkerTime'
34443531--
3532+-- * 'lwirLocation'
3533+--
34453534-- * 'lwirWorkerCapabilities'
34463535--
34473536-- * 'lwirRequestedLeaseDuration'
@@ -3453,6 +3542,7 @@ leaseWorkItemRequest =
34533542 LeaseWorkItemRequest'
34543543 { _lwirWorkItemTypes = Nothing
34553544 , _lwirCurrentWorkerTime = Nothing
3545+ , _lwirLocation = Nothing
34563546 , _lwirWorkerCapabilities = Nothing
34573547 , _lwirRequestedLeaseDuration = Nothing
34583548 , _lwirWorkerId = Nothing
@@ -3472,6 +3562,11 @@ lwirCurrentWorkerTime
34723562 = lens _lwirCurrentWorkerTime
34733563 (\ s a -> s{_lwirCurrentWorkerTime = a})
34743564
3565+-- | The location which contains the WorkItem\'s job.
3566+lwirLocation :: Lens' LeaseWorkItemRequest (Maybe Text)
3567+lwirLocation
3568+ = lens _lwirLocation (\ s a -> s{_lwirLocation = a})
3569+
34753570-- | Worker capabilities. WorkItems might be limited to workers with specific
34763571-- capabilities.
34773572lwirWorkerCapabilities :: Lens' LeaseWorkItemRequest [Text]
@@ -3500,6 +3595,7 @@ instance FromJSON LeaseWorkItemRequest where
35003595 LeaseWorkItemRequest' <$>
35013596 (o .:? "workItemTypes" .!= mempty) <*>
35023597 (o .:? "currentWorkerTime")
3598+ <*> (o .:? "location")
35033599 <*> (o .:? "workerCapabilities" .!= mempty)
35043600 <*> (o .:? "requestedLeaseDuration")
35053601 <*> (o .:? "workerId"))
@@ -3510,6 +3606,7 @@ instance ToJSON LeaseWorkItemRequest where
35103606 (catMaybes
35113607 [("workItemTypes" .=) <$> _lwirWorkItemTypes,
35123608 ("currentWorkerTime" .=) <$> _lwirCurrentWorkerTime,
3609+ ("location" .=) <$> _lwirLocation,
35133610 ("workerCapabilities" .=) <$>
35143611 _lwirWorkerCapabilities,
35153612 ("requestedLeaseDuration" .=) <$>
@@ -4009,7 +4106,7 @@ workerSettings =
40094106 , _wsWorkerId = Nothing
40104107 }
40114108
4012−-- | The Dataflow service path relative to the root URL, for example,
4109+-- | The Cloud Dataflow service path relative to the root URL, for example,
40134110-- \"dataflow\/v1b3\/projects\".
40144111wsServicePath :: Lens' WorkerSettings (Maybe Text)
40154112wsServicePath
@@ -4042,13 +4139,13 @@ wsTempStoragePrefix
40424139 = lens _wsTempStoragePrefix
40434140 (\ s a -> s{_wsTempStoragePrefix = a})
40444141
4045−-- | Send work progress updates to service.
4142+-- | Whether to send work progress updates to the service.
40464143wsReportingEnabled :: Lens' WorkerSettings (Maybe Bool)
40474144wsReportingEnabled
40484145 = lens _wsReportingEnabled
40494146 (\ s a -> s{_wsReportingEnabled = a})
40504147
4051−-- | ID of the worker running this pipeline.
4148+-- | The ID of the worker running this pipeline.
40524149wsWorkerId :: Lens' WorkerSettings (Maybe Text)
40534150wsWorkerId
40544151 = lens _wsWorkerId (\ s a -> s{_wsWorkerId = a})
@@ -4202,12 +4299,86 @@ instance ToJSON DataDiskAssignment where
42024299 [("vmInstance" .=) <$> _ddaVMInstance,
42034300 ("dataDisks" .=) <$> _ddaDataDisks])
42044301
4302+-- | Worker metrics exported from workers. This contains resource utilization
4303+-- metrics accumulated from a variety of sources. For more information, see
4304+-- go\/df-resource-signals. Note that this proto closely follows the
4305+-- structure of its DFE siblings in its contents.
4306+--
4307+-- /See:/ 'resourceUtilizationReport' smart constructor.
4308+newtype ResourceUtilizationReport = ResourceUtilizationReport'
4309+ { _rurMetrics :: Maybe [ResourceUtilizationReportMetricsItem]
4310+ } deriving (Eq,Show,Data,Typeable,Generic)
4311+
4312+-- | Creates a value of 'ResourceUtilizationReport' with the minimum fields required to make a request.
4313+--
4314+-- Use one of the following lenses to modify other fields as desired:
4315+--
4316+-- * 'rurMetrics'
4317+resourceUtilizationReport
4318+ :: ResourceUtilizationReport
4319+resourceUtilizationReport =
4320+ ResourceUtilizationReport'
4321+ { _rurMetrics = Nothing
4322+ }
4323+
4324+-- | Each Struct must parallel DFE worker metrics protos (eg., cpu_time
4325+-- metric will have nested values “timestamp_ms, total_ms, rate”).
4326+rurMetrics :: Lens' ResourceUtilizationReport [ResourceUtilizationReportMetricsItem]
4327+rurMetrics
4328+ = lens _rurMetrics (\ s a -> s{_rurMetrics = a}) .
4329+ _Default
4330+ . _Coerce
4331+
4332+instance FromJSON ResourceUtilizationReport where
4333+ parseJSON
4334+ = withObject "ResourceUtilizationReport"
4335+ (\ o ->
4336+ ResourceUtilizationReport' <$>
4337+ (o .:? "metrics" .!= mempty))
4338+
4339+instance ToJSON ResourceUtilizationReport where
4340+ toJSON ResourceUtilizationReport'{..}
4341+ = object (catMaybes [("metrics" .=) <$> _rurMetrics])
4342+
4343+-- | Indicates which location failed to respond to a request for data.
4344+--
4345+-- /See:/ 'failedLocation' smart constructor.
4346+newtype FailedLocation = FailedLocation'
4347+ { _flName :: Maybe Text
4348+ } deriving (Eq,Show,Data,Typeable,Generic)
4349+
4350+-- | Creates a value of 'FailedLocation' with the minimum fields required to make a request.
4351+--
4352+-- Use one of the following lenses to modify other fields as desired:
4353+--
4354+-- * 'flName'
4355+failedLocation
4356+ :: FailedLocation
4357+failedLocation =
4358+ FailedLocation'
4359+ { _flName = Nothing
4360+ }
4361+
4362+-- | The name of the failed location.
4363+flName :: Lens' FailedLocation (Maybe Text)
4364+flName = lens _flName (\ s a -> s{_flName = a})
4365+
4366+instance FromJSON FailedLocation where
4367+ parseJSON
4368+ = withObject "FailedLocation"
4369+ (\ o -> FailedLocation' <$> (o .:? "name"))
4370+
4371+instance ToJSON FailedLocation where
4372+ toJSON FailedLocation'{..}
4373+ = object (catMaybes [("name" .=) <$> _flName])
4374+
42054375-- | A worker_message response allows the server to pass information to the
42064376-- sender.
42074377--
42084378-- /See:/ 'workerMessageResponse' smart constructor.
4209−newtype WorkerMessageResponse = WorkerMessageResponse'
4210− { _wmrWorkerHealthReportResponse :: Maybe WorkerHealthReportResponse
4379+data WorkerMessageResponse = WorkerMessageResponse'
4380+ { _wmrWorkerHealthReportResponse :: !(Maybe WorkerHealthReportResponse)
4381+ , _wmrWorkerMetricsResponse :: !(Maybe ResourceUtilizationReportResponse)
42114382 } deriving (Eq,Show,Data,Typeable,Generic)
42124383
42134384-- | Creates a value of 'WorkerMessageResponse' with the minimum fields required to make a request.
@@ -4215,11 +4386,14 @@ newtype WorkerMessageResponse = WorkerMessageResponse'
42154386-- Use one of the following lenses to modify other fields as desired:
42164387--
42174388-- * 'wmrWorkerHealthReportResponse'
4389+--
4390+-- * 'wmrWorkerMetricsResponse'
42184391workerMessageResponse
42194392 :: WorkerMessageResponse
42204393workerMessageResponse =
42214394 WorkerMessageResponse'
42224395 { _wmrWorkerHealthReportResponse = Nothing
4396+ , _wmrWorkerMetricsResponse = Nothing
42234397 }
42244398
42254399-- | The service\'s response to a worker\'s health report.
@@ -4228,21 +4402,30 @@ wmrWorkerHealthReportResponse
42284402 = lens _wmrWorkerHealthReportResponse
42294403 (\ s a -> s{_wmrWorkerHealthReportResponse = a})
42304404
4405+-- | Service\'s response to reporting worker metrics (currently empty).
4406+wmrWorkerMetricsResponse :: Lens' WorkerMessageResponse (Maybe ResourceUtilizationReportResponse)
4407+wmrWorkerMetricsResponse
4408+ = lens _wmrWorkerMetricsResponse
4409+ (\ s a -> s{_wmrWorkerMetricsResponse = a})
4410+
42314411instance FromJSON WorkerMessageResponse where
42324412 parseJSON
42334413 = withObject "WorkerMessageResponse"
42344414 (\ o ->
42354415 WorkerMessageResponse' <$>
4236− (o .:? "workerHealthReportResponse"))
4416+ (o .:? "workerHealthReportResponse") <*>
4417+ (o .:? "workerMetricsResponse"))
42374418
42384419instance ToJSON WorkerMessageResponse where
42394420 toJSON WorkerMessageResponse'{..}
42404421 = object
42414422 (catMaybes
42424423 [("workerHealthReportResponse" .=) <$>
4243− _wmrWorkerHealthReportResponse])
4424+ _wmrWorkerHealthReportResponse,
4425+ ("workerMetricsResponse" .=) <$>
4426+ _wmrWorkerMetricsResponse])
42444427
4245−-- | Dynamic parameterization of the job\'s runtime environment.
4428+-- | The runtime parameters to pass to the job.
42464429--
42474430-- /See:/ 'createJobFromTemplateRequestParameters' smart constructor.
42484431newtype CreateJobFromTemplateRequestParameters = CreateJobFromTemplateRequestParameters'
@@ -4932,6 +5115,96 @@ instance FromJSON WorkerPoolPoolArgs where
49325115instance ToJSON WorkerPoolPoolArgs where
49335116 toJSON = toJSON . _wppaAddtional
49345117
5118+-- | The environment values to set at runtime.
5119+--
5120+-- /See:/ 'runtimeEnvironment' smart constructor.
5121+data RuntimeEnvironment = RuntimeEnvironment'
5122+ { _reZone :: !(Maybe Text)
5123+ , _reBypassTempDirValidation :: !(Maybe Bool)
5124+ , _reServiceAccountEmail :: !(Maybe Text)
5125+ , _reMaxWorkers :: !(Maybe (Textual Int32))
5126+ , _reTempLocation :: !(Maybe Text)
5127+ } deriving (Eq,Show,Data,Typeable,Generic)
5128+
5129+-- | Creates a value of 'RuntimeEnvironment' with the minimum fields required to make a request.
5130+--
5131+-- Use one of the following lenses to modify other fields as desired:
5132+--
5133+-- * 'reZone'
5134+--
5135+-- * 'reBypassTempDirValidation'
5136+--
5137+-- * 'reServiceAccountEmail'
5138+--
5139+-- * 'reMaxWorkers'
5140+--
5141+-- * 'reTempLocation'
5142+runtimeEnvironment
5143+ :: RuntimeEnvironment
5144+runtimeEnvironment =
5145+ RuntimeEnvironment'
5146+ { _reZone = Nothing
5147+ , _reBypassTempDirValidation = Nothing
5148+ , _reServiceAccountEmail = Nothing
5149+ , _reMaxWorkers = Nothing
5150+ , _reTempLocation = Nothing
5151+ }
5152+
5153+-- | The Compute Engine [availability
5154+-- zone](https:\/\/cloud.google.com\/compute\/docs\/regions-zones\/regions-zones)
5155+-- for launching worker instances to run your pipeline.
5156+reZone :: Lens' RuntimeEnvironment (Maybe Text)
5157+reZone = lens _reZone (\ s a -> s{_reZone = a})
5158+
5159+-- | Whether to bypass the safety checks for the job\'s temporary directory.
5160+-- Use with caution.
5161+reBypassTempDirValidation :: Lens' RuntimeEnvironment (Maybe Bool)
5162+reBypassTempDirValidation
5163+ = lens _reBypassTempDirValidation
5164+ (\ s a -> s{_reBypassTempDirValidation = a})
5165+
5166+-- | The email address of the service account to run the job as.
5167+reServiceAccountEmail :: Lens' RuntimeEnvironment (Maybe Text)
5168+reServiceAccountEmail
5169+ = lens _reServiceAccountEmail
5170+ (\ s a -> s{_reServiceAccountEmail = a})
5171+
5172+-- | The maximum number of Google Compute Engine instances to be made
5173+-- available to your pipeline during execution, from 1 to 1000.
5174+reMaxWorkers :: Lens' RuntimeEnvironment (Maybe Int32)
5175+reMaxWorkers
5176+ = lens _reMaxWorkers (\ s a -> s{_reMaxWorkers = a})
5177+ . mapping _Coerce
5178+
5179+-- | The Cloud Storage path to use for temporary files. Must be a valid Cloud
5180+-- Storage URL, beginning with \`gs:\/\/\`.
5181+reTempLocation :: Lens' RuntimeEnvironment (Maybe Text)
5182+reTempLocation
5183+ = lens _reTempLocation
5184+ (\ s a -> s{_reTempLocation = a})
5185+
5186+instance FromJSON RuntimeEnvironment where
5187+ parseJSON
5188+ = withObject "RuntimeEnvironment"
5189+ (\ o ->
5190+ RuntimeEnvironment' <$>
5191+ (o .:? "zone") <*> (o .:? "bypassTempDirValidation")
5192+ <*> (o .:? "serviceAccountEmail")
5193+ <*> (o .:? "maxWorkers")
5194+ <*> (o .:? "tempLocation"))
5195+
5196+instance ToJSON RuntimeEnvironment where
5197+ toJSON RuntimeEnvironment'{..}
5198+ = object
5199+ (catMaybes
5200+ [("zone" .=) <$> _reZone,
5201+ ("bypassTempDirValidation" .=) <$>
5202+ _reBypassTempDirValidation,
5203+ ("serviceAccountEmail" .=) <$>
5204+ _reServiceAccountEmail,
5205+ ("maxWorkers" .=) <$> _reMaxWorkers,
5206+ ("tempLocation" .=) <$> _reTempLocation])
5207+
49355208-- | CounterMetadata includes all static non-name non-value counter
49365209-- attributes.
49375210--
@@ -5479,11 +5752,12 @@ instance ToJSON
54795752 PartialGroupByKeyInstructionValueCombiningFn where
54805753 toJSON = toJSON . _pgbkivcfAddtional
54815754
5482−-- | Defines a job to be run by the Dataflow service.
5755+-- | Defines a job to be run by the Cloud Dataflow service.
54835756--
54845757-- /See:/ 'job' smart constructor.
54855758data Job = Job'
54865759 { _jRequestedState :: !(Maybe Text)
5760+ , _jLocation :: !(Maybe Text)
54875761 , _jEnvironment :: !(Maybe Environment)
54885762 , _jClientRequestId :: !(Maybe Text)
54895763 , _jCurrentState :: !(Maybe Text)
@@ -5508,6 +5782,8 @@ data Job = Job'
55085782--
55095783-- * 'jRequestedState'
55105784--
5785+-- * 'jLocation'
5786+--
55115787-- * 'jEnvironment'
55125788--
55135789-- * 'jClientRequestId'
@@ -5544,6 +5820,7 @@ job
55445820job =
55455821 Job'
55465822 { _jRequestedState = Nothing
5823+ , _jLocation = Nothing
55475824 , _jEnvironment = Nothing
55485825 , _jClientRequestId = Nothing
55495826 , _jCurrentState = Nothing
@@ -5562,45 +5839,52 @@ job =
55625839 , _jCreateTime = Nothing
55635840 }
55645841
5565−-- | The job\'s requested state. UpdateJob may be used to switch between the
5566−-- JOB_STATE_STOPPED and JOB_STATE_RUNNING states, by setting
5567−-- requested_state. UpdateJob may also be used to directly set a job\'s
5568−-- requested state to JOB_STATE_CANCELLED or JOB_STATE_DONE, irrevocably
5569−-- terminating the job if it has not already reached a terminal state.
5842+-- | The job\'s requested state. \`UpdateJob\` may be used to switch between
5843+-- the \`JOB_STATE_STOPPED\` and \`JOB_STATE_RUNNING\` states, by setting
5844+-- requested_state. \`UpdateJob\` may also be used to directly set a job\'s
5845+-- requested state to \`JOB_STATE_CANCELLED\` or \`JOB_STATE_DONE\`,
5846+-- irrevocably terminating the job if it has not already reached a terminal
5847+-- state.
55705848jRequestedState :: Lens' Job (Maybe Text)
55715849jRequestedState
55725850 = lens _jRequestedState
55735851 (\ s a -> s{_jRequestedState = a})
55745852
5575−-- | Environment for the job.
5853+-- | The location that contains this job.
5854+jLocation :: Lens' Job (Maybe Text)
5855+jLocation
5856+ = lens _jLocation (\ s a -> s{_jLocation = a})
5857+
5858+-- | The environment for the job.
55765859jEnvironment :: Lens' Job (Maybe Environment)
55775860jEnvironment
55785861 = lens _jEnvironment (\ s a -> s{_jEnvironment = a})
55795862
5580−-- | Client\'s unique identifier of the job, re-used by SDK across retried
5863+-- | The client\'s unique identifier of the job, re-used across retried
55815864-- attempts. If this field is set, the service will ensure its uniqueness.
5582−-- That is, the request to create a job will fail if the service has
5583−-- knowledge of a previously submitted job with the same client\'s id and
5584−-- job name. The caller may, for example, use this field to ensure
5585−-- idempotence of job creation across retried attempts to create a job. By
5586−-- default, the field is empty and, in that case, the service ignores it.
5865+-- The request to create a job will fail if the service has knowledge of a
5866+-- previously submitted job with the same client\'s ID and job name. The
5867+-- caller may use this field to ensure idempotence of job creation across
5868+-- retried attempts to create a job. By default, the field is empty and, in
5869+-- that case, the service ignores it.
55875870jClientRequestId :: Lens' Job (Maybe Text)
55885871jClientRequestId
55895872 = lens _jClientRequestId
55905873 (\ s a -> s{_jClientRequestId = a})
55915874
5592−-- | The current state of the job. Jobs are created in the JOB_STATE_STOPPED
5593−-- state unless otherwise specified. A job in the JOB_STATE_RUNNING state
5594−-- may asynchronously enter a terminal state. Once a job has reached a
5595−-- terminal state, no further state updates may be made. This field may be
5596−-- mutated by the Dataflow service; callers cannot mutate it.
5875+-- | The current state of the job. Jobs are created in the
5876+-- \`JOB_STATE_STOPPED\` state unless otherwise specified. A job in the
5877+-- \`JOB_STATE_RUNNING\` state may asynchronously enter a terminal state.
5878+-- After a job has reached a terminal state, no further state updates may
5879+-- be made. This field may be mutated by the Cloud Dataflow service;
5880+-- callers cannot mutate it.
55975881jCurrentState :: Lens' Job (Maybe Text)
55985882jCurrentState
55995883 = lens _jCurrentState
56005884 (\ s a -> s{_jCurrentState = a})
56015885
56025886-- | If another job is an update of this job (and thus, this job is in
5603−-- JOB_STATE_UPDATED), this field will contain the ID of that job.
5887+-- \`JOB_STATE_UPDATED\`), this field contains the ID of that job.
56045888jReplacedByJobId :: Lens' Job (Maybe Text)
56055889jReplacedByJobId
56065890 = lens _jReplacedByJobId
@@ -5624,29 +5908,30 @@ jSteps
56245908 = lens _jSteps (\ s a -> s{_jSteps = a}) . _Default .
56255909 _Coerce
56265910
5627−-- | Information about how the Dataflow service will actually run the job.
5911+-- | Information about how the Cloud Dataflow service will run the job.
56285912jExecutionInfo :: Lens' Job (Maybe JobExecutionInfo)
56295913jExecutionInfo
56305914 = lens _jExecutionInfo
56315915 (\ s a -> s{_jExecutionInfo = a})
56325916
5633−-- | The user-specified Dataflow job name. Only one Job with a given name may
5634−-- exist in a project at any given time. If a caller attempts to create a
5635−-- Job with the same name as an already-existing Job, the attempt will
5636−-- return the existing Job. The name must match the regular expression
5637−-- [a-z]([-a-z0-9]{0,38}[a-z0-9])?
5917+-- | The user-specified Cloud Dataflow job name. Only one Job with a given
5918+-- name may exist in a project at any given time. If a caller attempts to
5919+-- create a Job with the same name as an already-existing Job, the attempt
5920+-- returns the existing Job. The name must match the regular expression
5921+-- \`[a-z]([-a-z0-9]{0,38}[a-z0-9])?\`
56385922jName :: Lens' Job (Maybe Text)
56395923jName = lens _jName (\ s a -> s{_jName = a})
56405924
5641−-- | Map of transform name prefixes of the job to be replaced to the
5925+-- | The map of transform name prefixes of the job to be replaced to the
56425926-- corresponding name prefixes of the new job.
56435927jTransformNameMApping :: Lens' Job (Maybe JobTransformNameMApping)
56445928jTransformNameMApping
56455929 = lens _jTransformNameMApping
56465930 (\ s a -> s{_jTransformNameMApping = a})
56475931
5648−-- | The unique ID of this job. This field is set by the Dataflow service
5649−-- when the Job is created, and is immutable for the life of the Job.
5932+-- | The unique ID of this job. This field is set by the Cloud Dataflow
5933+-- service when the Job is created, and is immutable for the life of the
5934+-- job.
56505935jId :: Lens' Job (Maybe Text)
56515936jId = lens _jId (\ s a -> s{_jId = a})
56525937
@@ -5659,12 +5944,12 @@ jId = lens _jId (\ s a -> s{_jId = a})
56595944jLabels :: Lens' Job (Maybe JobLabels)
56605945jLabels = lens _jLabels (\ s a -> s{_jLabels = a})
56615946
5662−-- | The project which owns the job.
5947+-- | The ID of the Cloud Platform project that the job belongs to.
56635948jProjectId :: Lens' Job (Maybe Text)
56645949jProjectId
56655950 = lens _jProjectId (\ s a -> s{_jProjectId = a})
56665951
5667−-- | The type of dataflow job.
5952+-- | The type of Cloud Dataflow job.
56685953jType :: Lens' Job (Maybe Text)
56695954jType = lens _jType (\ s a -> s{_jType = a})
56705955
@@ -5674,17 +5959,17 @@ jCurrentStateTime
56745959 = lens _jCurrentStateTime
56755960 (\ s a -> s{_jCurrentStateTime = a})
56765961
5677−-- | If this job is an update of an existing job, this field will be the ID
5678−-- of the job it replaced. When sending a CreateJobRequest, you can update
5679−-- a job by specifying it here. The job named here will be stopped, and its
5680−-- intermediate state transferred to this job.
5962+-- | If this job is an update of an existing job, this field is the job ID of
5963+-- the job it replaced. When sending a \`CreateJobRequest\`, you can update
5964+-- a job by specifying it here. The job named here is stopped, and its
5965+-- intermediate state is transferred to this job.
56815966jReplaceJobId :: Lens' Job (Maybe Text)
56825967jReplaceJobId
56835968 = lens _jReplaceJobId
56845969 (\ s a -> s{_jReplaceJobId = a})
56855970
5686−-- | Timestamp when job was initially created. Immutable, set by the Dataflow
5687−-- service.
5971+-- | The timestamp when the job was initially created. Immutable and set by
5972+-- the Cloud Dataflow service.
56885973jCreateTime :: Lens' Job (Maybe Text)
56895974jCreateTime
56905975 = lens _jCreateTime (\ s a -> s{_jCreateTime = a})
@@ -5694,7 +5979,8 @@ instance FromJSON Job where
56945979 = withObject "Job"
56955980 (\ o ->
56965981 Job' <$>
5697− (o .:? "requestedState") <*> (o .:? "environment")
5982+ (o .:? "requestedState") <*> (o .:? "location") <*>
5983+ (o .:? "environment")
56985984 <*> (o .:? "clientRequestId")
56995985 <*> (o .:? "currentState")
57005986 <*> (o .:? "replacedByJobId")
@@ -5716,6 +6002,7 @@ instance ToJSON Job where
57166002 = object
57176003 (catMaybes
57186004 [("requestedState" .=) <$> _jRequestedState,
6005+ ("location" .=) <$> _jLocation,
57196006 ("environment" .=) <$> _jEnvironment,
57206007 ("clientRequestId" .=) <$> _jClientRequestId,
57216008 ("currentState" .=) <$> _jCurrentState,
@@ -5899,10 +6186,11 @@ instance FromJSON SinkSpec where
58996186instance ToJSON SinkSpec where
59006187 toJSON = toJSON . _sAddtional
59016188
5902−-- | Describes one particular pool of Dataflow workers to be instantiated by
5903−-- the Dataflow service in order to perform the computations required by a
5904−-- job. Note that a workflow job may use multiple pools, in order to match
5905−-- the various computational requirements of the various stages of the job.
6189+-- | Describes one particular pool of Cloud Dataflow workers to be
6190+-- instantiated by the Cloud Dataflow service in order to perform the
6191+-- computations required by a job. Note that a workflow job may use
6192+-- multiple pools, in order to match the various computational requirements
6193+-- of the various stages of the job.
59066194--
59076195-- /See:/ 'workerPool' smart constructor.
59086196data WorkerPool = WorkerPool'
@@ -6024,7 +6312,7 @@ wpDiskSizeGb
60246312 = lens _wpDiskSizeGb (\ s a -> s{_wpDiskSizeGb = a})
60256313 . mapping _Coerce
60266314
6027−-- | The kind of the worker pool; currently only \'harness\' and \'shuffle\'
6315+-- | The kind of the worker pool; currently only \`harness\` and \`shuffle\`
60286316-- are supported.
60296317wpKind :: Lens' WorkerPool (Maybe Text)
60306318wpKind = lens _wpKind (\ s a -> s{_wpKind = a})
@@ -6106,16 +6394,17 @@ wpDiskType
61066394 = lens _wpDiskType (\ s a -> s{_wpDiskType = a})
61076395
61086396-- | Sets the policy for determining when to turndown worker pool. Allowed
6109−-- values are: TEARDOWN_ALWAYS, TEARDOWN_ON_SUCCESS, and TEARDOWN_NEVER.
6110−-- TEARDOWN_ALWAYS means workers are always torn down regardless of whether
6111−-- the job succeeds. TEARDOWN_ON_SUCCESS means workers are torn down if the
6112−-- job succeeds. TEARDOWN_NEVER means the workers are never torn down. If
6113−-- the workers are not torn down by the service, they will continue to run
6114−-- and use Google Compute Engine VM resources in the user\'s project until
6115−-- they are explicitly terminated by the user. Because of this, Google
6116−-- recommends using the TEARDOWN_ALWAYS policy except for small, manually
6117−-- supervised test jobs. If unknown or unspecified, the service will
6118−-- attempt to choose a reasonable default.
6397+-- values are: \`TEARDOWN_ALWAYS\`, \`TEARDOWN_ON_SUCCESS\`, and
6398+-- \`TEARDOWN_NEVER\`. \`TEARDOWN_ALWAYS\` means workers are always torn
6399+-- down regardless of whether the job succeeds. \`TEARDOWN_ON_SUCCESS\`
6400+-- means workers are torn down if the job succeeds. \`TEARDOWN_NEVER\`
6401+-- means the workers are never torn down. If the workers are not torn down
6402+-- by the service, they will continue to run and use Google Compute Engine
6403+-- VM resources in the user\'s project until they are explicitly terminated
6404+-- by the user. Because of this, Google recommends using the
6405+-- \`TEARDOWN_ALWAYS\` policy except for small, manually supervised test
6406+-- jobs. If unknown or unspecified, the service will attempt to choose a
6407+-- reasonable default.
61196408wpTeardownPolicy :: Lens' WorkerPool (Maybe Text)
61206409wpTeardownPolicy
61216410 = lens _wpTeardownPolicy
@@ -6134,8 +6423,8 @@ wpPoolArgs :: Lens' WorkerPool (Maybe WorkerPoolPoolArgs)
61346423wpPoolArgs
61356424 = lens _wpPoolArgs (\ s a -> s{_wpPoolArgs = a})
61366425
6137−-- | Docker container image that executes Dataflow worker harness, residing
6138−-- in Google Container Registry. Required.
6426+-- | Required. Docker container image that executes the Cloud Dataflow worker
6427+-- harness, residing in Google Container Registry.
61396428wpWorkerHarnessContainerImage :: Lens' WorkerPool (Maybe Text)
61406429wpWorkerHarnessContainerImage
61416430 = lens _wpWorkerHarnessContainerImage
@@ -6204,7 +6493,7 @@ instance ToJSON WorkerPool where
62046493 _wpWorkerHarnessContainerImage,
62056494 ("dataDisks" .=) <$> _wpDataDisks])
62066495
6207−-- | Defines a particular step within a Dataflow job. A job consists of
6496+-- | Defines a particular step within a Cloud Dataflow job. A job consists of
62086497-- multiple steps, each of which performs some specific operation as part
62096498-- of the overall job. Data is typically passed from one step to another as
62106499-- part of the job. Here\'s an example of a sequence of steps which
@@ -6214,8 +6503,8 @@ instance ToJSON WorkerPool where
62146503-- value and extract an element-specific key value. * Group elements with
62156504-- the same key into a single element with that key, transforming a
62166505-- multiply-keyed collection into a uniquely-keyed collection. * Write the
6217−-- elements out to some data sink. (Note that the Dataflow service may be
6218−-- used to run many different types of jobs, not just Map-Reduce).
6506+-- elements out to some data sink. Note that the Cloud Dataflow service may
6507+-- be used to run many different types of jobs, not just Map-Reduce.
62196508--
62206509-- /See:/ 'step' smart constructor.
62216510data Step = Step'
@@ -6242,12 +6531,12 @@ step =
62426531 , _sProperties = Nothing
62436532 }
62446533
6245−-- | The kind of step in the dataflow Job.
6534+-- | The kind of step in the Cloud Dataflow job.
62466535sKind :: Lens' Step (Maybe Text)
62476536sKind = lens _sKind (\ s a -> s{_sKind = a})
62486537
6249−-- | Name identifying the step. This must be unique for each step with
6250−-- respect to all other steps in the dataflow Job.
6538+-- | The name that identifies the step. This must be unique for each step
6539+-- with respect to all other steps in the Cloud Dataflow job.
62516540sName :: Lens' Step (Maybe Text)
62526541sName = lens _sName (\ s a -> s{_sName = a})
62536542
@@ -6272,12 +6561,13 @@ instance ToJSON Step where
62726561 [("kind" .=) <$> _sKind, ("name" .=) <$> _sName,
62736562 ("properties" .=) <$> _sProperties])
62746563
6275−-- | Packages that need to be installed in order for a worker to run the
6276−-- steps of the Dataflow job which will be assigned to its worker pool.
6277−-- This is the mechanism by which the SDK causes code to be loaded onto the
6278−-- workers. For example, the Dataflow Java SDK might use this to install
6279−-- jars containing the user\'s code and all of the various dependencies
6280−-- (libraries, data files, etc) required in order for that code to run.
6564+-- | The packages that must be installed in order for a worker to run the
6565+-- steps of the Cloud Dataflow job that will be assigned to its worker
6566+-- pool. This is the mechanism by which the Cloud Dataflow SDK causes code
6567+-- to be loaded onto the workers. For example, the Cloud Dataflow Java SDK
6568+-- might use this to install jars containing the user\'s code and all of
6569+-- the various dependencies (libraries, data files, etc.) required in order
6570+-- for that code to run.
62816571--
62826572-- /See:/ 'package' smart constructor.
62836573data Package = Package'
@@ -6538,6 +6828,29 @@ instance ToJSON SourceFork where
65386828 ("primary" .=) <$> _sfPrimary,
65396829 ("residualSource" .=) <$> _sfResidualSource])
65406830
6831+-- | Service-side response to WorkerMessage reporting resource utilization.
6832+--
6833+-- /See:/ 'resourceUtilizationReportResponse' smart constructor.
6834+data ResourceUtilizationReportResponse =
6835+ ResourceUtilizationReportResponse'
6836+ deriving (Eq,Show,Data,Typeable,Generic)
6837+
6838+-- | Creates a value of 'ResourceUtilizationReportResponse' with the minimum fields required to make a request.
6839+--
6840+resourceUtilizationReportResponse
6841+ :: ResourceUtilizationReportResponse
6842+resourceUtilizationReportResponse = ResourceUtilizationReportResponse'
6843+
6844+instance FromJSON ResourceUtilizationReportResponse
6845+ where
6846+ parseJSON
6847+ = withObject "ResourceUtilizationReportResponse"
6848+ (\ o -> pure ResourceUtilizationReportResponse')
6849+
6850+instance ToJSON ResourceUtilizationReportResponse
6851+ where
6852+ toJSON = const emptyObject
6853+
65416854-- | Describes full or partial data disk assignment information of the
65426855-- computation ranges.
65436856--
@@ -6591,13 +6904,14 @@ instance ToJSON StreamingComputationRanges where
65916904 [("rangeAssignments" .=) <$> _scrRangeAssignments,
65926905 ("computationId" .=) <$> _scrComputationId])
65936906
6594−-- | Response to a request to list Dataflow jobs. This may be a partial
6907+-- | Response to a request to list Cloud Dataflow jobs. This may be a partial
65956908-- response, depending on the page size in the ListJobsRequest.
65966909--
65976910-- /See:/ 'listJobsResponse' smart constructor.
65986911data ListJobsResponse = ListJobsResponse'
6599− { _ljrNextPageToken :: !(Maybe Text)
6600− , _ljrJobs :: !(Maybe [Job])
6912+ { _ljrNextPageToken :: !(Maybe Text)
6913+ , _ljrFailedLocation :: !(Maybe [FailedLocation])
6914+ , _ljrJobs :: !(Maybe [Job])
66016915 } deriving (Eq,Show,Data,Typeable,Generic)
66026916
66036917-- | Creates a value of 'ListJobsResponse' with the minimum fields required to make a request.
@@ -6606,12 +6920,15 @@ data ListJobsResponse = ListJobsResponse'
66066920--
66076921-- * 'ljrNextPageToken'
66086922--
6923+-- * 'ljrFailedLocation'
6924+--
66096925-- * 'ljrJobs'
66106926listJobsResponse
66116927 :: ListJobsResponse
66126928listJobsResponse =
66136929 ListJobsResponse'
66146930 { _ljrNextPageToken = Nothing
6931+ , _ljrFailedLocation = Nothing
66156932 , _ljrJobs = Nothing
66166933 }
66176934
@@ -6621,6 +6938,14 @@ ljrNextPageToken
66216938 = lens _ljrNextPageToken
66226939 (\ s a -> s{_ljrNextPageToken = a})
66236940
6941+-- | Zero or more messages describing locations that failed to respond.
6942+ljrFailedLocation :: Lens' ListJobsResponse [FailedLocation]
6943+ljrFailedLocation
6944+ = lens _ljrFailedLocation
6945+ (\ s a -> s{_ljrFailedLocation = a})
6946+ . _Default
6947+ . _Coerce
6948+
66246949-- | A subset of the requested job information.
66256950ljrJobs :: Lens' ListJobsResponse [Job]
66266951ljrJobs
@@ -6633,13 +6958,15 @@ instance FromJSON ListJobsResponse where
66336958 (\ o ->
66346959 ListJobsResponse' <$>
66356960 (o .:? "nextPageToken") <*>
6636− (o .:? "jobs" .!= mempty))
6961+ (o .:? "failedLocation" .!= mempty)
6962+ <*> (o .:? "jobs" .!= mempty))
66376963
66386964instance ToJSON ListJobsResponse where
66396965 toJSON ListJobsResponse'{..}
66406966 = object
66416967 (catMaybes
66426968 [("nextPageToken" .=) <$> _ljrNextPageToken,
6969+ ("failedLocation" .=) <$> _ljrFailedLocation,
66436970 ("jobs" .=) <$> _ljrJobs])
66446971
66456972-- | A source that records can be read and decoded from.
@@ -6815,6 +7142,7 @@ data WorkerMessage = WorkerMessage'
68157142 { _wmWorkerHealthReport :: !(Maybe WorkerHealthReport)
68167143 , _wmTime :: !(Maybe Text)
68177144 , _wmWorkerMessageCode :: !(Maybe WorkerMessageCode)
7145+ , _wmWorkerMetrics :: !(Maybe ResourceUtilizationReport)
68187146 , _wmLabels :: !(Maybe WorkerMessageLabels)
68197147 } deriving (Eq,Show,Data,Typeable,Generic)
68207148
@@ -6828,6 +7156,8 @@ data WorkerMessage = WorkerMessage'
68287156--
68297157-- * 'wmWorkerMessageCode'
68307158--
7159+-- * 'wmWorkerMetrics'
7160+--
68317161-- * 'wmLabels'
68327162workerMessage
68337163 :: WorkerMessage
@@ -6836,6 +7166,7 @@ workerMessage =
68367166 { _wmWorkerHealthReport = Nothing
68377167 , _wmTime = Nothing
68387168 , _wmWorkerMessageCode = Nothing
7169+ , _wmWorkerMetrics = Nothing
68397170 , _wmLabels = Nothing
68407171 }
68417172
@@ -6855,6 +7186,12 @@ wmWorkerMessageCode
68557186 = lens _wmWorkerMessageCode
68567187 (\ s a -> s{_wmWorkerMessageCode = a})
68577188
7189+-- | Resource metrics reported by workers.
7190+wmWorkerMetrics :: Lens' WorkerMessage (Maybe ResourceUtilizationReport)
7191+wmWorkerMetrics
7192+ = lens _wmWorkerMetrics
7193+ (\ s a -> s{_wmWorkerMetrics = a})
7194+
68587195-- | Labels are used to group WorkerMessages. For example, a worker_message
68597196-- about a particular container might have the labels: { \"JOB_ID\":
68607197-- \"2015-04-22\", \"WORKER_ID\": \"wordcount-vm-2015…\"
@@ -6872,6 +7209,7 @@ instance FromJSON WorkerMessage where
68727209 WorkerMessage' <$>
68737210 (o .:? "workerHealthReport") <*> (o .:? "time") <*>
68747211 (o .:? "workerMessageCode")
7212+ <*> (o .:? "workerMetrics")
68757213 <*> (o .:? "labels"))
68767214
68777215instance ToJSON WorkerMessage where
@@ -6881,6 +7219,7 @@ instance ToJSON WorkerMessage where
68817219 [("workerHealthReport" .=) <$> _wmWorkerHealthReport,
68827220 ("time" .=) <$> _wmTime,
68837221 ("workerMessageCode" .=) <$> _wmWorkerMessageCode,
7222+ ("workerMetrics" .=) <$> _wmWorkerMetrics,
68847223 ("labels" .=) <$> _wmLabels])
68857224
68867225-- | Location information for a specific key-range of a sharded computation.
@@ -7233,6 +7572,83 @@ instance ToJSON CustomSourceLocation where
72337572 = object
72347573 (catMaybes [("stateful" .=) <$> _cslStateful])
72357574
7575+-- | A metric value representing a distribution.
7576+--
7577+-- /See:/ 'distributionUpdate' smart constructor.
7578+data DistributionUpdate = DistributionUpdate'
7579+ { _duMax :: !(Maybe SplitInt64)
7580+ , _duCount :: !(Maybe SplitInt64)
7581+ , _duMin :: !(Maybe SplitInt64)
7582+ , _duSumOfSquares :: !(Maybe (Textual Double))
7583+ , _duSum :: !(Maybe SplitInt64)
7584+ } deriving (Eq,Show,Data,Typeable,Generic)
7585+
7586+-- | Creates a value of 'DistributionUpdate' with the minimum fields required to make a request.
7587+--
7588+-- Use one of the following lenses to modify other fields as desired:
7589+--
7590+-- * 'duMax'
7591+--
7592+-- * 'duCount'
7593+--
7594+-- * 'duMin'
7595+--
7596+-- * 'duSumOfSquares'
7597+--
7598+-- * 'duSum'
7599+distributionUpdate
7600+ :: DistributionUpdate
7601+distributionUpdate =
7602+ DistributionUpdate'
7603+ { _duMax = Nothing
7604+ , _duCount = Nothing
7605+ , _duMin = Nothing
7606+ , _duSumOfSquares = Nothing
7607+ , _duSum = Nothing
7608+ }
7609+
7610+-- | The maximum value present in the distribution.
7611+duMax :: Lens' DistributionUpdate (Maybe SplitInt64)
7612+duMax = lens _duMax (\ s a -> s{_duMax = a})
7613+
7614+-- | The count of the number of elements present in the distribution.
7615+duCount :: Lens' DistributionUpdate (Maybe SplitInt64)
7616+duCount = lens _duCount (\ s a -> s{_duCount = a})
7617+
7618+-- | The minimum value present in the distribution.
7619+duMin :: Lens' DistributionUpdate (Maybe SplitInt64)
7620+duMin = lens _duMin (\ s a -> s{_duMin = a})
7621+
7622+-- | Use a double since the sum of squares is likely to overflow int64.
7623+duSumOfSquares :: Lens' DistributionUpdate (Maybe Double)
7624+duSumOfSquares
7625+ = lens _duSumOfSquares
7626+ (\ s a -> s{_duSumOfSquares = a})
7627+ . mapping _Coerce
7628+
7629+-- | Use an int64 since we\'d prefer the added precision. If overflow is a
7630+-- common problem we can detect it and use an additional int64 or a double.
7631+duSum :: Lens' DistributionUpdate (Maybe SplitInt64)
7632+duSum = lens _duSum (\ s a -> s{_duSum = a})
7633+
7634+instance FromJSON DistributionUpdate where
7635+ parseJSON
7636+ = withObject "DistributionUpdate"
7637+ (\ o ->
7638+ DistributionUpdate' <$>
7639+ (o .:? "max") <*> (o .:? "count") <*> (o .:? "min")
7640+ <*> (o .:? "sumOfSquares")
7641+ <*> (o .:? "sum"))
7642+
7643+instance ToJSON DistributionUpdate where
7644+ toJSON DistributionUpdate'{..}
7645+ = object
7646+ (catMaybes
7647+ [("max" .=) <$> _duMax, ("count" .=) <$> _duCount,
7648+ ("min" .=) <$> _duMin,
7649+ ("sumOfSquares" .=) <$> _duSumOfSquares,
7650+ ("sum" .=) <$> _duSum])
7651+
72367652--
72377653-- /See:/ 'sourceBaseSpecsItem' smart constructor.
72387654newtype SourceBaseSpecsItem = SourceBaseSpecsItem'
@@ -7681,8 +8097,8 @@ instance ToJSON SideInputInfo where
76818097 [("tag" .=) <$> _siiTag, ("kind" .=) <$> _siiKind,
76828098 ("sources" .=) <$> _siiSources])
76838099
7684−-- | Additional information about how a Dataflow job will be executed which
7685−-- isn’t contained in the submitted job.
8100+-- | Additional information about how a Cloud Dataflow job will be executed
8101+-- that isn\'t contained in the submitted job.
76868102--
76878103-- /See:/ 'jobExecutionInfo' smart constructor.
76888104newtype JobExecutionInfo = JobExecutionInfo'
@@ -7979,6 +8395,7 @@ data PubsubLocation = PubsubLocation'
79798395 , _plTimestampLabel :: !(Maybe Text)
79808396 , _plIdLabel :: !(Maybe Text)
79818397 , _plTopic :: !(Maybe Text)
8398+ , _plWithAttributes :: !(Maybe Bool)
79828399 , _plSubscription :: !(Maybe Text)
79838400 } deriving (Eq,Show,Data,Typeable,Generic)
79848401
@@ -7996,6 +8413,8 @@ data PubsubLocation = PubsubLocation'
79968413--
79978414-- * 'plTopic'
79988415--
8416+-- * 'plWithAttributes'
8417+--
79998418-- * 'plSubscription'
80008419pubsubLocation
80018420 :: PubsubLocation
@@ -8006,6 +8425,7 @@ pubsubLocation =
80068425 , _plTimestampLabel = Nothing
80078426 , _plIdLabel = Nothing
80088427 , _plTopic = Nothing
8428+ , _plWithAttributes = Nothing
80098429 , _plSubscription = Nothing
80108430 }
80118431
@@ -8039,6 +8459,12 @@ plIdLabel
80398459plTopic :: Lens' PubsubLocation (Maybe Text)
80408460plTopic = lens _plTopic (\ s a -> s{_plTopic = a})
80418461
8462+-- | If true, then the client has requested to get pubsub attributes.
8463+plWithAttributes :: Lens' PubsubLocation (Maybe Bool)
8464+plWithAttributes
8465+ = lens _plWithAttributes
8466+ (\ s a -> s{_plWithAttributes = a})
8467+
80428468-- | A pubsub subscription, in the form of
80438469-- \"pubsub.googleapis.com\/subscriptions\/ \/\"
80448470plSubscription :: Lens' PubsubLocation (Maybe Text)
@@ -8056,6 +8482,7 @@ instance FromJSON PubsubLocation where
80568482 <*> (o .:? "timestampLabel")
80578483 <*> (o .:? "idLabel")
80588484 <*> (o .:? "topic")
8485+ <*> (o .:? "withAttributes")
80598486 <*> (o .:? "subscription"))
80608487
80618488instance ToJSON PubsubLocation where
@@ -8068,6 +8495,7 @@ instance ToJSON PubsubLocation where
80688495 ("timestampLabel" .=) <$> _plTimestampLabel,
80698496 ("idLabel" .=) <$> _plIdLabel,
80708497 ("topic" .=) <$> _plTopic,
8498+ ("withAttributes" .=) <$> _plWithAttributes,
80718499 ("subscription" .=) <$> _plSubscription])
80728500
80738501-- | A metric value representing a list of floating point numbers.
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Create.hs+27−15
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Creates a dataflow job.
23+-- Creates a Cloud Dataflow job.
2424--
2525-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.create@.
2626module Network.Google.Resource.Dataflow.Projects.Jobs.Create
@@ -35,6 +35,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Create
3535 -- * Request Lenses
3636 , pjcXgafv
3737 , pjcUploadProtocol
38+ , pjcLocation
3839 , pjcPp
3940 , pjcAccessToken
4041 , pjcUploadType
@@ -58,22 +59,24 @@ type ProjectsJobsCreateResource =
5859 "jobs" :>
5960 QueryParam "$.xgafv" Text :>
6061 QueryParam "upload_protocol" Text :>
61− QueryParam "pp" Bool :>
62− QueryParam "access_token" Text :>
63− QueryParam "uploadType" Text :>
64− QueryParam "bearer_token" Text :>
65− QueryParam "view" Text :>
66− QueryParam "replaceJobId" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− ReqBody '[JSON] Job :> Post '[JSON] Job
70−
71−-- | Creates a dataflow job.
62+ QueryParam "location" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "view" Text :>
68+ QueryParam "replaceJobId" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :>
71+ ReqBody '[JSON] Job :> Post '[JSON] Job
72+
73+-- | Creates a Cloud Dataflow job.
7274--
7375-- /See:/ 'projectsJobsCreate' smart constructor.
7476data ProjectsJobsCreate = ProjectsJobsCreate'
7577 { _pjcXgafv :: !(Maybe Text)
7678 , _pjcUploadProtocol :: !(Maybe Text)
79+ , _pjcLocation :: !(Maybe Text)
7780 , _pjcPp :: !Bool
7881 , _pjcAccessToken :: !(Maybe Text)
7982 , _pjcUploadType :: !(Maybe Text)
@@ -93,6 +96,8 @@ data ProjectsJobsCreate = ProjectsJobsCreate'
9396--
9497-- * 'pjcUploadProtocol'
9598--
99+-- * 'pjcLocation'
100+--
96101-- * 'pjcPp'
97102--
98103-- * 'pjcAccessToken'
@@ -118,6 +123,7 @@ projectsJobsCreate pPjcPayload_ pPjcProjectId_ =
118123 ProjectsJobsCreate'
119124 { _pjcXgafv = Nothing
120125 , _pjcUploadProtocol = Nothing
126+ , _pjcLocation = Nothing
121127 , _pjcPp = True
122128 , _pjcAccessToken = Nothing
123129 , _pjcUploadType = Nothing
@@ -139,6 +145,11 @@ pjcUploadProtocol
139145 = lens _pjcUploadProtocol
140146 (\ s a -> s{_pjcUploadProtocol = a})
141147
148+-- | The location that contains this job.
149+pjcLocation :: Lens' ProjectsJobsCreate (Maybe Text)
150+pjcLocation
151+ = lens _pjcLocation (\ s a -> s{_pjcLocation = a})
152+
142153-- | Pretty-print response.
143154pjcPp :: Lens' ProjectsJobsCreate Bool
144155pjcPp = lens _pjcPp (\ s a -> s{_pjcPp = a})
@@ -166,16 +177,16 @@ pjcBearerToken
166177 = lens _pjcBearerToken
167178 (\ s a -> s{_pjcBearerToken = a})
168179
169−-- | Level of information requested in response.
180+-- | The level of information requested in response.
170181pjcView :: Lens' ProjectsJobsCreate (Maybe Text)
171182pjcView = lens _pjcView (\ s a -> s{_pjcView = a})
172183
173−-- | The project which owns the job.
184+-- | The ID of the Cloud Platform project that the job belongs to.
174185pjcProjectId :: Lens' ProjectsJobsCreate Text
175186pjcProjectId
176187 = lens _pjcProjectId (\ s a -> s{_pjcProjectId = a})
177188
178−-- | DEPRECATED. This field is now on the Job message.
189+-- | Deprecated. This field is now in the Job message.
179190pjcReplaceJobId :: Lens' ProjectsJobsCreate (Maybe Text)
180191pjcReplaceJobId
181192 = lens _pjcReplaceJobId
@@ -193,6 +204,7 @@ instance GoogleRequest ProjectsJobsCreate where
193204 "https://www.googleapis.com/auth/userinfo.email"]
194205 requestClient ProjectsJobsCreate'{..}
195206 = go _pjcProjectId _pjcXgafv _pjcUploadProtocol
207+ _pjcLocation
196208 (Just _pjcPp)
197209 _pjcAccessToken
198210 _pjcUploadType
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs+25−13
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Gets the state of the specified dataflow job.
23+-- Gets the state of the specified Cloud Dataflow job.
2424--
2525-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.get@.
2626module Network.Google.Resource.Dataflow.Projects.Jobs.Get
@@ -36,6 +36,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Get
3636 , pjgXgafv
3737 , pjgJobId
3838 , pjgUploadProtocol
39+ , pjgLocation
3940 , pjgPp
4041 , pjgAccessToken
4142 , pjgUploadType
@@ -58,21 +59,23 @@ type ProjectsJobsGetResource =
5859 Capture "jobId" Text :>
5960 QueryParam "$.xgafv" Text :>
6061 QueryParam "upload_protocol" Text :>
61− QueryParam "pp" Bool :>
62− QueryParam "access_token" Text :>
63− QueryParam "uploadType" Text :>
64− QueryParam "bearer_token" Text :>
65− QueryParam "view" Text :>
66− QueryParam "callback" Text :>
67− QueryParam "alt" AltJSON :> Get '[JSON] Job
68−
69−-- | Gets the state of the specified dataflow job.
62+ QueryParam "location" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "view" Text :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :> Get '[JSON] Job
70+
71+-- | Gets the state of the specified Cloud Dataflow job.
7072--
7173-- /See:/ 'projectsJobsGet' smart constructor.
7274data ProjectsJobsGet = ProjectsJobsGet'
7375 { _pjgXgafv :: !(Maybe Text)
7476 , _pjgJobId :: !Text
7577 , _pjgUploadProtocol :: !(Maybe Text)
78+ , _pjgLocation :: !(Maybe Text)
7679 , _pjgPp :: !Bool
7780 , _pjgAccessToken :: !(Maybe Text)
7881 , _pjgUploadType :: !(Maybe Text)
@@ -92,6 +95,8 @@ data ProjectsJobsGet = ProjectsJobsGet'
9295--
9396-- * 'pjgUploadProtocol'
9497--
98+-- * 'pjgLocation'
99+--
95100-- * 'pjgPp'
96101--
97102-- * 'pjgAccessToken'
@@ -114,6 +119,7 @@ projectsJobsGet pPjgJobId_ pPjgProjectId_ =
114119 { _pjgXgafv = Nothing
115120 , _pjgJobId = pPjgJobId_
116121 , _pjgUploadProtocol = Nothing
122+ , _pjgLocation = Nothing
117123 , _pjgPp = True
118124 , _pjgAccessToken = Nothing
119125 , _pjgUploadType = Nothing
@@ -127,7 +133,7 @@ projectsJobsGet pPjgJobId_ pPjgProjectId_ =
127133pjgXgafv :: Lens' ProjectsJobsGet (Maybe Text)
128134pjgXgafv = lens _pjgXgafv (\ s a -> s{_pjgXgafv = a})
129135
130−-- | Identifies a single job.
136+-- | The job ID.
131137pjgJobId :: Lens' ProjectsJobsGet Text
132138pjgJobId = lens _pjgJobId (\ s a -> s{_pjgJobId = a})
133139
@@ -137,6 +143,11 @@ pjgUploadProtocol
137143 = lens _pjgUploadProtocol
138144 (\ s a -> s{_pjgUploadProtocol = a})
139145
146+-- | The location that contains this job.
147+pjgLocation :: Lens' ProjectsJobsGet (Maybe Text)
148+pjgLocation
149+ = lens _pjgLocation (\ s a -> s{_pjgLocation = a})
150+
140151-- | Pretty-print response.
141152pjgPp :: Lens' ProjectsJobsGet Bool
142153pjgPp = lens _pjgPp (\ s a -> s{_pjgPp = a})
@@ -159,11 +170,11 @@ pjgBearerToken
159170 = lens _pjgBearerToken
160171 (\ s a -> s{_pjgBearerToken = a})
161172
162−-- | Level of information requested in response.
173+-- | The level of information requested in response.
163174pjgView :: Lens' ProjectsJobsGet (Maybe Text)
164175pjgView = lens _pjgView (\ s a -> s{_pjgView = a})
165176
166−-- | The project which owns the job.
177+-- | The ID of the Cloud Platform project that the job belongs to.
167178pjgProjectId :: Lens' ProjectsJobsGet Text
168179pjgProjectId
169180 = lens _pjgProjectId (\ s a -> s{_pjgProjectId = a})
@@ -181,6 +192,7 @@ instance GoogleRequest ProjectsJobsGet where
181192 requestClient ProjectsJobsGet'{..}
182193 = go _pjgProjectId _pjgJobId _pjgXgafv
183194 _pjgUploadProtocol
195+ _pjgLocation
184196 (Just _pjgPp)
185197 _pjgAccessToken
186198 _pjgUploadType
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/GetMetrics.hs+20−8
@@ -36,6 +36,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.GetMetrics
3636 , pjgmXgafv
3737 , pjgmJobId
3838 , pjgmUploadProtocol
39+ , pjgmLocation
3940 , pjgmStartTime
4041 , pjgmPp
4142 , pjgmAccessToken
@@ -59,14 +60,15 @@ type ProjectsJobsGetMetricsResource =
5960 "metrics" :>
6061 QueryParam "$.xgafv" Text :>
6162 QueryParam "upload_protocol" Text :>
62− QueryParam "startTime" Text :>
63− QueryParam "pp" Bool :>
64− QueryParam "access_token" Text :>
65− QueryParam "uploadType" Text :>
66− QueryParam "bearer_token" Text :>
67− QueryParam "callback" Text :>
68− QueryParam "alt" AltJSON :>
69− Get '[JSON] JobMetrics
63+ QueryParam "location" Text :>
64+ QueryParam "startTime" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :>
71+ Get '[JSON] JobMetrics
7072
7173-- | Request the job status.
7274--
@@ -75,6 +77,7 @@ data ProjectsJobsGetMetrics = ProjectsJobsGetMetrics'
7577 { _pjgmXgafv :: !(Maybe Text)
7678 , _pjgmJobId :: !Text
7779 , _pjgmUploadProtocol :: !(Maybe Text)
80+ , _pjgmLocation :: !(Maybe Text)
7881 , _pjgmStartTime :: !(Maybe Text)
7982 , _pjgmPp :: !Bool
8083 , _pjgmAccessToken :: !(Maybe Text)
@@ -94,6 +97,8 @@ data ProjectsJobsGetMetrics = ProjectsJobsGetMetrics'
9497--
9598-- * 'pjgmUploadProtocol'
9699--
100+-- * 'pjgmLocation'
101+--
97102-- * 'pjgmStartTime'
98103--
99104-- * 'pjgmPp'
@@ -116,6 +121,7 @@ projectsJobsGetMetrics pPjgmJobId_ pPjgmProjectId_ =
116121 { _pjgmXgafv = Nothing
117122 , _pjgmJobId = pPjgmJobId_
118123 , _pjgmUploadProtocol = Nothing
124+ , _pjgmLocation = Nothing
119125 , _pjgmStartTime = Nothing
120126 , _pjgmPp = True
121127 , _pjgmAccessToken = Nothing
@@ -141,6 +147,11 @@ pjgmUploadProtocol
141147 = lens _pjgmUploadProtocol
142148 (\ s a -> s{_pjgmUploadProtocol = a})
143149
150+-- | The location which contains the job specified by job_id.
151+pjgmLocation :: Lens' ProjectsJobsGetMetrics (Maybe Text)
152+pjgmLocation
153+ = lens _pjgmLocation (\ s a -> s{_pjgmLocation = a})
154+
144155-- | Return only metric data that has changed since this time. Default is to
145156-- return all information about all metrics for the job.
146157pjgmStartTime :: Lens' ProjectsJobsGetMetrics (Maybe Text)
@@ -189,6 +200,7 @@ instance GoogleRequest ProjectsJobsGetMetrics where
189200 requestClient ProjectsJobsGetMetrics'{..}
190201 = go _pjgmProjectId _pjgmJobId _pjgmXgafv
191202 _pjgmUploadProtocol
203+ _pjgmLocation
192204 _pjgmStartTime
193205 (Just _pjgmPp)
194206 _pjgmAccessToken
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs+28−15
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- List the jobs of a project
23+-- List the jobs of a project.
2424--
2525-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.list@.
2626module Network.Google.Resource.Dataflow.Projects.Jobs.List
@@ -35,6 +35,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.List
3535 -- * Request Lenses
3636 , pjlXgafv
3737 , pjlUploadProtocol
38+ , pjlLocation
3839 , pjlPp
3940 , pjlAccessToken
4041 , pjlUploadType
@@ -59,24 +60,26 @@ type ProjectsJobsListResource =
5960 "jobs" :>
6061 QueryParam "$.xgafv" Text :>
6162 QueryParam "upload_protocol" Text :>
62− QueryParam "pp" Bool :>
63− QueryParam "access_token" Text :>
64− QueryParam "uploadType" Text :>
65− QueryParam "bearer_token" Text :>
66− QueryParam "view" Text :>
67− QueryParam "filter" Text :>
68− QueryParam "pageToken" Text :>
69− QueryParam "pageSize" (Textual Int32) :>
70− QueryParam "callback" Text :>
71− QueryParam "alt" AltJSON :>
72− Get '[JSON] ListJobsResponse
73−
74−-- | List the jobs of a project
63+ QueryParam "location" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "view" Text :>
69+ QueryParam "filter" Text :>
70+ QueryParam "pageToken" Text :>
71+ QueryParam "pageSize" (Textual Int32) :>
72+ QueryParam "callback" Text :>
73+ QueryParam "alt" AltJSON :>
74+ Get '[JSON] ListJobsResponse
75+
76+-- | List the jobs of a project.
7577--
7678-- /See:/ 'projectsJobsList' smart constructor.
7779data ProjectsJobsList = ProjectsJobsList'
7880 { _pjlXgafv :: !(Maybe Text)
7981 , _pjlUploadProtocol :: !(Maybe Text)
82+ , _pjlLocation :: !(Maybe Text)
8083 , _pjlPp :: !Bool
8184 , _pjlAccessToken :: !(Maybe Text)
8285 , _pjlUploadType :: !(Maybe Text)
@@ -97,6 +100,8 @@ data ProjectsJobsList = ProjectsJobsList'
97100--
98101-- * 'pjlUploadProtocol'
99102--
103+-- * 'pjlLocation'
104+--
100105-- * 'pjlPp'
101106--
102107-- * 'pjlAccessToken'
@@ -123,6 +128,7 @@ projectsJobsList pPjlProjectId_ =
123128 ProjectsJobsList'
124129 { _pjlXgafv = Nothing
125130 , _pjlUploadProtocol = Nothing
131+ , _pjlLocation = Nothing
126132 , _pjlPp = True
127133 , _pjlAccessToken = Nothing
128134 , _pjlUploadType = Nothing
@@ -145,6 +151,11 @@ pjlUploadProtocol
145151 = lens _pjlUploadProtocol
146152 (\ s a -> s{_pjlUploadProtocol = a})
147153
154+-- | The location that contains this job.
155+pjlLocation :: Lens' ProjectsJobsList (Maybe Text)
156+pjlLocation
157+ = lens _pjlLocation (\ s a -> s{_pjlLocation = a})
158+
148159-- | Pretty-print response.
149160pjlPp :: Lens' ProjectsJobsList Bool
150161pjlPp = lens _pjlPp (\ s a -> s{_pjlPp = a})
@@ -167,7 +178,8 @@ pjlBearerToken
167178 = lens _pjlBearerToken
168179 (\ s a -> s{_pjlBearerToken = a})
169180
170−-- | Level of information requested in response. Default is SUMMARY.
181+-- | Level of information requested in response. Default is
182+-- \`JOB_VIEW_SUMMARY\`.
171183pjlView :: Lens' ProjectsJobsList (Maybe Text)
172184pjlView = lens _pjlView (\ s a -> s{_pjlView = a})
173185
@@ -207,6 +219,7 @@ instance GoogleRequest ProjectsJobsList where
207219 "https://www.googleapis.com/auth/userinfo.email"]
208220 requestClient ProjectsJobsList'{..}
209221 = go _pjlProjectId _pjlXgafv _pjlUploadProtocol
222+ _pjlLocation
210223 (Just _pjlPp)
211224 _pjlAccessToken
212225 _pjlUploadType
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Messages/List.hs+24−12
@@ -36,6 +36,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Messages.List
3636 , pjmlXgafv
3737 , pjmlJobId
3838 , pjmlUploadProtocol
39+ , pjmlLocation
3940 , pjmlStartTime
4041 , pjmlPp
4142 , pjmlAccessToken
@@ -63,18 +64,19 @@ type ProjectsJobsMessagesListResource =
6364 "messages" :>
6465 QueryParam "$.xgafv" Text :>
6566 QueryParam "upload_protocol" Text :>
66− QueryParam "startTime" Text :>
67− QueryParam "pp" Bool :>
68− QueryParam "access_token" Text :>
69− QueryParam "uploadType" Text :>
70− QueryParam "bearer_token" Text :>
71− QueryParam "endTime" Text :>
72− QueryParam "minimumImportance" Text :>
73− QueryParam "pageToken" Text :>
74− QueryParam "pageSize" (Textual Int32) :>
75− QueryParam "callback" Text :>
76− QueryParam "alt" AltJSON :>
77− Get '[JSON] ListJobMessagesResponse
67+ QueryParam "location" Text :>
68+ QueryParam "startTime" Text :>
69+ QueryParam "pp" Bool :>
70+ QueryParam "access_token" Text :>
71+ QueryParam "uploadType" Text :>
72+ QueryParam "bearer_token" Text :>
73+ QueryParam "endTime" Text :>
74+ QueryParam "minimumImportance" Text :>
75+ QueryParam "pageToken" Text :>
76+ QueryParam "pageSize" (Textual Int32) :>
77+ QueryParam "callback" Text :>
78+ QueryParam "alt" AltJSON :>
79+ Get '[JSON] ListJobMessagesResponse
7880
7981-- | Request the job status.
8082--
@@ -83,6 +85,7 @@ data ProjectsJobsMessagesList = ProjectsJobsMessagesList'
8385 { _pjmlXgafv :: !(Maybe Text)
8486 , _pjmlJobId :: !Text
8587 , _pjmlUploadProtocol :: !(Maybe Text)
88+ , _pjmlLocation :: !(Maybe Text)
8689 , _pjmlStartTime :: !(Maybe Text)
8790 , _pjmlPp :: !Bool
8891 , _pjmlAccessToken :: !(Maybe Text)
@@ -106,6 +109,8 @@ data ProjectsJobsMessagesList = ProjectsJobsMessagesList'
106109--
107110-- * 'pjmlUploadProtocol'
108111--
112+-- * 'pjmlLocation'
113+--
109114-- * 'pjmlStartTime'
110115--
111116-- * 'pjmlPp'
@@ -136,6 +141,7 @@ projectsJobsMessagesList pPjmlJobId_ pPjmlProjectId_ =
136141 { _pjmlXgafv = Nothing
137142 , _pjmlJobId = pPjmlJobId_
138143 , _pjmlUploadProtocol = Nothing
144+ , _pjmlLocation = Nothing
139145 , _pjmlStartTime = Nothing
140146 , _pjmlPp = True
141147 , _pjmlAccessToken = Nothing
@@ -165,6 +171,11 @@ pjmlUploadProtocol
165171 = lens _pjmlUploadProtocol
166172 (\ s a -> s{_pjmlUploadProtocol = a})
167173
174+-- | The location which contains the job specified by job_id.
175+pjmlLocation :: Lens' ProjectsJobsMessagesList (Maybe Text)
176+pjmlLocation
177+ = lens _pjmlLocation (\ s a -> s{_pjmlLocation = a})
178+
168179-- | If specified, return only messages with timestamps >= start_time. The
169180-- default is the job creation time (i.e. beginning of messages).
170181pjmlStartTime :: Lens' ProjectsJobsMessagesList (Maybe Text)
@@ -241,6 +252,7 @@ instance GoogleRequest ProjectsJobsMessagesList where
241252 requestClient ProjectsJobsMessagesList'{..}
242253 = go _pjmlProjectId _pjmlJobId _pjmlXgafv
243254 _pjmlUploadProtocol
255+ _pjmlLocation
244256 _pjmlStartTime
245257 (Just _pjmlPp)
246258 _pjmlAccessToken
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Update.hs+24−12
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Updates the state of an existing dataflow job.
23+-- Updates the state of an existing Cloud Dataflow job.
2424--
2525-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.update@.
2626module Network.Google.Resource.Dataflow.Projects.Jobs.Update
@@ -36,6 +36,7 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Update
3636 , pjuXgafv
3737 , pjuJobId
3838 , pjuUploadProtocol
39+ , pjuLocation
3940 , pjuPp
4041 , pjuAccessToken
4142 , pjuUploadType
@@ -58,21 +59,23 @@ type ProjectsJobsUpdateResource =
5859 Capture "jobId" Text :>
5960 QueryParam "$.xgafv" Text :>
6061 QueryParam "upload_protocol" Text :>
61− QueryParam "pp" Bool :>
62− QueryParam "access_token" Text :>
63− QueryParam "uploadType" Text :>
64− QueryParam "bearer_token" Text :>
65− QueryParam "callback" Text :>
66− QueryParam "alt" AltJSON :>
67− ReqBody '[JSON] Job :> Put '[JSON] Job
68−
69−-- | Updates the state of an existing dataflow job.
62+ QueryParam "location" Text :>
63+ QueryParam "pp" Bool :>
64+ QueryParam "access_token" Text :>
65+ QueryParam "uploadType" Text :>
66+ QueryParam "bearer_token" Text :>
67+ QueryParam "callback" Text :>
68+ QueryParam "alt" AltJSON :>
69+ ReqBody '[JSON] Job :> Put '[JSON] Job
70+
71+-- | Updates the state of an existing Cloud Dataflow job.
7072--
7173-- /See:/ 'projectsJobsUpdate' smart constructor.
7274data ProjectsJobsUpdate = ProjectsJobsUpdate'
7375 { _pjuXgafv :: !(Maybe Text)
7476 , _pjuJobId :: !Text
7577 , _pjuUploadProtocol :: !(Maybe Text)
78+ , _pjuLocation :: !(Maybe Text)
7679 , _pjuPp :: !Bool
7780 , _pjuAccessToken :: !(Maybe Text)
7881 , _pjuUploadType :: !(Maybe Text)
@@ -92,6 +95,8 @@ data ProjectsJobsUpdate = ProjectsJobsUpdate'
9295--
9396-- * 'pjuUploadProtocol'
9497--
98+-- * 'pjuLocation'
99+--
95100-- * 'pjuPp'
96101--
97102-- * 'pjuAccessToken'
@@ -115,6 +120,7 @@ projectsJobsUpdate pPjuJobId_ pPjuPayload_ pPjuProjectId_ =
115120 { _pjuXgafv = Nothing
116121 , _pjuJobId = pPjuJobId_
117122 , _pjuUploadProtocol = Nothing
123+ , _pjuLocation = Nothing
118124 , _pjuPp = True
119125 , _pjuAccessToken = Nothing
120126 , _pjuUploadType = Nothing
@@ -128,7 +134,7 @@ projectsJobsUpdate pPjuJobId_ pPjuPayload_ pPjuProjectId_ =
128134pjuXgafv :: Lens' ProjectsJobsUpdate (Maybe Text)
129135pjuXgafv = lens _pjuXgafv (\ s a -> s{_pjuXgafv = a})
130136
131−-- | Identifies a single job.
137+-- | The job ID.
132138pjuJobId :: Lens' ProjectsJobsUpdate Text
133139pjuJobId = lens _pjuJobId (\ s a -> s{_pjuJobId = a})
134140
@@ -138,6 +144,11 @@ pjuUploadProtocol
138144 = lens _pjuUploadProtocol
139145 (\ s a -> s{_pjuUploadProtocol = a})
140146
147+-- | The location that contains this job.
148+pjuLocation :: Lens' ProjectsJobsUpdate (Maybe Text)
149+pjuLocation
150+ = lens _pjuLocation (\ s a -> s{_pjuLocation = a})
151+
141152-- | Pretty-print response.
142153pjuPp :: Lens' ProjectsJobsUpdate Bool
143154pjuPp = lens _pjuPp (\ s a -> s{_pjuPp = a})
@@ -165,7 +176,7 @@ pjuBearerToken
165176 = lens _pjuBearerToken
166177 (\ s a -> s{_pjuBearerToken = a})
167178
168−-- | The project which owns the job.
179+-- | The ID of the Cloud Platform project that the job belongs to.
169180pjuProjectId :: Lens' ProjectsJobsUpdate Text
170181pjuProjectId
171182 = lens _pjuProjectId (\ s a -> s{_pjuProjectId = a})
@@ -183,6 +194,7 @@ instance GoogleRequest ProjectsJobsUpdate where
183194 requestClient ProjectsJobsUpdate'{..}
184195 = go _pjuProjectId _pjuJobId _pjuXgafv
185196 _pjuUploadProtocol
197+ _pjuLocation
186198 (Just _pjuPp)
187199 _pjuAccessToken
188200 _pjuUploadType
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hsnew file+226
@@ -0,0 +1,226 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Creates a Cloud Dataflow job.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.create@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsCreateResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsCreate
33+ , ProjectsLocationsJobsCreate
34+
35+ -- * Request Lenses
36+ , pljcXgafv
37+ , pljcUploadProtocol
38+ , pljcLocation
39+ , pljcPp
40+ , pljcAccessToken
41+ , pljcUploadType
42+ , pljcPayload
43+ , pljcBearerToken
44+ , pljcView
45+ , pljcProjectId
46+ , pljcReplaceJobId
47+ , pljcCallback
48+ ) where
49+
50+import Network.Google.Dataflow.Types
51+import Network.Google.Prelude
52+
53+-- | A resource alias for @dataflow.projects.locations.jobs.create@ method which the
54+-- 'ProjectsLocationsJobsCreate' request conforms to.
55+type ProjectsLocationsJobsCreateResource =
56+ "v1b3" :>
57+ "projects" :>
58+ Capture "projectId" Text :>
59+ "locations" :>
60+ Capture "location" Text :>
61+ "jobs" :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "view" Text :>
69+ QueryParam "replaceJobId" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "alt" AltJSON :>
72+ ReqBody '[JSON] Job :> Post '[JSON] Job
73+
74+-- | Creates a Cloud Dataflow job.
75+--
76+-- /See:/ 'projectsLocationsJobsCreate' smart constructor.
77+data ProjectsLocationsJobsCreate = ProjectsLocationsJobsCreate'
78+ { _pljcXgafv :: !(Maybe Text)
79+ , _pljcUploadProtocol :: !(Maybe Text)
80+ , _pljcLocation :: !Text
81+ , _pljcPp :: !Bool
82+ , _pljcAccessToken :: !(Maybe Text)
83+ , _pljcUploadType :: !(Maybe Text)
84+ , _pljcPayload :: !Job
85+ , _pljcBearerToken :: !(Maybe Text)
86+ , _pljcView :: !(Maybe Text)
87+ , _pljcProjectId :: !Text
88+ , _pljcReplaceJobId :: !(Maybe Text)
89+ , _pljcCallback :: !(Maybe Text)
90+ } deriving (Eq,Show,Data,Typeable,Generic)
91+
92+-- | Creates a value of 'ProjectsLocationsJobsCreate' with the minimum fields required to make a request.
93+--
94+-- Use one of the following lenses to modify other fields as desired:
95+--
96+-- * 'pljcXgafv'
97+--
98+-- * 'pljcUploadProtocol'
99+--
100+-- * 'pljcLocation'
101+--
102+-- * 'pljcPp'
103+--
104+-- * 'pljcAccessToken'
105+--
106+-- * 'pljcUploadType'
107+--
108+-- * 'pljcPayload'
109+--
110+-- * 'pljcBearerToken'
111+--
112+-- * 'pljcView'
113+--
114+-- * 'pljcProjectId'
115+--
116+-- * 'pljcReplaceJobId'
117+--
118+-- * 'pljcCallback'
119+projectsLocationsJobsCreate
120+ :: Text -- ^ 'pljcLocation'
121+ -> Job -- ^ 'pljcPayload'
122+ -> Text -- ^ 'pljcProjectId'
123+ -> ProjectsLocationsJobsCreate
124+projectsLocationsJobsCreate pPljcLocation_ pPljcPayload_ pPljcProjectId_ =
125+ ProjectsLocationsJobsCreate'
126+ { _pljcXgafv = Nothing
127+ , _pljcUploadProtocol = Nothing
128+ , _pljcLocation = pPljcLocation_
129+ , _pljcPp = True
130+ , _pljcAccessToken = Nothing
131+ , _pljcUploadType = Nothing
132+ , _pljcPayload = pPljcPayload_
133+ , _pljcBearerToken = Nothing
134+ , _pljcView = Nothing
135+ , _pljcProjectId = pPljcProjectId_
136+ , _pljcReplaceJobId = Nothing
137+ , _pljcCallback = Nothing
138+ }
139+
140+-- | V1 error format.
141+pljcXgafv :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
142+pljcXgafv
143+ = lens _pljcXgafv (\ s a -> s{_pljcXgafv = a})
144+
145+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
146+pljcUploadProtocol :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
147+pljcUploadProtocol
148+ = lens _pljcUploadProtocol
149+ (\ s a -> s{_pljcUploadProtocol = a})
150+
151+-- | The location that contains this job.
152+pljcLocation :: Lens' ProjectsLocationsJobsCreate Text
153+pljcLocation
154+ = lens _pljcLocation (\ s a -> s{_pljcLocation = a})
155+
156+-- | Pretty-print response.
157+pljcPp :: Lens' ProjectsLocationsJobsCreate Bool
158+pljcPp = lens _pljcPp (\ s a -> s{_pljcPp = a})
159+
160+-- | OAuth access token.
161+pljcAccessToken :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
162+pljcAccessToken
163+ = lens _pljcAccessToken
164+ (\ s a -> s{_pljcAccessToken = a})
165+
166+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
167+pljcUploadType :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
168+pljcUploadType
169+ = lens _pljcUploadType
170+ (\ s a -> s{_pljcUploadType = a})
171+
172+-- | Multipart request metadata.
173+pljcPayload :: Lens' ProjectsLocationsJobsCreate Job
174+pljcPayload
175+ = lens _pljcPayload (\ s a -> s{_pljcPayload = a})
176+
177+-- | OAuth bearer token.
178+pljcBearerToken :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
179+pljcBearerToken
180+ = lens _pljcBearerToken
181+ (\ s a -> s{_pljcBearerToken = a})
182+
183+-- | The level of information requested in response.
184+pljcView :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
185+pljcView = lens _pljcView (\ s a -> s{_pljcView = a})
186+
187+-- | The ID of the Cloud Platform project that the job belongs to.
188+pljcProjectId :: Lens' ProjectsLocationsJobsCreate Text
189+pljcProjectId
190+ = lens _pljcProjectId
191+ (\ s a -> s{_pljcProjectId = a})
192+
193+-- | Deprecated. This field is now in the Job message.
194+pljcReplaceJobId :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
195+pljcReplaceJobId
196+ = lens _pljcReplaceJobId
197+ (\ s a -> s{_pljcReplaceJobId = a})
198+
199+-- | JSONP
200+pljcCallback :: Lens' ProjectsLocationsJobsCreate (Maybe Text)
201+pljcCallback
202+ = lens _pljcCallback (\ s a -> s{_pljcCallback = a})
203+
204+instance GoogleRequest ProjectsLocationsJobsCreate
205+ where
206+ type Rs ProjectsLocationsJobsCreate = Job
207+ type Scopes ProjectsLocationsJobsCreate =
208+ '["https://www.googleapis.com/auth/cloud-platform",
209+ "https://www.googleapis.com/auth/userinfo.email"]
210+ requestClient ProjectsLocationsJobsCreate'{..}
211+ = go _pljcProjectId _pljcLocation _pljcXgafv
212+ _pljcUploadProtocol
213+ (Just _pljcPp)
214+ _pljcAccessToken
215+ _pljcUploadType
216+ _pljcBearerToken
217+ _pljcView
218+ _pljcReplaceJobId
219+ _pljcCallback
220+ (Just AltJSON)
221+ _pljcPayload
222+ dataflowService
223+ where go
224+ = buildClient
225+ (Proxy :: Proxy ProjectsLocationsJobsCreateResource)
226+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hsnew file+212
@@ -0,0 +1,212 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Gets the state of the specified Cloud Dataflow job.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.get@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsGetResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsGet
33+ , ProjectsLocationsJobsGet
34+
35+ -- * Request Lenses
36+ , pljgXgafv
37+ , pljgJobId
38+ , pljgUploadProtocol
39+ , pljgLocation
40+ , pljgPp
41+ , pljgAccessToken
42+ , pljgUploadType
43+ , pljgBearerToken
44+ , pljgView
45+ , pljgProjectId
46+ , pljgCallback
47+ ) where
48+
49+import Network.Google.Dataflow.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @dataflow.projects.locations.jobs.get@ method which the
53+-- 'ProjectsLocationsJobsGet' request conforms to.
54+type ProjectsLocationsJobsGetResource =
55+ "v1b3" :>
56+ "projects" :>
57+ Capture "projectId" Text :>
58+ "locations" :>
59+ Capture "location" Text :>
60+ "jobs" :>
61+ Capture "jobId" Text :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "view" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :> Get '[JSON] Job
71+
72+-- | Gets the state of the specified Cloud Dataflow job.
73+--
74+-- /See:/ 'projectsLocationsJobsGet' smart constructor.
75+data ProjectsLocationsJobsGet = ProjectsLocationsJobsGet'
76+ { _pljgXgafv :: !(Maybe Text)
77+ , _pljgJobId :: !Text
78+ , _pljgUploadProtocol :: !(Maybe Text)
79+ , _pljgLocation :: !Text
80+ , _pljgPp :: !Bool
81+ , _pljgAccessToken :: !(Maybe Text)
82+ , _pljgUploadType :: !(Maybe Text)
83+ , _pljgBearerToken :: !(Maybe Text)
84+ , _pljgView :: !(Maybe Text)
85+ , _pljgProjectId :: !Text
86+ , _pljgCallback :: !(Maybe Text)
87+ } deriving (Eq,Show,Data,Typeable,Generic)
88+
89+-- | Creates a value of 'ProjectsLocationsJobsGet' with the minimum fields required to make a request.
90+--
91+-- Use one of the following lenses to modify other fields as desired:
92+--
93+-- * 'pljgXgafv'
94+--
95+-- * 'pljgJobId'
96+--
97+-- * 'pljgUploadProtocol'
98+--
99+-- * 'pljgLocation'
100+--
101+-- * 'pljgPp'
102+--
103+-- * 'pljgAccessToken'
104+--
105+-- * 'pljgUploadType'
106+--
107+-- * 'pljgBearerToken'
108+--
109+-- * 'pljgView'
110+--
111+-- * 'pljgProjectId'
112+--
113+-- * 'pljgCallback'
114+projectsLocationsJobsGet
115+ :: Text -- ^ 'pljgJobId'
116+ -> Text -- ^ 'pljgLocation'
117+ -> Text -- ^ 'pljgProjectId'
118+ -> ProjectsLocationsJobsGet
119+projectsLocationsJobsGet pPljgJobId_ pPljgLocation_ pPljgProjectId_ =
120+ ProjectsLocationsJobsGet'
121+ { _pljgXgafv = Nothing
122+ , _pljgJobId = pPljgJobId_
123+ , _pljgUploadProtocol = Nothing
124+ , _pljgLocation = pPljgLocation_
125+ , _pljgPp = True
126+ , _pljgAccessToken = Nothing
127+ , _pljgUploadType = Nothing
128+ , _pljgBearerToken = Nothing
129+ , _pljgView = Nothing
130+ , _pljgProjectId = pPljgProjectId_
131+ , _pljgCallback = Nothing
132+ }
133+
134+-- | V1 error format.
135+pljgXgafv :: Lens' ProjectsLocationsJobsGet (Maybe Text)
136+pljgXgafv
137+ = lens _pljgXgafv (\ s a -> s{_pljgXgafv = a})
138+
139+-- | The job ID.
140+pljgJobId :: Lens' ProjectsLocationsJobsGet Text
141+pljgJobId
142+ = lens _pljgJobId (\ s a -> s{_pljgJobId = a})
143+
144+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
145+pljgUploadProtocol :: Lens' ProjectsLocationsJobsGet (Maybe Text)
146+pljgUploadProtocol
147+ = lens _pljgUploadProtocol
148+ (\ s a -> s{_pljgUploadProtocol = a})
149+
150+-- | The location that contains this job.
151+pljgLocation :: Lens' ProjectsLocationsJobsGet Text
152+pljgLocation
153+ = lens _pljgLocation (\ s a -> s{_pljgLocation = a})
154+
155+-- | Pretty-print response.
156+pljgPp :: Lens' ProjectsLocationsJobsGet Bool
157+pljgPp = lens _pljgPp (\ s a -> s{_pljgPp = a})
158+
159+-- | OAuth access token.
160+pljgAccessToken :: Lens' ProjectsLocationsJobsGet (Maybe Text)
161+pljgAccessToken
162+ = lens _pljgAccessToken
163+ (\ s a -> s{_pljgAccessToken = a})
164+
165+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
166+pljgUploadType :: Lens' ProjectsLocationsJobsGet (Maybe Text)
167+pljgUploadType
168+ = lens _pljgUploadType
169+ (\ s a -> s{_pljgUploadType = a})
170+
171+-- | OAuth bearer token.
172+pljgBearerToken :: Lens' ProjectsLocationsJobsGet (Maybe Text)
173+pljgBearerToken
174+ = lens _pljgBearerToken
175+ (\ s a -> s{_pljgBearerToken = a})
176+
177+-- | The level of information requested in response.
178+pljgView :: Lens' ProjectsLocationsJobsGet (Maybe Text)
179+pljgView = lens _pljgView (\ s a -> s{_pljgView = a})
180+
181+-- | The ID of the Cloud Platform project that the job belongs to.
182+pljgProjectId :: Lens' ProjectsLocationsJobsGet Text
183+pljgProjectId
184+ = lens _pljgProjectId
185+ (\ s a -> s{_pljgProjectId = a})
186+
187+-- | JSONP
188+pljgCallback :: Lens' ProjectsLocationsJobsGet (Maybe Text)
189+pljgCallback
190+ = lens _pljgCallback (\ s a -> s{_pljgCallback = a})
191+
192+instance GoogleRequest ProjectsLocationsJobsGet where
193+ type Rs ProjectsLocationsJobsGet = Job
194+ type Scopes ProjectsLocationsJobsGet =
195+ '["https://www.googleapis.com/auth/cloud-platform",
196+ "https://www.googleapis.com/auth/userinfo.email"]
197+ requestClient ProjectsLocationsJobsGet'{..}
198+ = go _pljgProjectId _pljgLocation _pljgJobId
199+ _pljgXgafv
200+ _pljgUploadProtocol
201+ (Just _pljgPp)
202+ _pljgAccessToken
203+ _pljgUploadType
204+ _pljgBearerToken
205+ _pljgView
206+ _pljgCallback
207+ (Just AltJSON)
208+ dataflowService
209+ where go
210+ = buildClient
211+ (Proxy :: Proxy ProjectsLocationsJobsGetResource)
212+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hsnew file+221
@@ -0,0 +1,221 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Request the job status.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.getMetrics@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsGetMetricsResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsGetMetrics
33+ , ProjectsLocationsJobsGetMetrics
34+
35+ -- * Request Lenses
36+ , pljgmXgafv
37+ , pljgmJobId
38+ , pljgmUploadProtocol
39+ , pljgmLocation
40+ , pljgmStartTime
41+ , pljgmPp
42+ , pljgmAccessToken
43+ , pljgmUploadType
44+ , pljgmBearerToken
45+ , pljgmProjectId
46+ , pljgmCallback
47+ ) where
48+
49+import Network.Google.Dataflow.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @dataflow.projects.locations.jobs.getMetrics@ method which the
53+-- 'ProjectsLocationsJobsGetMetrics' request conforms to.
54+type ProjectsLocationsJobsGetMetricsResource =
55+ "v1b3" :>
56+ "projects" :>
57+ Capture "projectId" Text :>
58+ "locations" :>
59+ Capture "location" Text :>
60+ "jobs" :>
61+ Capture "jobId" Text :>
62+ "metrics" :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "startTime" Text :>
66+ QueryParam "pp" Bool :>
67+ QueryParam "access_token" Text :>
68+ QueryParam "uploadType" Text :>
69+ QueryParam "bearer_token" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "alt" AltJSON :>
72+ Get '[JSON] JobMetrics
73+
74+-- | Request the job status.
75+--
76+-- /See:/ 'projectsLocationsJobsGetMetrics' smart constructor.
77+data ProjectsLocationsJobsGetMetrics = ProjectsLocationsJobsGetMetrics'
78+ { _pljgmXgafv :: !(Maybe Text)
79+ , _pljgmJobId :: !Text
80+ , _pljgmUploadProtocol :: !(Maybe Text)
81+ , _pljgmLocation :: !Text
82+ , _pljgmStartTime :: !(Maybe Text)
83+ , _pljgmPp :: !Bool
84+ , _pljgmAccessToken :: !(Maybe Text)
85+ , _pljgmUploadType :: !(Maybe Text)
86+ , _pljgmBearerToken :: !(Maybe Text)
87+ , _pljgmProjectId :: !Text
88+ , _pljgmCallback :: !(Maybe Text)
89+ } deriving (Eq,Show,Data,Typeable,Generic)
90+
91+-- | Creates a value of 'ProjectsLocationsJobsGetMetrics' with the minimum fields required to make a request.
92+--
93+-- Use one of the following lenses to modify other fields as desired:
94+--
95+-- * 'pljgmXgafv'
96+--
97+-- * 'pljgmJobId'
98+--
99+-- * 'pljgmUploadProtocol'
100+--
101+-- * 'pljgmLocation'
102+--
103+-- * 'pljgmStartTime'
104+--
105+-- * 'pljgmPp'
106+--
107+-- * 'pljgmAccessToken'
108+--
109+-- * 'pljgmUploadType'
110+--
111+-- * 'pljgmBearerToken'
112+--
113+-- * 'pljgmProjectId'
114+--
115+-- * 'pljgmCallback'
116+projectsLocationsJobsGetMetrics
117+ :: Text -- ^ 'pljgmJobId'
118+ -> Text -- ^ 'pljgmLocation'
119+ -> Text -- ^ 'pljgmProjectId'
120+ -> ProjectsLocationsJobsGetMetrics
121+projectsLocationsJobsGetMetrics pPljgmJobId_ pPljgmLocation_ pPljgmProjectId_ =
122+ ProjectsLocationsJobsGetMetrics'
123+ { _pljgmXgafv = Nothing
124+ , _pljgmJobId = pPljgmJobId_
125+ , _pljgmUploadProtocol = Nothing
126+ , _pljgmLocation = pPljgmLocation_
127+ , _pljgmStartTime = Nothing
128+ , _pljgmPp = True
129+ , _pljgmAccessToken = Nothing
130+ , _pljgmUploadType = Nothing
131+ , _pljgmBearerToken = Nothing
132+ , _pljgmProjectId = pPljgmProjectId_
133+ , _pljgmCallback = Nothing
134+ }
135+
136+-- | V1 error format.
137+pljgmXgafv :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
138+pljgmXgafv
139+ = lens _pljgmXgafv (\ s a -> s{_pljgmXgafv = a})
140+
141+-- | The job to get messages for.
142+pljgmJobId :: Lens' ProjectsLocationsJobsGetMetrics Text
143+pljgmJobId
144+ = lens _pljgmJobId (\ s a -> s{_pljgmJobId = a})
145+
146+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
147+pljgmUploadProtocol :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
148+pljgmUploadProtocol
149+ = lens _pljgmUploadProtocol
150+ (\ s a -> s{_pljgmUploadProtocol = a})
151+
152+-- | The location which contains the job specified by job_id.
153+pljgmLocation :: Lens' ProjectsLocationsJobsGetMetrics Text
154+pljgmLocation
155+ = lens _pljgmLocation
156+ (\ s a -> s{_pljgmLocation = a})
157+
158+-- | Return only metric data that has changed since this time. Default is to
159+-- return all information about all metrics for the job.
160+pljgmStartTime :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
161+pljgmStartTime
162+ = lens _pljgmStartTime
163+ (\ s a -> s{_pljgmStartTime = a})
164+
165+-- | Pretty-print response.
166+pljgmPp :: Lens' ProjectsLocationsJobsGetMetrics Bool
167+pljgmPp = lens _pljgmPp (\ s a -> s{_pljgmPp = a})
168+
169+-- | OAuth access token.
170+pljgmAccessToken :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
171+pljgmAccessToken
172+ = lens _pljgmAccessToken
173+ (\ s a -> s{_pljgmAccessToken = a})
174+
175+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
176+pljgmUploadType :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
177+pljgmUploadType
178+ = lens _pljgmUploadType
179+ (\ s a -> s{_pljgmUploadType = a})
180+
181+-- | OAuth bearer token.
182+pljgmBearerToken :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
183+pljgmBearerToken
184+ = lens _pljgmBearerToken
185+ (\ s a -> s{_pljgmBearerToken = a})
186+
187+-- | A project id.
188+pljgmProjectId :: Lens' ProjectsLocationsJobsGetMetrics Text
189+pljgmProjectId
190+ = lens _pljgmProjectId
191+ (\ s a -> s{_pljgmProjectId = a})
192+
193+-- | JSONP
194+pljgmCallback :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Text)
195+pljgmCallback
196+ = lens _pljgmCallback
197+ (\ s a -> s{_pljgmCallback = a})
198+
199+instance GoogleRequest
200+ ProjectsLocationsJobsGetMetrics where
201+ type Rs ProjectsLocationsJobsGetMetrics = JobMetrics
202+ type Scopes ProjectsLocationsJobsGetMetrics =
203+ '["https://www.googleapis.com/auth/cloud-platform",
204+ "https://www.googleapis.com/auth/userinfo.email"]
205+ requestClient ProjectsLocationsJobsGetMetrics'{..}
206+ = go _pljgmProjectId _pljgmLocation _pljgmJobId
207+ _pljgmXgafv
208+ _pljgmUploadProtocol
209+ _pljgmStartTime
210+ (Just _pljgmPp)
211+ _pljgmAccessToken
212+ _pljgmUploadType
213+ _pljgmBearerToken
214+ _pljgmCallback
215+ (Just AltJSON)
216+ dataflowService
217+ where go
218+ = buildClient
219+ (Proxy ::
220+ Proxy ProjectsLocationsJobsGetMetricsResource)
221+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hsnew file+243
@@ -0,0 +1,243 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- List the jobs of a project.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.list@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsListResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsList
33+ , ProjectsLocationsJobsList
34+
35+ -- * Request Lenses
36+ , pljlXgafv
37+ , pljlUploadProtocol
38+ , pljlLocation
39+ , pljlPp
40+ , pljlAccessToken
41+ , pljlUploadType
42+ , pljlBearerToken
43+ , pljlView
44+ , pljlFilter
45+ , pljlPageToken
46+ , pljlProjectId
47+ , pljlPageSize
48+ , pljlCallback
49+ ) where
50+
51+import Network.Google.Dataflow.Types
52+import Network.Google.Prelude
53+
54+-- | A resource alias for @dataflow.projects.locations.jobs.list@ method which the
55+-- 'ProjectsLocationsJobsList' request conforms to.
56+type ProjectsLocationsJobsListResource =
57+ "v1b3" :>
58+ "projects" :>
59+ Capture "projectId" Text :>
60+ "locations" :>
61+ Capture "location" Text :>
62+ "jobs" :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "view" Text :>
70+ QueryParam "filter" Text :>
71+ QueryParam "pageToken" Text :>
72+ QueryParam "pageSize" (Textual Int32) :>
73+ QueryParam "callback" Text :>
74+ QueryParam "alt" AltJSON :>
75+ Get '[JSON] ListJobsResponse
76+
77+-- | List the jobs of a project.
78+--
79+-- /See:/ 'projectsLocationsJobsList' smart constructor.
80+data ProjectsLocationsJobsList = ProjectsLocationsJobsList'
81+ { _pljlXgafv :: !(Maybe Text)
82+ , _pljlUploadProtocol :: !(Maybe Text)
83+ , _pljlLocation :: !Text
84+ , _pljlPp :: !Bool
85+ , _pljlAccessToken :: !(Maybe Text)
86+ , _pljlUploadType :: !(Maybe Text)
87+ , _pljlBearerToken :: !(Maybe Text)
88+ , _pljlView :: !(Maybe Text)
89+ , _pljlFilter :: !(Maybe Text)
90+ , _pljlPageToken :: !(Maybe Text)
91+ , _pljlProjectId :: !Text
92+ , _pljlPageSize :: !(Maybe (Textual Int32))
93+ , _pljlCallback :: !(Maybe Text)
94+ } deriving (Eq,Show,Data,Typeable,Generic)
95+
96+-- | Creates a value of 'ProjectsLocationsJobsList' with the minimum fields required to make a request.
97+--
98+-- Use one of the following lenses to modify other fields as desired:
99+--
100+-- * 'pljlXgafv'
101+--
102+-- * 'pljlUploadProtocol'
103+--
104+-- * 'pljlLocation'
105+--
106+-- * 'pljlPp'
107+--
108+-- * 'pljlAccessToken'
109+--
110+-- * 'pljlUploadType'
111+--
112+-- * 'pljlBearerToken'
113+--
114+-- * 'pljlView'
115+--
116+-- * 'pljlFilter'
117+--
118+-- * 'pljlPageToken'
119+--
120+-- * 'pljlProjectId'
121+--
122+-- * 'pljlPageSize'
123+--
124+-- * 'pljlCallback'
125+projectsLocationsJobsList
126+ :: Text -- ^ 'pljlLocation'
127+ -> Text -- ^ 'pljlProjectId'
128+ -> ProjectsLocationsJobsList
129+projectsLocationsJobsList pPljlLocation_ pPljlProjectId_ =
130+ ProjectsLocationsJobsList'
131+ { _pljlXgafv = Nothing
132+ , _pljlUploadProtocol = Nothing
133+ , _pljlLocation = pPljlLocation_
134+ , _pljlPp = True
135+ , _pljlAccessToken = Nothing
136+ , _pljlUploadType = Nothing
137+ , _pljlBearerToken = Nothing
138+ , _pljlView = Nothing
139+ , _pljlFilter = Nothing
140+ , _pljlPageToken = Nothing
141+ , _pljlProjectId = pPljlProjectId_
142+ , _pljlPageSize = Nothing
143+ , _pljlCallback = Nothing
144+ }
145+
146+-- | V1 error format.
147+pljlXgafv :: Lens' ProjectsLocationsJobsList (Maybe Text)
148+pljlXgafv
149+ = lens _pljlXgafv (\ s a -> s{_pljlXgafv = a})
150+
151+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
152+pljlUploadProtocol :: Lens' ProjectsLocationsJobsList (Maybe Text)
153+pljlUploadProtocol
154+ = lens _pljlUploadProtocol
155+ (\ s a -> s{_pljlUploadProtocol = a})
156+
157+-- | The location that contains this job.
158+pljlLocation :: Lens' ProjectsLocationsJobsList Text
159+pljlLocation
160+ = lens _pljlLocation (\ s a -> s{_pljlLocation = a})
161+
162+-- | Pretty-print response.
163+pljlPp :: Lens' ProjectsLocationsJobsList Bool
164+pljlPp = lens _pljlPp (\ s a -> s{_pljlPp = a})
165+
166+-- | OAuth access token.
167+pljlAccessToken :: Lens' ProjectsLocationsJobsList (Maybe Text)
168+pljlAccessToken
169+ = lens _pljlAccessToken
170+ (\ s a -> s{_pljlAccessToken = a})
171+
172+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
173+pljlUploadType :: Lens' ProjectsLocationsJobsList (Maybe Text)
174+pljlUploadType
175+ = lens _pljlUploadType
176+ (\ s a -> s{_pljlUploadType = a})
177+
178+-- | OAuth bearer token.
179+pljlBearerToken :: Lens' ProjectsLocationsJobsList (Maybe Text)
180+pljlBearerToken
181+ = lens _pljlBearerToken
182+ (\ s a -> s{_pljlBearerToken = a})
183+
184+-- | Level of information requested in response. Default is
185+-- \`JOB_VIEW_SUMMARY\`.
186+pljlView :: Lens' ProjectsLocationsJobsList (Maybe Text)
187+pljlView = lens _pljlView (\ s a -> s{_pljlView = a})
188+
189+-- | The kind of filter to use.
190+pljlFilter :: Lens' ProjectsLocationsJobsList (Maybe Text)
191+pljlFilter
192+ = lens _pljlFilter (\ s a -> s{_pljlFilter = a})
193+
194+-- | Set this to the \'next_page_token\' field of a previous response to
195+-- request additional results in a long list.
196+pljlPageToken :: Lens' ProjectsLocationsJobsList (Maybe Text)
197+pljlPageToken
198+ = lens _pljlPageToken
199+ (\ s a -> s{_pljlPageToken = a})
200+
201+-- | The project which owns the jobs.
202+pljlProjectId :: Lens' ProjectsLocationsJobsList Text
203+pljlProjectId
204+ = lens _pljlProjectId
205+ (\ s a -> s{_pljlProjectId = a})
206+
207+-- | If there are many jobs, limit response to at most this many. The actual
208+-- number of jobs returned will be the lesser of max_responses and an
209+-- unspecified server-defined limit.
210+pljlPageSize :: Lens' ProjectsLocationsJobsList (Maybe Int32)
211+pljlPageSize
212+ = lens _pljlPageSize (\ s a -> s{_pljlPageSize = a})
213+ . mapping _Coerce
214+
215+-- | JSONP
216+pljlCallback :: Lens' ProjectsLocationsJobsList (Maybe Text)
217+pljlCallback
218+ = lens _pljlCallback (\ s a -> s{_pljlCallback = a})
219+
220+instance GoogleRequest ProjectsLocationsJobsList
221+ where
222+ type Rs ProjectsLocationsJobsList = ListJobsResponse
223+ type Scopes ProjectsLocationsJobsList =
224+ '["https://www.googleapis.com/auth/cloud-platform",
225+ "https://www.googleapis.com/auth/userinfo.email"]
226+ requestClient ProjectsLocationsJobsList'{..}
227+ = go _pljlProjectId _pljlLocation _pljlXgafv
228+ _pljlUploadProtocol
229+ (Just _pljlPp)
230+ _pljlAccessToken
231+ _pljlUploadType
232+ _pljlBearerToken
233+ _pljlView
234+ _pljlFilter
235+ _pljlPageToken
236+ _pljlPageSize
237+ _pljlCallback
238+ (Just AltJSON)
239+ dataflowService
240+ where go
241+ = buildClient
242+ (Proxy :: Proxy ProjectsLocationsJobsListResource)
243+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hsnew file+280
@@ -0,0 +1,280 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Request the job status.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.messages.list@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsMessagesListResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsMessagesList
33+ , ProjectsLocationsJobsMessagesList
34+
35+ -- * Request Lenses
36+ , pljmlXgafv
37+ , pljmlJobId
38+ , pljmlUploadProtocol
39+ , pljmlLocation
40+ , pljmlStartTime
41+ , pljmlPp
42+ , pljmlAccessToken
43+ , pljmlUploadType
44+ , pljmlBearerToken
45+ , pljmlEndTime
46+ , pljmlMinimumImportance
47+ , pljmlPageToken
48+ , pljmlProjectId
49+ , pljmlPageSize
50+ , pljmlCallback
51+ ) where
52+
53+import Network.Google.Dataflow.Types
54+import Network.Google.Prelude
55+
56+-- | A resource alias for @dataflow.projects.locations.jobs.messages.list@ method which the
57+-- 'ProjectsLocationsJobsMessagesList' request conforms to.
58+type ProjectsLocationsJobsMessagesListResource =
59+ "v1b3" :>
60+ "projects" :>
61+ Capture "projectId" Text :>
62+ "locations" :>
63+ Capture "location" Text :>
64+ "jobs" :>
65+ Capture "jobId" Text :>
66+ "messages" :>
67+ QueryParam "$.xgafv" Text :>
68+ QueryParam "upload_protocol" Text :>
69+ QueryParam "startTime" Text :>
70+ QueryParam "pp" Bool :>
71+ QueryParam "access_token" Text :>
72+ QueryParam "uploadType" Text :>
73+ QueryParam "bearer_token" Text :>
74+ QueryParam "endTime" Text :>
75+ QueryParam "minimumImportance" Text :>
76+ QueryParam "pageToken" Text :>
77+ QueryParam "pageSize" (Textual Int32)
78+ :>
79+ QueryParam "callback" Text :>
80+ QueryParam "alt" AltJSON :>
81+ Get '[JSON]
82+ ListJobMessagesResponse
83+
84+-- | Request the job status.
85+--
86+-- /See:/ 'projectsLocationsJobsMessagesList' smart constructor.
87+data ProjectsLocationsJobsMessagesList = ProjectsLocationsJobsMessagesList'
88+ { _pljmlXgafv :: !(Maybe Text)
89+ , _pljmlJobId :: !Text
90+ , _pljmlUploadProtocol :: !(Maybe Text)
91+ , _pljmlLocation :: !Text
92+ , _pljmlStartTime :: !(Maybe Text)
93+ , _pljmlPp :: !Bool
94+ , _pljmlAccessToken :: !(Maybe Text)
95+ , _pljmlUploadType :: !(Maybe Text)
96+ , _pljmlBearerToken :: !(Maybe Text)
97+ , _pljmlEndTime :: !(Maybe Text)
98+ , _pljmlMinimumImportance :: !(Maybe Text)
99+ , _pljmlPageToken :: !(Maybe Text)
100+ , _pljmlProjectId :: !Text
101+ , _pljmlPageSize :: !(Maybe (Textual Int32))
102+ , _pljmlCallback :: !(Maybe Text)
103+ } deriving (Eq,Show,Data,Typeable,Generic)
104+
105+-- | Creates a value of 'ProjectsLocationsJobsMessagesList' with the minimum fields required to make a request.
106+--
107+-- Use one of the following lenses to modify other fields as desired:
108+--
109+-- * 'pljmlXgafv'
110+--
111+-- * 'pljmlJobId'
112+--
113+-- * 'pljmlUploadProtocol'
114+--
115+-- * 'pljmlLocation'
116+--
117+-- * 'pljmlStartTime'
118+--
119+-- * 'pljmlPp'
120+--
121+-- * 'pljmlAccessToken'
122+--
123+-- * 'pljmlUploadType'
124+--
125+-- * 'pljmlBearerToken'
126+--
127+-- * 'pljmlEndTime'
128+--
129+-- * 'pljmlMinimumImportance'
130+--
131+-- * 'pljmlPageToken'
132+--
133+-- * 'pljmlProjectId'
134+--
135+-- * 'pljmlPageSize'
136+--
137+-- * 'pljmlCallback'
138+projectsLocationsJobsMessagesList
139+ :: Text -- ^ 'pljmlJobId'
140+ -> Text -- ^ 'pljmlLocation'
141+ -> Text -- ^ 'pljmlProjectId'
142+ -> ProjectsLocationsJobsMessagesList
143+projectsLocationsJobsMessagesList pPljmlJobId_ pPljmlLocation_ pPljmlProjectId_ =
144+ ProjectsLocationsJobsMessagesList'
145+ { _pljmlXgafv = Nothing
146+ , _pljmlJobId = pPljmlJobId_
147+ , _pljmlUploadProtocol = Nothing
148+ , _pljmlLocation = pPljmlLocation_
149+ , _pljmlStartTime = Nothing
150+ , _pljmlPp = True
151+ , _pljmlAccessToken = Nothing
152+ , _pljmlUploadType = Nothing
153+ , _pljmlBearerToken = Nothing
154+ , _pljmlEndTime = Nothing
155+ , _pljmlMinimumImportance = Nothing
156+ , _pljmlPageToken = Nothing
157+ , _pljmlProjectId = pPljmlProjectId_
158+ , _pljmlPageSize = Nothing
159+ , _pljmlCallback = Nothing
160+ }
161+
162+-- | V1 error format.
163+pljmlXgafv :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
164+pljmlXgafv
165+ = lens _pljmlXgafv (\ s a -> s{_pljmlXgafv = a})
166+
167+-- | The job to get messages about.
168+pljmlJobId :: Lens' ProjectsLocationsJobsMessagesList Text
169+pljmlJobId
170+ = lens _pljmlJobId (\ s a -> s{_pljmlJobId = a})
171+
172+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
173+pljmlUploadProtocol :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
174+pljmlUploadProtocol
175+ = lens _pljmlUploadProtocol
176+ (\ s a -> s{_pljmlUploadProtocol = a})
177+
178+-- | The location which contains the job specified by job_id.
179+pljmlLocation :: Lens' ProjectsLocationsJobsMessagesList Text
180+pljmlLocation
181+ = lens _pljmlLocation
182+ (\ s a -> s{_pljmlLocation = a})
183+
184+-- | If specified, return only messages with timestamps >= start_time. The
185+-- default is the job creation time (i.e. beginning of messages).
186+pljmlStartTime :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
187+pljmlStartTime
188+ = lens _pljmlStartTime
189+ (\ s a -> s{_pljmlStartTime = a})
190+
191+-- | Pretty-print response.
192+pljmlPp :: Lens' ProjectsLocationsJobsMessagesList Bool
193+pljmlPp = lens _pljmlPp (\ s a -> s{_pljmlPp = a})
194+
195+-- | OAuth access token.
196+pljmlAccessToken :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
197+pljmlAccessToken
198+ = lens _pljmlAccessToken
199+ (\ s a -> s{_pljmlAccessToken = a})
200+
201+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
202+pljmlUploadType :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
203+pljmlUploadType
204+ = lens _pljmlUploadType
205+ (\ s a -> s{_pljmlUploadType = a})
206+
207+-- | OAuth bearer token.
208+pljmlBearerToken :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
209+pljmlBearerToken
210+ = lens _pljmlBearerToken
211+ (\ s a -> s{_pljmlBearerToken = a})
212+
213+-- | Return only messages with timestamps \< end_time. The default is now
214+-- (i.e. return up to the latest messages available).
215+pljmlEndTime :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
216+pljmlEndTime
217+ = lens _pljmlEndTime (\ s a -> s{_pljmlEndTime = a})
218+
219+-- | Filter to only get messages with importance >= level
220+pljmlMinimumImportance :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
221+pljmlMinimumImportance
222+ = lens _pljmlMinimumImportance
223+ (\ s a -> s{_pljmlMinimumImportance = a})
224+
225+-- | If supplied, this should be the value of next_page_token returned by an
226+-- earlier call. This will cause the next page of results to be returned.
227+pljmlPageToken :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
228+pljmlPageToken
229+ = lens _pljmlPageToken
230+ (\ s a -> s{_pljmlPageToken = a})
231+
232+-- | A project id.
233+pljmlProjectId :: Lens' ProjectsLocationsJobsMessagesList Text
234+pljmlProjectId
235+ = lens _pljmlProjectId
236+ (\ s a -> s{_pljmlProjectId = a})
237+
238+-- | If specified, determines the maximum number of messages to return. If
239+-- unspecified, the service may choose an appropriate default, or may
240+-- return an arbitrarily large number of results.
241+pljmlPageSize :: Lens' ProjectsLocationsJobsMessagesList (Maybe Int32)
242+pljmlPageSize
243+ = lens _pljmlPageSize
244+ (\ s a -> s{_pljmlPageSize = a})
245+ . mapping _Coerce
246+
247+-- | JSONP
248+pljmlCallback :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
249+pljmlCallback
250+ = lens _pljmlCallback
251+ (\ s a -> s{_pljmlCallback = a})
252+
253+instance GoogleRequest
254+ ProjectsLocationsJobsMessagesList where
255+ type Rs ProjectsLocationsJobsMessagesList =
256+ ListJobMessagesResponse
257+ type Scopes ProjectsLocationsJobsMessagesList =
258+ '["https://www.googleapis.com/auth/cloud-platform",
259+ "https://www.googleapis.com/auth/userinfo.email"]
260+ requestClient ProjectsLocationsJobsMessagesList'{..}
261+ = go _pljmlProjectId _pljmlLocation _pljmlJobId
262+ _pljmlXgafv
263+ _pljmlUploadProtocol
264+ _pljmlStartTime
265+ (Just _pljmlPp)
266+ _pljmlAccessToken
267+ _pljmlUploadType
268+ _pljmlBearerToken
269+ _pljmlEndTime
270+ _pljmlMinimumImportance
271+ _pljmlPageToken
272+ _pljmlPageSize
273+ _pljmlCallback
274+ (Just AltJSON)
275+ dataflowService
276+ where go
277+ = buildClient
278+ (Proxy ::
279+ Proxy ProjectsLocationsJobsMessagesListResource)
280+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hsnew file+215
@@ -0,0 +1,215 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Updates the state of an existing Cloud Dataflow job.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.update@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsUpdateResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsUpdate
33+ , ProjectsLocationsJobsUpdate
34+
35+ -- * Request Lenses
36+ , pljuXgafv
37+ , pljuJobId
38+ , pljuUploadProtocol
39+ , pljuLocation
40+ , pljuPp
41+ , pljuAccessToken
42+ , pljuUploadType
43+ , pljuPayload
44+ , pljuBearerToken
45+ , pljuProjectId
46+ , pljuCallback
47+ ) where
48+
49+import Network.Google.Dataflow.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @dataflow.projects.locations.jobs.update@ method which the
53+-- 'ProjectsLocationsJobsUpdate' request conforms to.
54+type ProjectsLocationsJobsUpdateResource =
55+ "v1b3" :>
56+ "projects" :>
57+ Capture "projectId" Text :>
58+ "locations" :>
59+ Capture "location" Text :>
60+ "jobs" :>
61+ Capture "jobId" Text :>
62+ QueryParam "$.xgafv" Text :>
63+ QueryParam "upload_protocol" Text :>
64+ QueryParam "pp" Bool :>
65+ QueryParam "access_token" Text :>
66+ QueryParam "uploadType" Text :>
67+ QueryParam "bearer_token" Text :>
68+ QueryParam "callback" Text :>
69+ QueryParam "alt" AltJSON :>
70+ ReqBody '[JSON] Job :> Put '[JSON] Job
71+
72+-- | Updates the state of an existing Cloud Dataflow job.
73+--
74+-- /See:/ 'projectsLocationsJobsUpdate' smart constructor.
75+data ProjectsLocationsJobsUpdate = ProjectsLocationsJobsUpdate'
76+ { _pljuXgafv :: !(Maybe Text)
77+ , _pljuJobId :: !Text
78+ , _pljuUploadProtocol :: !(Maybe Text)
79+ , _pljuLocation :: !Text
80+ , _pljuPp :: !Bool
81+ , _pljuAccessToken :: !(Maybe Text)
82+ , _pljuUploadType :: !(Maybe Text)
83+ , _pljuPayload :: !Job
84+ , _pljuBearerToken :: !(Maybe Text)
85+ , _pljuProjectId :: !Text
86+ , _pljuCallback :: !(Maybe Text)
87+ } deriving (Eq,Show,Data,Typeable,Generic)
88+
89+-- | Creates a value of 'ProjectsLocationsJobsUpdate' with the minimum fields required to make a request.
90+--
91+-- Use one of the following lenses to modify other fields as desired:
92+--
93+-- * 'pljuXgafv'
94+--
95+-- * 'pljuJobId'
96+--
97+-- * 'pljuUploadProtocol'
98+--
99+-- * 'pljuLocation'
100+--
101+-- * 'pljuPp'
102+--
103+-- * 'pljuAccessToken'
104+--
105+-- * 'pljuUploadType'
106+--
107+-- * 'pljuPayload'
108+--
109+-- * 'pljuBearerToken'
110+--
111+-- * 'pljuProjectId'
112+--
113+-- * 'pljuCallback'
114+projectsLocationsJobsUpdate
115+ :: Text -- ^ 'pljuJobId'
116+ -> Text -- ^ 'pljuLocation'
117+ -> Job -- ^ 'pljuPayload'
118+ -> Text -- ^ 'pljuProjectId'
119+ -> ProjectsLocationsJobsUpdate
120+projectsLocationsJobsUpdate pPljuJobId_ pPljuLocation_ pPljuPayload_ pPljuProjectId_ =
121+ ProjectsLocationsJobsUpdate'
122+ { _pljuXgafv = Nothing
123+ , _pljuJobId = pPljuJobId_
124+ , _pljuUploadProtocol = Nothing
125+ , _pljuLocation = pPljuLocation_
126+ , _pljuPp = True
127+ , _pljuAccessToken = Nothing
128+ , _pljuUploadType = Nothing
129+ , _pljuPayload = pPljuPayload_
130+ , _pljuBearerToken = Nothing
131+ , _pljuProjectId = pPljuProjectId_
132+ , _pljuCallback = Nothing
133+ }
134+
135+-- | V1 error format.
136+pljuXgafv :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
137+pljuXgafv
138+ = lens _pljuXgafv (\ s a -> s{_pljuXgafv = a})
139+
140+-- | The job ID.
141+pljuJobId :: Lens' ProjectsLocationsJobsUpdate Text
142+pljuJobId
143+ = lens _pljuJobId (\ s a -> s{_pljuJobId = a})
144+
145+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
146+pljuUploadProtocol :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
147+pljuUploadProtocol
148+ = lens _pljuUploadProtocol
149+ (\ s a -> s{_pljuUploadProtocol = a})
150+
151+-- | The location that contains this job.
152+pljuLocation :: Lens' ProjectsLocationsJobsUpdate Text
153+pljuLocation
154+ = lens _pljuLocation (\ s a -> s{_pljuLocation = a})
155+
156+-- | Pretty-print response.
157+pljuPp :: Lens' ProjectsLocationsJobsUpdate Bool
158+pljuPp = lens _pljuPp (\ s a -> s{_pljuPp = a})
159+
160+-- | OAuth access token.
161+pljuAccessToken :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
162+pljuAccessToken
163+ = lens _pljuAccessToken
164+ (\ s a -> s{_pljuAccessToken = a})
165+
166+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
167+pljuUploadType :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
168+pljuUploadType
169+ = lens _pljuUploadType
170+ (\ s a -> s{_pljuUploadType = a})
171+
172+-- | Multipart request metadata.
173+pljuPayload :: Lens' ProjectsLocationsJobsUpdate Job
174+pljuPayload
175+ = lens _pljuPayload (\ s a -> s{_pljuPayload = a})
176+
177+-- | OAuth bearer token.
178+pljuBearerToken :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
179+pljuBearerToken
180+ = lens _pljuBearerToken
181+ (\ s a -> s{_pljuBearerToken = a})
182+
183+-- | The ID of the Cloud Platform project that the job belongs to.
184+pljuProjectId :: Lens' ProjectsLocationsJobsUpdate Text
185+pljuProjectId
186+ = lens _pljuProjectId
187+ (\ s a -> s{_pljuProjectId = a})
188+
189+-- | JSONP
190+pljuCallback :: Lens' ProjectsLocationsJobsUpdate (Maybe Text)
191+pljuCallback
192+ = lens _pljuCallback (\ s a -> s{_pljuCallback = a})
193+
194+instance GoogleRequest ProjectsLocationsJobsUpdate
195+ where
196+ type Rs ProjectsLocationsJobsUpdate = Job
197+ type Scopes ProjectsLocationsJobsUpdate =
198+ '["https://www.googleapis.com/auth/cloud-platform",
199+ "https://www.googleapis.com/auth/userinfo.email"]
200+ requestClient ProjectsLocationsJobsUpdate'{..}
201+ = go _pljuProjectId _pljuLocation _pljuJobId
202+ _pljuXgafv
203+ _pljuUploadProtocol
204+ (Just _pljuPp)
205+ _pljuAccessToken
206+ _pljuUploadType
207+ _pljuBearerToken
208+ _pljuCallback
209+ (Just AltJSON)
210+ _pljuPayload
211+ dataflowService
212+ where go
213+ = buildClient
214+ (Proxy :: Proxy ProjectsLocationsJobsUpdateResource)
215+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hsnew file+223
@@ -0,0 +1,223 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.Lease
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Leases a dataflow WorkItem to run.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.workItems.lease@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.Lease
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsWorkItemsLeaseResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsWorkItemsLease
33+ , ProjectsLocationsJobsWorkItemsLease
34+
35+ -- * Request Lenses
36+ , pljwilXgafv
37+ , pljwilJobId
38+ , pljwilUploadProtocol
39+ , pljwilLocation
40+ , pljwilPp
41+ , pljwilAccessToken
42+ , pljwilUploadType
43+ , pljwilPayload
44+ , pljwilBearerToken
45+ , pljwilProjectId
46+ , pljwilCallback
47+ ) where
48+
49+import Network.Google.Dataflow.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @dataflow.projects.locations.jobs.workItems.lease@ method which the
53+-- 'ProjectsLocationsJobsWorkItemsLease' request conforms to.
54+type ProjectsLocationsJobsWorkItemsLeaseResource =
55+ "v1b3" :>
56+ "projects" :>
57+ Capture "projectId" Text :>
58+ "locations" :>
59+ Capture "location" Text :>
60+ "jobs" :>
61+ Capture "jobId" Text :>
62+ "workItems:lease" :>
63+ QueryParam "$.xgafv" Text :>
64+ QueryParam "upload_protocol" Text :>
65+ QueryParam "pp" Bool :>
66+ QueryParam "access_token" Text :>
67+ QueryParam "uploadType" Text :>
68+ QueryParam "bearer_token" Text :>
69+ QueryParam "callback" Text :>
70+ QueryParam "alt" AltJSON :>
71+ ReqBody '[JSON] LeaseWorkItemRequest :>
72+ Post '[JSON] LeaseWorkItemResponse
73+
74+-- | Leases a dataflow WorkItem to run.
75+--
76+-- /See:/ 'projectsLocationsJobsWorkItemsLease' smart constructor.
77+data ProjectsLocationsJobsWorkItemsLease = ProjectsLocationsJobsWorkItemsLease'
78+ { _pljwilXgafv :: !(Maybe Text)
79+ , _pljwilJobId :: !Text
80+ , _pljwilUploadProtocol :: !(Maybe Text)
81+ , _pljwilLocation :: !Text
82+ , _pljwilPp :: !Bool
83+ , _pljwilAccessToken :: !(Maybe Text)
84+ , _pljwilUploadType :: !(Maybe Text)
85+ , _pljwilPayload :: !LeaseWorkItemRequest
86+ , _pljwilBearerToken :: !(Maybe Text)
87+ , _pljwilProjectId :: !Text
88+ , _pljwilCallback :: !(Maybe Text)
89+ } deriving (Eq,Show,Data,Typeable,Generic)
90+
91+-- | Creates a value of 'ProjectsLocationsJobsWorkItemsLease' with the minimum fields required to make a request.
92+--
93+-- Use one of the following lenses to modify other fields as desired:
94+--
95+-- * 'pljwilXgafv'
96+--
97+-- * 'pljwilJobId'
98+--
99+-- * 'pljwilUploadProtocol'
100+--
101+-- * 'pljwilLocation'
102+--
103+-- * 'pljwilPp'
104+--
105+-- * 'pljwilAccessToken'
106+--
107+-- * 'pljwilUploadType'
108+--
109+-- * 'pljwilPayload'
110+--
111+-- * 'pljwilBearerToken'
112+--
113+-- * 'pljwilProjectId'
114+--
115+-- * 'pljwilCallback'
116+projectsLocationsJobsWorkItemsLease
117+ :: Text -- ^ 'pljwilJobId'
118+ -> Text -- ^ 'pljwilLocation'
119+ -> LeaseWorkItemRequest -- ^ 'pljwilPayload'
120+ -> Text -- ^ 'pljwilProjectId'
121+ -> ProjectsLocationsJobsWorkItemsLease
122+projectsLocationsJobsWorkItemsLease pPljwilJobId_ pPljwilLocation_ pPljwilPayload_ pPljwilProjectId_ =
123+ ProjectsLocationsJobsWorkItemsLease'
124+ { _pljwilXgafv = Nothing
125+ , _pljwilJobId = pPljwilJobId_
126+ , _pljwilUploadProtocol = Nothing
127+ , _pljwilLocation = pPljwilLocation_
128+ , _pljwilPp = True
129+ , _pljwilAccessToken = Nothing
130+ , _pljwilUploadType = Nothing
131+ , _pljwilPayload = pPljwilPayload_
132+ , _pljwilBearerToken = Nothing
133+ , _pljwilProjectId = pPljwilProjectId_
134+ , _pljwilCallback = Nothing
135+ }
136+
137+-- | V1 error format.
138+pljwilXgafv :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
139+pljwilXgafv
140+ = lens _pljwilXgafv (\ s a -> s{_pljwilXgafv = a})
141+
142+-- | Identifies the workflow job this worker belongs to.
143+pljwilJobId :: Lens' ProjectsLocationsJobsWorkItemsLease Text
144+pljwilJobId
145+ = lens _pljwilJobId (\ s a -> s{_pljwilJobId = a})
146+
147+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
148+pljwilUploadProtocol :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
149+pljwilUploadProtocol
150+ = lens _pljwilUploadProtocol
151+ (\ s a -> s{_pljwilUploadProtocol = a})
152+
153+-- | The location which contains the WorkItem\'s job.
154+pljwilLocation :: Lens' ProjectsLocationsJobsWorkItemsLease Text
155+pljwilLocation
156+ = lens _pljwilLocation
157+ (\ s a -> s{_pljwilLocation = a})
158+
159+-- | Pretty-print response.
160+pljwilPp :: Lens' ProjectsLocationsJobsWorkItemsLease Bool
161+pljwilPp = lens _pljwilPp (\ s a -> s{_pljwilPp = a})
162+
163+-- | OAuth access token.
164+pljwilAccessToken :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
165+pljwilAccessToken
166+ = lens _pljwilAccessToken
167+ (\ s a -> s{_pljwilAccessToken = a})
168+
169+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
170+pljwilUploadType :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
171+pljwilUploadType
172+ = lens _pljwilUploadType
173+ (\ s a -> s{_pljwilUploadType = a})
174+
175+-- | Multipart request metadata.
176+pljwilPayload :: Lens' ProjectsLocationsJobsWorkItemsLease LeaseWorkItemRequest
177+pljwilPayload
178+ = lens _pljwilPayload
179+ (\ s a -> s{_pljwilPayload = a})
180+
181+-- | OAuth bearer token.
182+pljwilBearerToken :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
183+pljwilBearerToken
184+ = lens _pljwilBearerToken
185+ (\ s a -> s{_pljwilBearerToken = a})
186+
187+-- | Identifies the project this worker belongs to.
188+pljwilProjectId :: Lens' ProjectsLocationsJobsWorkItemsLease Text
189+pljwilProjectId
190+ = lens _pljwilProjectId
191+ (\ s a -> s{_pljwilProjectId = a})
192+
193+-- | JSONP
194+pljwilCallback :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Text)
195+pljwilCallback
196+ = lens _pljwilCallback
197+ (\ s a -> s{_pljwilCallback = a})
198+
199+instance GoogleRequest
200+ ProjectsLocationsJobsWorkItemsLease where
201+ type Rs ProjectsLocationsJobsWorkItemsLease =
202+ LeaseWorkItemResponse
203+ type Scopes ProjectsLocationsJobsWorkItemsLease =
204+ '["https://www.googleapis.com/auth/cloud-platform",
205+ "https://www.googleapis.com/auth/userinfo.email"]
206+ requestClient
207+ ProjectsLocationsJobsWorkItemsLease'{..}
208+ = go _pljwilProjectId _pljwilLocation _pljwilJobId
209+ _pljwilXgafv
210+ _pljwilUploadProtocol
211+ (Just _pljwilPp)
212+ _pljwilAccessToken
213+ _pljwilUploadType
214+ _pljwilBearerToken
215+ _pljwilCallback
216+ (Just AltJSON)
217+ _pljwilPayload
218+ dataflowService
219+ where go
220+ = buildClient
221+ (Proxy ::
222+ Proxy ProjectsLocationsJobsWorkItemsLeaseResource)
223+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hsnew file+229
@@ -0,0 +1,229 @@
1+{-# LANGUAGE DataKinds #-}
2+{-# LANGUAGE DeriveDataTypeable #-}
3+{-# LANGUAGE DeriveGeneric #-}
4+{-# LANGUAGE FlexibleInstances #-}
5+{-# LANGUAGE NoImplicitPrelude #-}
6+{-# LANGUAGE OverloadedStrings #-}
7+{-# LANGUAGE RecordWildCards #-}
8+{-# LANGUAGE TypeFamilies #-}
9+{-# LANGUAGE TypeOperators #-}
10+
11+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14+
15+-- |
16+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.ReportStatus
17+-- Copyright : (c) 2015-2016 Brendan Hay
18+-- License : Mozilla Public License, v. 2.0.
19+-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20+-- Stability : auto-generated
21+-- Portability : non-portable (GHC extensions)
22+--
23+-- Reports the status of dataflow WorkItems leased by a worker.
24+--
25+-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.locations.jobs.workItems.reportStatus@.
26+module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.ReportStatus
27+ (
28+ -- * REST Resource
29+ ProjectsLocationsJobsWorkItemsReportStatusResource
30+
31+ -- * Creating a Request
32+ , projectsLocationsJobsWorkItemsReportStatus
33+ , ProjectsLocationsJobsWorkItemsReportStatus
34+
35+ -- * Request Lenses
36+ , pljwirsXgafv
37+ , pljwirsJobId
38+ , pljwirsUploadProtocol
39+ , pljwirsLocation
40+ , pljwirsPp
41+ , pljwirsAccessToken
42+ , pljwirsUploadType
43+ , pljwirsPayload
44+ , pljwirsBearerToken
45+ , pljwirsProjectId
46+ , pljwirsCallback
47+ ) where
48+
49+import Network.Google.Dataflow.Types
50+import Network.Google.Prelude
51+
52+-- | A resource alias for @dataflow.projects.locations.jobs.workItems.reportStatus@ method which the
53+-- 'ProjectsLocationsJobsWorkItemsReportStatus' request conforms to.
54+type ProjectsLocationsJobsWorkItemsReportStatusResource
55+ =
56+ "v1b3" :>
57+ "projects" :>
58+ Capture "projectId" Text :>
59+ "locations" :>
60+ Capture "location" Text :>
61+ "jobs" :>
62+ Capture "jobId" Text :>
63+ "workItems:reportStatus" :>
64+ QueryParam "$.xgafv" Text :>
65+ QueryParam "upload_protocol" Text :>
66+ QueryParam "pp" Bool :>
67+ QueryParam "access_token" Text :>
68+ QueryParam "uploadType" Text :>
69+ QueryParam "bearer_token" Text :>
70+ QueryParam "callback" Text :>
71+ QueryParam "alt" AltJSON :>
72+ ReqBody '[JSON] ReportWorkItemStatusRequest
73+ :>
74+ Post '[JSON] ReportWorkItemStatusResponse
75+
76+-- | Reports the status of dataflow WorkItems leased by a worker.
77+--
78+-- /See:/ 'projectsLocationsJobsWorkItemsReportStatus' smart constructor.
79+data ProjectsLocationsJobsWorkItemsReportStatus = ProjectsLocationsJobsWorkItemsReportStatus'
80+ { _pljwirsXgafv :: !(Maybe Text)
81+ , _pljwirsJobId :: !Text
82+ , _pljwirsUploadProtocol :: !(Maybe Text)
83+ , _pljwirsLocation :: !Text
84+ , _pljwirsPp :: !Bool
85+ , _pljwirsAccessToken :: !(Maybe Text)
86+ , _pljwirsUploadType :: !(Maybe Text)
87+ , _pljwirsPayload :: !ReportWorkItemStatusRequest
88+ , _pljwirsBearerToken :: !(Maybe Text)
89+ , _pljwirsProjectId :: !Text
90+ , _pljwirsCallback :: !(Maybe Text)
91+ } deriving (Eq,Show,Data,Typeable,Generic)
92+
93+-- | Creates a value of 'ProjectsLocationsJobsWorkItemsReportStatus' with the minimum fields required to make a request.
94+--
95+-- Use one of the following lenses to modify other fields as desired:
96+--
97+-- * 'pljwirsXgafv'
98+--
99+-- * 'pljwirsJobId'
100+--
101+-- * 'pljwirsUploadProtocol'
102+--
103+-- * 'pljwirsLocation'
104+--
105+-- * 'pljwirsPp'
106+--
107+-- * 'pljwirsAccessToken'
108+--
109+-- * 'pljwirsUploadType'
110+--
111+-- * 'pljwirsPayload'
112+--
113+-- * 'pljwirsBearerToken'
114+--
115+-- * 'pljwirsProjectId'
116+--
117+-- * 'pljwirsCallback'
118+projectsLocationsJobsWorkItemsReportStatus
119+ :: Text -- ^ 'pljwirsJobId'
120+ -> Text -- ^ 'pljwirsLocation'
121+ -> ReportWorkItemStatusRequest -- ^ 'pljwirsPayload'
122+ -> Text -- ^ 'pljwirsProjectId'
123+ -> ProjectsLocationsJobsWorkItemsReportStatus
124+projectsLocationsJobsWorkItemsReportStatus pPljwirsJobId_ pPljwirsLocation_ pPljwirsPayload_ pPljwirsProjectId_ =
125+ ProjectsLocationsJobsWorkItemsReportStatus'
126+ { _pljwirsXgafv = Nothing
127+ , _pljwirsJobId = pPljwirsJobId_
128+ , _pljwirsUploadProtocol = Nothing
129+ , _pljwirsLocation = pPljwirsLocation_
130+ , _pljwirsPp = True
131+ , _pljwirsAccessToken = Nothing
132+ , _pljwirsUploadType = Nothing
133+ , _pljwirsPayload = pPljwirsPayload_
134+ , _pljwirsBearerToken = Nothing
135+ , _pljwirsProjectId = pPljwirsProjectId_
136+ , _pljwirsCallback = Nothing
137+ }
138+
139+-- | V1 error format.
140+pljwirsXgafv :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
141+pljwirsXgafv
142+ = lens _pljwirsXgafv (\ s a -> s{_pljwirsXgafv = a})
143+
144+-- | The job which the WorkItem is part of.
145+pljwirsJobId :: Lens' ProjectsLocationsJobsWorkItemsReportStatus Text
146+pljwirsJobId
147+ = lens _pljwirsJobId (\ s a -> s{_pljwirsJobId = a})
148+
149+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
150+pljwirsUploadProtocol :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
151+pljwirsUploadProtocol
152+ = lens _pljwirsUploadProtocol
153+ (\ s a -> s{_pljwirsUploadProtocol = a})
154+
155+-- | The location which contains the WorkItem\'s job.
156+pljwirsLocation :: Lens' ProjectsLocationsJobsWorkItemsReportStatus Text
157+pljwirsLocation
158+ = lens _pljwirsLocation
159+ (\ s a -> s{_pljwirsLocation = a})
160+
161+-- | Pretty-print response.
162+pljwirsPp :: Lens' ProjectsLocationsJobsWorkItemsReportStatus Bool
163+pljwirsPp
164+ = lens _pljwirsPp (\ s a -> s{_pljwirsPp = a})
165+
166+-- | OAuth access token.
167+pljwirsAccessToken :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
168+pljwirsAccessToken
169+ = lens _pljwirsAccessToken
170+ (\ s a -> s{_pljwirsAccessToken = a})
171+
172+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
173+pljwirsUploadType :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
174+pljwirsUploadType
175+ = lens _pljwirsUploadType
176+ (\ s a -> s{_pljwirsUploadType = a})
177+
178+-- | Multipart request metadata.
179+pljwirsPayload :: Lens' ProjectsLocationsJobsWorkItemsReportStatus ReportWorkItemStatusRequest
180+pljwirsPayload
181+ = lens _pljwirsPayload
182+ (\ s a -> s{_pljwirsPayload = a})
183+
184+-- | OAuth bearer token.
185+pljwirsBearerToken :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
186+pljwirsBearerToken
187+ = lens _pljwirsBearerToken
188+ (\ s a -> s{_pljwirsBearerToken = a})
189+
190+-- | The project which owns the WorkItem\'s job.
191+pljwirsProjectId :: Lens' ProjectsLocationsJobsWorkItemsReportStatus Text
192+pljwirsProjectId
193+ = lens _pljwirsProjectId
194+ (\ s a -> s{_pljwirsProjectId = a})
195+
196+-- | JSONP
197+pljwirsCallback :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Text)
198+pljwirsCallback
199+ = lens _pljwirsCallback
200+ (\ s a -> s{_pljwirsCallback = a})
201+
202+instance GoogleRequest
203+ ProjectsLocationsJobsWorkItemsReportStatus where
204+ type Rs ProjectsLocationsJobsWorkItemsReportStatus =
205+ ReportWorkItemStatusResponse
206+ type Scopes
207+ ProjectsLocationsJobsWorkItemsReportStatus
208+ =
209+ '["https://www.googleapis.com/auth/cloud-platform",
210+ "https://www.googleapis.com/auth/userinfo.email"]
211+ requestClient
212+ ProjectsLocationsJobsWorkItemsReportStatus'{..}
213+ = go _pljwirsProjectId _pljwirsLocation _pljwirsJobId
214+ _pljwirsXgafv
215+ _pljwirsUploadProtocol
216+ (Just _pljwirsPp)
217+ _pljwirsAccessToken
218+ _pljwirsUploadType
219+ _pljwirsBearerToken
220+ _pljwirsCallback
221+ (Just AltJSON)
222+ _pljwirsPayload
223+ dataflowService
224+ where go
225+ = buildClient
226+ (Proxy ::
227+ Proxy
228+ ProjectsLocationsJobsWorkItemsReportStatusResource)
229+ mempty
gogol-dataflow/gen/Network/Google/Resource/Dataflow/Projects/Templates/Create.hs+3−3
@@ -20,7 +20,7 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Creates a dataflow job from a template.
23+-- Creates a Cloud Dataflow job from a template.
2424--
2525-- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.templates.create@.
2626module Network.Google.Resource.Dataflow.Projects.Templates.Create
@@ -65,7 +65,7 @@ type ProjectsTemplatesCreateResource =
6565 ReqBody '[JSON] CreateJobFromTemplateRequest :>
6666 Post '[JSON] Job
6767
68−-- | Creates a dataflow job from a template.
68+-- | Creates a Cloud Dataflow job from a template.
6969--
7070-- /See:/ 'projectsTemplatesCreate' smart constructor.
7171data ProjectsTemplatesCreate = ProjectsTemplatesCreate'
@@ -155,7 +155,7 @@ ptcBearerToken
155155 = lens _ptcBearerToken
156156 (\ s a -> s{_ptcBearerToken = a})
157157
158−-- | The project which owns the job.
158+-- | Required. The ID of the Cloud Platform project that the job belongs to.
159159ptcProjectId :: Lens' ProjectsTemplatesCreate Text
160160ptcProjectId
161161 = lens _ptcProjectId (\ s a -> s{_ptcProjectId = a})
gogol-dataflow/gogol-dataflow.cabal+9−2
@@ -14,8 +14,7 @@ cabal-version: >= 1.10
1414extra-source-files: README.md src/.gitkeep
1515
1616description:
17− Develops and executes data processing patterns like ETL, batch
18− computation, and continuous computation.
17+ Manages Google Cloud Dataflow projects on Google Cloud Platform.
1918 .
2019 /Warning:/ This is an experimental prototype/preview release which is still
2120 under exploratory development and not intended for public use, caveat emptor!
@@ -46,6 +45,14 @@ library
4645 , Network.Google.Resource.Dataflow.Projects.Jobs.Update
4746 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.Lease
4847 , Network.Google.Resource.Dataflow.Projects.Jobs.WorkItems.ReportStatus
48+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
49+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
50+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
51+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
52+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
53+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
54+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.Lease
55+ , Network.Google.Resource.Dataflow.Projects.Locations.Jobs.WorkItems.ReportStatus
4956 , Network.Google.Resource.Dataflow.Projects.Templates.Create
5057 , Network.Google.Resource.Dataflow.Projects.WorkerMessages
5158