on develop help sign in
Regenerating gogol-dataproc from updated service defintions
116fa28Brendan Hay
gogol-dataproc/gen/Network/Google/Dataproc.hs+47−1
@@ -13,7 +13,8 @@
13-- Stability : auto-generated
13-- Stability : auto-generated
14-- Portability : non-portable (GHC extensions)
14-- Portability : non-portable (GHC extensions)
15--
15--
16−-- Manages Hadoop-based clusters and jobs on Google Cloud Platform.
16+-- An API for managing Hadoop-based clusters and jobs on Google Cloud
17+-- Platform.
17--
18--
18-- /See:/ <https://cloud.google.com/dataproc/ Google Cloud Dataproc API Reference>
19-- /See:/ <https://cloud.google.com/dataproc/ Google Cloud Dataproc API Reference>
19module Network.Google.Dataproc
20module Network.Google.Dataproc
@@ -138,6 +139,11 @@ module Network.Google.Dataproc
138 , dcNumLocalSsds
139 , dcNumLocalSsds
139 , dcBootDiskSizeGb
140 , dcBootDiskSizeGb
140
141
142+ -- ** ClusterOperationMetadataLabels
143+ , ClusterOperationMetadataLabels
144+ , clusterOperationMetadataLabels
145+ , comlAddtional
146+
141 -- ** ListOperationsResponse
147 -- ** ListOperationsResponse
142 , ListOperationsResponse
148 , ListOperationsResponse
143 , listOperationsResponse
149 , listOperationsResponse
@@ -153,17 +159,30 @@ module Network.Google.Dataproc
153 , Cluster
159 , Cluster
154 , cluster
160 , cluster
155 , cStatus
161 , cStatus
162+ , cMetrics
156 , cClusterUuid
163 , cClusterUuid
157 , cConfig
164 , cConfig
158 , cClusterName
165 , cClusterName
166+ , cLabels
159 , cProjectId
167 , cProjectId
160 , cStatusHistory
168 , cStatusHistory
161
169
170+ -- ** JobLabels
171+ , JobLabels
172+ , jobLabels
173+ , jlAddtional
174+
162 -- ** SubmitJobRequest
175 -- ** SubmitJobRequest
163 , SubmitJobRequest
176 , SubmitJobRequest
164 , submitJobRequest
177 , submitJobRequest
165 , sjrJob
178 , sjrJob
166
179
180+ -- ** ClusterMetrics
181+ , ClusterMetrics
182+ , clusterMetrics
183+ , cmYarnMetrics
184+ , cmHdfsMetrics
185+
167 -- ** Operation
186 -- ** Operation
168 , Operation
187 , Operation
169 , operation
188 , operation
@@ -237,6 +256,11 @@ module Network.Google.Dataproc
237 , niaExecutionTimeout
256 , niaExecutionTimeout
238 , niaExecutableFile
257 , niaExecutableFile
239
258
259+ -- ** ClusterMetricsYarnMetrics
260+ , ClusterMetricsYarnMetrics
261+ , clusterMetricsYarnMetrics
262+ , cmymAddtional
263+
240 -- ** JobPlacement
264 -- ** JobPlacement
241 , JobPlacement
265 , JobPlacement
242 , jobPlacement
266 , jobPlacement
@@ -247,6 +271,7 @@ module Network.Google.Dataproc
247 , GceClusterConfig
271 , GceClusterConfig
248 , gceClusterConfig
272 , gceClusterConfig
249 , gccSubnetworkURI
273 , gccSubnetworkURI
274+ , gccInternalIPOnly
250 , gccNetworkURI
275 , gccNetworkURI
251 , gccZoneURI
276 , gccZoneURI
252 , gccMetadata
277 , gccMetadata
@@ -276,6 +301,11 @@ module Network.Google.Dataproc
276 , diagnoseClusterOutputLocation
301 , diagnoseClusterOutputLocation
277 , dcolOutputURI
302 , dcolOutputURI
278
303
304+ -- ** ClusterLabels
305+ , ClusterLabels
306+ , clusterLabels
307+ , clAddtional
308+
279 -- ** Job
309 -- ** Job
280 , Job
310 , Job
281 , job
311 , job
@@ -286,6 +316,8 @@ module Network.Google.Dataproc
286 , jReference
316 , jReference
287 , jSparkSQLJob
317 , jSparkSQLJob
288 , jHadoopJob
318 , jHadoopJob
319+ , jYarnApplications
320+ , jLabels
289 , jPysparkJob
321 , jPysparkJob
290 , jDriverOutputResourceURI
322 , jDriverOutputResourceURI
291 , jStatusHistory
323 , jStatusHistory
@@ -314,6 +346,7 @@ module Network.Google.Dataproc
314 , comStatus
346 , comStatus
315 , comClusterUuid
347 , comClusterUuid
316 , comClusterName
348 , comClusterName
349+ , comLabels
317 , comOperationType
350 , comOperationType
318 , comStatusHistory
351 , comStatusHistory
319 , comDescription
352 , comDescription
@@ -406,6 +439,11 @@ module Network.Google.Dataproc
406 , pigJobScriptVariables
439 , pigJobScriptVariables
407 , pjsvAddtional
440 , pjsvAddtional
408
441
442+ -- ** ClusterMetricsHdfsMetrics
443+ , ClusterMetricsHdfsMetrics
444+ , clusterMetricsHdfsMetrics
445+ , cmhmAddtional
446+
409 -- ** OperationResponse
447 -- ** OperationResponse
410 , OperationResponse
448 , OperationResponse
411 , operationResponse
449 , operationResponse
@@ -423,6 +461,14 @@ module Network.Google.Dataproc
423 , csStateStartTime
461 , csStateStartTime
424 , csDetail
462 , csDetail
425
463
464+ -- ** YarnApplication
465+ , YarnApplication
466+ , yarnApplication
467+ , yaTrackingURL
468+ , yaState
469+ , yaProgress
470+ , yaName
471+
426 -- ** PigJob
472 -- ** PigJob
427 , PigJob
473 , PigJob
428 , pigJob
474 , pigJob
gogol-dataproc/gen/Network/Google/Dataproc/Types.hs+45
@@ -84,6 +84,11 @@ module Network.Google.Dataproc.Types
84 , dcNumLocalSsds
84 , dcNumLocalSsds
85 , dcBootDiskSizeGb
85 , dcBootDiskSizeGb
86
86
87+ -- * ClusterOperationMetadataLabels
88+ , ClusterOperationMetadataLabels
89+ , clusterOperationMetadataLabels
90+ , comlAddtional
91+
87 -- * ListOperationsResponse
92 -- * ListOperationsResponse
88 , ListOperationsResponse
93 , ListOperationsResponse
89 , listOperationsResponse
94 , listOperationsResponse
@@ -99,17 +104,30 @@ module Network.Google.Dataproc.Types
99 , Cluster
104 , Cluster
100 , cluster
105 , cluster
101 , cStatus
106 , cStatus
107+ , cMetrics
102 , cClusterUuid
108 , cClusterUuid
103 , cConfig
109 , cConfig
104 , cClusterName
110 , cClusterName
111+ , cLabels
105 , cProjectId
112 , cProjectId
106 , cStatusHistory
113 , cStatusHistory
107
114
115+ -- * JobLabels
116+ , JobLabels
117+ , jobLabels
118+ , jlAddtional
119+
108 -- * SubmitJobRequest
120 -- * SubmitJobRequest
109 , SubmitJobRequest
121 , SubmitJobRequest
110 , submitJobRequest
122 , submitJobRequest
111 , sjrJob
123 , sjrJob
112
124
125+ -- * ClusterMetrics
126+ , ClusterMetrics
127+ , clusterMetrics
128+ , cmYarnMetrics
129+ , cmHdfsMetrics
130+
113 -- * Operation
131 -- * Operation
114 , Operation
132 , Operation
115 , operation
133 , operation
@@ -183,6 +201,11 @@ module Network.Google.Dataproc.Types
183 , niaExecutionTimeout
201 , niaExecutionTimeout
184 , niaExecutableFile
202 , niaExecutableFile
185
203
204+ -- * ClusterMetricsYarnMetrics
205+ , ClusterMetricsYarnMetrics
206+ , clusterMetricsYarnMetrics
207+ , cmymAddtional
208+
186 -- * JobPlacement
209 -- * JobPlacement
187 , JobPlacement
210 , JobPlacement
188 , jobPlacement
211 , jobPlacement
@@ -193,6 +216,7 @@ module Network.Google.Dataproc.Types
193 , GceClusterConfig
216 , GceClusterConfig
194 , gceClusterConfig
217 , gceClusterConfig
195 , gccSubnetworkURI
218 , gccSubnetworkURI
219+ , gccInternalIPOnly
196 , gccNetworkURI
220 , gccNetworkURI
197 , gccZoneURI
221 , gccZoneURI
198 , gccMetadata
222 , gccMetadata
@@ -222,6 +246,11 @@ module Network.Google.Dataproc.Types
222 , diagnoseClusterOutputLocation
246 , diagnoseClusterOutputLocation
223 , dcolOutputURI
247 , dcolOutputURI
224
248
249+ -- * ClusterLabels
250+ , ClusterLabels
251+ , clusterLabels
252+ , clAddtional
253+
225 -- * Job
254 -- * Job
226 , Job
255 , Job
227 , job
256 , job
@@ -232,6 +261,8 @@ module Network.Google.Dataproc.Types
232 , jReference
261 , jReference
233 , jSparkSQLJob
262 , jSparkSQLJob
234 , jHadoopJob
263 , jHadoopJob
264+ , jYarnApplications
265+ , jLabels
235 , jPysparkJob
266 , jPysparkJob
236 , jDriverOutputResourceURI
267 , jDriverOutputResourceURI
237 , jStatusHistory
268 , jStatusHistory
@@ -260,6 +291,7 @@ module Network.Google.Dataproc.Types
260 , comStatus
291 , comStatus
261 , comClusterUuid
292 , comClusterUuid
262 , comClusterName
293 , comClusterName
294+ , comLabels
263 , comOperationType
295 , comOperationType
264 , comStatusHistory
296 , comStatusHistory
265 , comDescription
297 , comDescription
@@ -352,6 +384,11 @@ module Network.Google.Dataproc.Types
352 , pigJobScriptVariables
384 , pigJobScriptVariables
353 , pjsvAddtional
385 , pjsvAddtional
354
386
387+ -- * ClusterMetricsHdfsMetrics
388+ , ClusterMetricsHdfsMetrics
389+ , clusterMetricsHdfsMetrics
390+ , cmhmAddtional
391+
355 -- * OperationResponse
392 -- * OperationResponse
356 , OperationResponse
393 , OperationResponse
357 , operationResponse
394 , operationResponse
@@ -369,6 +406,14 @@ module Network.Google.Dataproc.Types
369 , csStateStartTime
406 , csStateStartTime
370 , csDetail
407 , csDetail
371
408
409+ -- * YarnApplication
410+ , YarnApplication
411+ , yarnApplication
412+ , yaTrackingURL
413+ , yaState
414+ , yaProgress
415+ , yaName
416+
372 -- * PigJob
417 -- * PigJob
373 , PigJob
418 , PigJob
374 , pigJob
419 , pigJob
gogol-dataproc/gen/Network/Google/Dataproc/Types/Product.hs+471−57
@@ -43,7 +43,7 @@ jobReference =
43 , _jrProjectId = Nothing
43 , _jrProjectId = Nothing
44 }
44 }
45
45
46−-- | [Required] The job ID, which must be unique within the project. The job
46+-- | [Optional] The job ID, which must be unique within the project. The job
47-- ID is generated by the server upon job submission or provided by the
47-- ID is generated by the server upon job submission or provided by the
48-- user as a means to perform retries without creating duplicate jobs. The
48-- user as a means to perform retries without creating duplicate jobs. The
49-- ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
49-- ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_),
@@ -191,7 +191,7 @@ operationSchema pOsAddtional_ =
191 { _osAddtional = _Coerce # pOsAddtional_
191 { _osAddtional = _Coerce # pOsAddtional_
192 }
192 }
193
193
194−-- | Properties of the object. Contains field \'ype with type URL.
194+-- | Properties of the object. Contains field \'type with type URL.
195osAddtional :: Lens' OperationSchema (HashMap Text JSONValue)
195osAddtional :: Lens' OperationSchema (HashMap Text JSONValue)
196osAddtional
196osAddtional
197 = lens _osAddtional (\ s a -> s{_osAddtional = a}) .
197 = lens _osAddtional (\ s a -> s{_osAddtional = a}) .
@@ -262,8 +262,9 @@ diagnoseClusterResults =
262 { _dcrOutputURI = Nothing
262 { _dcrOutputURI = Nothing
263 }
263 }
264
264
265−-- | [Output-only] The Google Cloud Storage URI of the diagnostic output.
265+-- | [Output-only] The Google Cloud Storage URI of the diagnostic output. The
266−-- This is a plain text file with a summary of collected diagnostics.
266+-- output report is a plain text file with a summary of collected
267+-- diagnostics.
267dcrOutputURI :: Lens' DiagnoseClusterResults (Maybe Text)
268dcrOutputURI :: Lens' DiagnoseClusterResults (Maybe Text)
268dcrOutputURI
269dcrOutputURI
269 = lens _dcrOutputURI (\ s a -> s{_dcrOutputURI = a})
270 = lens _dcrOutputURI (\ s a -> s{_dcrOutputURI = a})
@@ -279,8 +280,8 @@ instance ToJSON DiagnoseClusterResults where
279 = object
280 = object
280 (catMaybes [("outputUri" .=) <$> _dcrOutputURI])
281 (catMaybes [("outputUri" .=) <$> _dcrOutputURI])
281
282
282−-- | The config settings for Google Compute Engine resources in an instance
283+-- | [Optional] The config settings for Google Compute Engine resources in an
283−-- group, such as a master or worker group.
284+-- instance group, such as a master or worker group.
284--
285--
285-- /See:/ 'instanceGroupConfig' smart constructor.
286-- /See:/ 'instanceGroupConfig' smart constructor.
286data InstanceGroupConfig = InstanceGroupConfig'
287data InstanceGroupConfig = InstanceGroupConfig'
@@ -323,21 +324,22 @@ instanceGroupConfig =
323 , _igcMachineTypeURI = Nothing
324 , _igcMachineTypeURI = Nothing
324 }
325 }
325
326
326−-- | The number of VM instances in the instance group. For master instance
327+-- | [Required] The number of VM instances in the instance group. For master
327−-- groups, must be set to 1.
328+-- instance groups, must be set to 1.
328igcNumInstances :: Lens' InstanceGroupConfig (Maybe Int32)
329igcNumInstances :: Lens' InstanceGroupConfig (Maybe Int32)
329igcNumInstances
330igcNumInstances
330 = lens _igcNumInstances
331 = lens _igcNumInstances
331 (\ s a -> s{_igcNumInstances = a})
332 (\ s a -> s{_igcNumInstances = a})
332 . mapping _Coerce
333 . mapping _Coerce
333
334
334−-- | Disk option config settings.
335+-- | [Optional] Disk option config settings.
335igcDiskConfig :: Lens' InstanceGroupConfig (Maybe DiskConfig)
336igcDiskConfig :: Lens' InstanceGroupConfig (Maybe DiskConfig)
336igcDiskConfig
337igcDiskConfig
337 = lens _igcDiskConfig
338 = lens _igcDiskConfig
338 (\ s a -> s{_igcDiskConfig = a})
339 (\ s a -> s{_igcDiskConfig = a})
339
340
340−-- | Specifies that this instance group contains Preemptible Instances.
341+-- | [Optional] Specifies that this instance group contains preemptible
342+-- instances.
341igcIsPreemptible :: Lens' InstanceGroupConfig (Maybe Bool)
343igcIsPreemptible :: Lens' InstanceGroupConfig (Maybe Bool)
342igcIsPreemptible
344igcIsPreemptible
343 = lens _igcIsPreemptible
345 = lens _igcIsPreemptible
@@ -349,9 +351,10 @@ igcImageURI :: Lens' InstanceGroupConfig (Maybe Text)
349igcImageURI
351igcImageURI
350 = lens _igcImageURI (\ s a -> s{_igcImageURI = a})
352 = lens _igcImageURI (\ s a -> s{_igcImageURI = a})
351
353
352−-- | The list of instance names. Cloud Dataproc derives the names from
354+-- | [Optional] The list of instance names. Cloud Dataproc derives the names
353−-- \`cluster_name\`, \`num_instances\`, and the instance group if not set
355+-- from \`cluster_name\`, \`num_instances\`, and the instance group if not
354−-- by user (recommended practice is to let Cloud Dataproc derive the name).
356+-- set by user (recommended practice is to let Cloud Dataproc derive the
357+-- name).
355igcInstanceNames :: Lens' InstanceGroupConfig [Text]
358igcInstanceNames :: Lens' InstanceGroupConfig [Text]
356igcInstanceNames
359igcInstanceNames
357 = lens _igcInstanceNames
360 = lens _igcInstanceNames
@@ -367,8 +370,8 @@ igcManagedGroupConfig
367 = lens _igcManagedGroupConfig
370 = lens _igcManagedGroupConfig
368 (\ s a -> s{_igcManagedGroupConfig = a})
371 (\ s a -> s{_igcManagedGroupConfig = a})
369
372
370−-- | The Google Compute Engine machine type used for cluster instances.
373+-- | [Required] The Google Compute Engine machine type used for cluster
371−-- Example:
374+-- instances. Example:
372-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/zones\/us-east1-a\/machineTypes\/n1-standard-2\`.
375-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/zones\/us-east1-a\/machineTypes\/n1-standard-2\`.
373igcMachineTypeURI :: Lens' InstanceGroupConfig (Maybe Text)
376igcMachineTypeURI :: Lens' InstanceGroupConfig (Maybe Text)
374igcMachineTypeURI
377igcMachineTypeURI
@@ -399,7 +402,8 @@ instance ToJSON InstanceGroupConfig where
399 ("managedGroupConfig" .=) <$> _igcManagedGroupConfig,
402 ("managedGroupConfig" .=) <$> _igcManagedGroupConfig,
400 ("machineTypeUri" .=) <$> _igcMachineTypeURI])
403 ("machineTypeUri" .=) <$> _igcMachineTypeURI])
401
404
402−-- | A Cloud Dataproc job for running Spark applications on YARN.
405+-- | A Cloud Dataproc job for running [Apache
406+-- Spark](http:\/\/spark.apache.org\/) applications on YARN.
403--
407--
404-- /See:/ 'sparkJob' smart constructor.
408-- /See:/ 'sparkJob' smart constructor.
405data SparkJob = SparkJob'
409data SparkJob = SparkJob'
@@ -598,7 +602,8 @@ diskConfig =
598 }
602 }
599
603
600-- | [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs
604-- | [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs
601−-- are not attached, the boot disk is used to store runtime logs and HDFS
605+-- are not attached, the boot disk is used to store runtime logs and
606+-- [HDFS](https:\/\/hadoop.apache.org\/docs\/r1.2.1\/hdfs_user_guide.html)
602-- data. If one or more SSDs are attached, this runtime bulk data is spread
607-- data. If one or more SSDs are attached, this runtime bulk data is spread
603-- across them, and the boot disk contains only basic config and installed
608-- across them, and the boot disk contains only basic config and installed
604-- binaries.
609-- binaries.
@@ -629,6 +634,43 @@ instance ToJSON DiskConfig where
629 [("numLocalSsds" .=) <$> _dcNumLocalSsds,
634 [("numLocalSsds" .=) <$> _dcNumLocalSsds,
630 ("bootDiskSizeGb" .=) <$> _dcBootDiskSizeGb])
635 ("bootDiskSizeGb" .=) <$> _dcBootDiskSizeGb])
631
636
637+-- | [Output-only] labels associated with the operation
638+--
639+-- /See:/ 'clusterOperationMetadataLabels' smart constructor.
640+newtype ClusterOperationMetadataLabels = ClusterOperationMetadataLabels'
641+ { _comlAddtional :: HashMap Text Text
642+ } deriving (Eq,Show,Data,Typeable,Generic)
643+
644+-- | Creates a value of 'ClusterOperationMetadataLabels' with the minimum fields required to make a request.
645+--
646+-- Use one of the following lenses to modify other fields as desired:
647+--
648+-- * 'comlAddtional'
649+clusterOperationMetadataLabels
650+ :: HashMap Text Text -- ^ 'comlAddtional'
651+ -> ClusterOperationMetadataLabels
652+clusterOperationMetadataLabels pComlAddtional_ =
653+ ClusterOperationMetadataLabels'
654+ { _comlAddtional = _Coerce # pComlAddtional_
655+ }
656+
657+comlAddtional :: Lens' ClusterOperationMetadataLabels (HashMap Text Text)
658+comlAddtional
659+ = lens _comlAddtional
660+ (\ s a -> s{_comlAddtional = a})
661+ . _Coerce
662+
663+instance FromJSON ClusterOperationMetadataLabels
664+ where
665+ parseJSON
666+ = withObject "ClusterOperationMetadataLabels"
667+ (\ o ->
668+ ClusterOperationMetadataLabels' <$>
669+ (parseJSONObject o))
670+
671+instance ToJSON ClusterOperationMetadataLabels where
672+ toJSON = toJSON . _comlAddtional
673+
632-- | The response message for Operations.ListOperations.
674-- | The response message for Operations.ListOperations.
633--
675--
634-- /See:/ 'listOperationsResponse' smart constructor.
676-- /See:/ 'listOperationsResponse' smart constructor.
@@ -723,9 +765,11 @@ instance ToJSON HiveJobScriptVariables where
723-- /See:/ 'cluster' smart constructor.
765-- /See:/ 'cluster' smart constructor.
724data Cluster = Cluster'
766data Cluster = Cluster'
725 { _cStatus :: !(Maybe ClusterStatus)
767 { _cStatus :: !(Maybe ClusterStatus)
768+ , _cMetrics :: !(Maybe ClusterMetrics)
726 , _cClusterUuid :: !(Maybe Text)
769 , _cClusterUuid :: !(Maybe Text)
727 , _cConfig :: !(Maybe ClusterConfig)
770 , _cConfig :: !(Maybe ClusterConfig)
728 , _cClusterName :: !(Maybe Text)
771 , _cClusterName :: !(Maybe Text)
772+ , _cLabels :: !(Maybe ClusterLabels)
729 , _cProjectId :: !(Maybe Text)
773 , _cProjectId :: !(Maybe Text)
730 , _cStatusHistory :: !(Maybe [ClusterStatus])
774 , _cStatusHistory :: !(Maybe [ClusterStatus])
731 } deriving (Eq,Show,Data,Typeable,Generic)
775 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -736,12 +780,16 @@ data Cluster = Cluster'
736--
780--
737-- * 'cStatus'
781-- * 'cStatus'
738--
782--
783+-- * 'cMetrics'
784+--
739-- * 'cClusterUuid'
785-- * 'cClusterUuid'
740--
786--
741-- * 'cConfig'
787-- * 'cConfig'
742--
788--
743-- * 'cClusterName'
789-- * 'cClusterName'
744--
790--
791+-- * 'cLabels'
792+--
745-- * 'cProjectId'
793-- * 'cProjectId'
746--
794--
747-- * 'cStatusHistory'
795-- * 'cStatusHistory'
@@ -750,9 +798,11 @@ cluster
750cluster =
798cluster =
751 Cluster'
799 Cluster'
752 { _cStatus = Nothing
800 { _cStatus = Nothing
801+ , _cMetrics = Nothing
753 , _cClusterUuid = Nothing
802 , _cClusterUuid = Nothing
754 , _cConfig = Nothing
803 , _cConfig = Nothing
755 , _cClusterName = Nothing
804 , _cClusterName = Nothing
805+ , _cLabels = Nothing
756 , _cProjectId = Nothing
806 , _cProjectId = Nothing
757 , _cStatusHistory = Nothing
807 , _cStatusHistory = Nothing
758 }
808 }
@@ -761,6 +811,12 @@ cluster =
761cStatus :: Lens' Cluster (Maybe ClusterStatus)
811cStatus :: Lens' Cluster (Maybe ClusterStatus)
762cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
812cStatus = lens _cStatus (\ s a -> s{_cStatus = a})
763
813
814+-- | Contains cluster daemon metrics such as HDFS and YARN stats. **Beta
815+-- Feature**: This report is available for testing purposes only. It may be
816+-- changed before final release.
817+cMetrics :: Lens' Cluster (Maybe ClusterMetrics)
818+cMetrics = lens _cMetrics (\ s a -> s{_cMetrics = a})
819+
764-- | [Output-only] A cluster UUID (Unique Universal Identifier). Cloud
820-- | [Output-only] A cluster UUID (Unique Universal Identifier). Cloud
765-- Dataproc generates this value when it creates the cluster.
821-- Dataproc generates this value when it creates the cluster.
766cClusterUuid :: Lens' Cluster (Maybe Text)
822cClusterUuid :: Lens' Cluster (Maybe Text)
@@ -778,6 +834,15 @@ cClusterName :: Lens' Cluster (Maybe Text)
778cClusterName
834cClusterName
779 = lens _cClusterName (\ s a -> s{_cClusterName = a})
835 = lens _cClusterName (\ s a -> s{_cClusterName = a})
780
836
837+-- | [Optional] The labels to associate with this cluster. Label **keys**
838+-- must contain 1 to 63 characters, and must conform to [RFC
839+-- 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). Label **values** may be
840+-- empty, but, if present, must contain 1 to 63 characters, and must
841+-- conform to [RFC 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). No more
842+-- than 32 labels can be associated with a cluster.
843+cLabels :: Lens' Cluster (Maybe ClusterLabels)
844+cLabels = lens _cLabels (\ s a -> s{_cLabels = a})
845+
781-- | [Required] The Google Cloud Platform project ID that the cluster belongs
846-- | [Required] The Google Cloud Platform project ID that the cluster belongs
782-- to.
847-- to.
783cProjectId :: Lens' Cluster (Maybe Text)
848cProjectId :: Lens' Cluster (Maybe Text)
@@ -797,9 +862,11 @@ instance FromJSON Cluster where
797 = withObject "Cluster"
862 = withObject "Cluster"
798 (\ o ->
863 (\ o ->
799 Cluster' <$>
864 Cluster' <$>
865+ (o .:? "status") <*> (o .:? "metrics") <*>
800− (o .:? "status") <*> (o .:? "clusterUuid") <*>
866+ (o .:? "clusterUuid")
801− (o .:? "config")
867+ <*> (o .:? "config")
802 <*> (o .:? "clusterName")
868 <*> (o .:? "clusterName")
869+ <*> (o .:? "labels")
803 <*> (o .:? "projectId")
870 <*> (o .:? "projectId")
804 <*> (o .:? "statusHistory" .!= mempty))
871 <*> (o .:? "statusHistory" .!= mempty))
805
872
@@ -808,12 +875,52 @@ instance ToJSON Cluster where
808 = object
875 = object
809 (catMaybes
876 (catMaybes
810 [("status" .=) <$> _cStatus,
877 [("status" .=) <$> _cStatus,
878+ ("metrics" .=) <$> _cMetrics,
811 ("clusterUuid" .=) <$> _cClusterUuid,
879 ("clusterUuid" .=) <$> _cClusterUuid,
812 ("config" .=) <$> _cConfig,
880 ("config" .=) <$> _cConfig,
813 ("clusterName" .=) <$> _cClusterName,
881 ("clusterName" .=) <$> _cClusterName,
882+ ("labels" .=) <$> _cLabels,
814 ("projectId" .=) <$> _cProjectId,
883 ("projectId" .=) <$> _cProjectId,
815 ("statusHistory" .=) <$> _cStatusHistory])
884 ("statusHistory" .=) <$> _cStatusHistory])
816
885
886+-- | [Optional] The labels to associate with this job. Label **keys** must
887+-- contain 1 to 63 characters, and must conform to [RFC
888+-- 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). Label **values** may be
889+-- empty, but, if present, must contain 1 to 63 characters, and must
890+-- conform to [RFC 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). No more
891+-- than 32 labels can be associated with a job.
892+--
893+-- /See:/ 'jobLabels' smart constructor.
894+newtype JobLabels = JobLabels'
895+ { _jlAddtional :: HashMap Text Text
896+ } deriving (Eq,Show,Data,Typeable,Generic)
897+
898+-- | Creates a value of 'JobLabels' with the minimum fields required to make a request.
899+--
900+-- Use one of the following lenses to modify other fields as desired:
901+--
902+-- * 'jlAddtional'
903+jobLabels
904+ :: HashMap Text Text -- ^ 'jlAddtional'
905+ -> JobLabels
906+jobLabels pJlAddtional_ =
907+ JobLabels'
908+ { _jlAddtional = _Coerce # pJlAddtional_
909+ }
910+
911+jlAddtional :: Lens' JobLabels (HashMap Text Text)
912+jlAddtional
913+ = lens _jlAddtional (\ s a -> s{_jlAddtional = a}) .
914+ _Coerce
915+
916+instance FromJSON JobLabels where
917+ parseJSON
918+ = withObject "JobLabels"
919+ (\ o -> JobLabels' <$> (parseJSONObject o))
920+
921+instance ToJSON JobLabels where
922+ toJSON = toJSON . _jlAddtional
923+
817-- | A request to submit a job.
924-- | A request to submit a job.
818--
925--
819-- /See:/ 'submitJobRequest' smart constructor.
926-- /See:/ 'submitJobRequest' smart constructor.
@@ -846,6 +953,57 @@ instance ToJSON SubmitJobRequest where
846 toJSON SubmitJobRequest'{..}
953 toJSON SubmitJobRequest'{..}
847 = object (catMaybes [("job" .=) <$> _sjrJob])
954 = object (catMaybes [("job" .=) <$> _sjrJob])
848
955
956+-- | Contains cluster daemon metrics, such as HDFS and YARN stats. **Beta
957+-- Feature**: This report is available for testing purposes only. It may be
958+-- changed before final release.
959+--
960+-- /See:/ 'clusterMetrics' smart constructor.
961+data ClusterMetrics = ClusterMetrics'
962+ { _cmYarnMetrics :: !(Maybe ClusterMetricsYarnMetrics)
963+ , _cmHdfsMetrics :: !(Maybe ClusterMetricsHdfsMetrics)
964+ } deriving (Eq,Show,Data,Typeable,Generic)
965+
966+-- | Creates a value of 'ClusterMetrics' with the minimum fields required to make a request.
967+--
968+-- Use one of the following lenses to modify other fields as desired:
969+--
970+-- * 'cmYarnMetrics'
971+--
972+-- * 'cmHdfsMetrics'
973+clusterMetrics
974+ :: ClusterMetrics
975+clusterMetrics =
976+ ClusterMetrics'
977+ { _cmYarnMetrics = Nothing
978+ , _cmHdfsMetrics = Nothing
979+ }
980+
981+-- | The YARN metrics.
982+cmYarnMetrics :: Lens' ClusterMetrics (Maybe ClusterMetricsYarnMetrics)
983+cmYarnMetrics
984+ = lens _cmYarnMetrics
985+ (\ s a -> s{_cmYarnMetrics = a})
986+
987+-- | The HDFS metrics.
988+cmHdfsMetrics :: Lens' ClusterMetrics (Maybe ClusterMetricsHdfsMetrics)
989+cmHdfsMetrics
990+ = lens _cmHdfsMetrics
991+ (\ s a -> s{_cmHdfsMetrics = a})
992+
993+instance FromJSON ClusterMetrics where
994+ parseJSON
995+ = withObject "ClusterMetrics"
996+ (\ o ->
997+ ClusterMetrics' <$>
998+ (o .:? "yarnMetrics") <*> (o .:? "hdfsMetrics"))
999+
1000+instance ToJSON ClusterMetrics where
1001+ toJSON ClusterMetrics'{..}
1002+ = object
1003+ (catMaybes
1004+ [("yarnMetrics" .=) <$> _cmYarnMetrics,
1005+ ("hdfsMetrics" .=) <$> _cmHdfsMetrics])
1006+
849-- | This resource represents a long-running operation that is the result of
1007-- | This resource represents a long-running operation that is the result of
850-- a network API call.
1008-- a network API call.
851--
1009--
@@ -888,7 +1046,7 @@ operation =
888oDone :: Lens' Operation (Maybe Bool)
1046oDone :: Lens' Operation (Maybe Bool)
889oDone = lens _oDone (\ s a -> s{_oDone = a})
1047oDone = lens _oDone (\ s a -> s{_oDone = a})
890
1048
891−-- | The error result of the operation in case of failure.
1049+-- | The error result of the operation in case of failure or cancellation.
892oError :: Lens' Operation (Maybe Status)
1050oError :: Lens' Operation (Maybe Status)
893oError = lens _oError (\ s a -> s{_oError = a})
1051oError = lens _oError (\ s a -> s{_oError = a})
894
1052
@@ -960,7 +1118,8 @@ instance FromJSON Empty where
960instance ToJSON Empty where
1118instance ToJSON Empty where
961 toJSON = const emptyObject
1119 toJSON = const emptyObject
962
1120
963−-- | A Cloud Dataproc job for running Hive queries on YARN.
1121+-- | A Cloud Dataproc job for running [Apache
1122+-- Hive](https:\/\/hive.apache.org\/) queries on YARN.
964--
1123--
965-- /See:/ 'hiveJob' smart constructor.
1124-- /See:/ 'hiveJob' smart constructor.
966data HiveJob = HiveJob'
1125data HiveJob = HiveJob'
@@ -1193,8 +1352,8 @@ ccWorkerConfig
1193-- | [Optional] Commands to execute on each node after config is completed.
1352-- | [Optional] Commands to execute on each node after config is completed.
1194-- By default, executables are run on master and all worker nodes. You can
1353-- By default, executables are run on master and all worker nodes. You can
1195-- test a node\'s role metadata to run an executable on a master or worker
1354-- test a node\'s role metadata to run an executable on a master or worker
1196−-- node, as shown below:
1355+-- node, as shown below using \`curl\` (you can also use \`wget\`):
1197−-- ROLE=$(\/usr\/share\/google\/get_metadata_value attributes\/role) if [[ \"${ROLE}\"
1356+-- ROLE=$(curl -H Metadata-Flavor:Google http:\/\/metadata\/computeMetadata\/v1\/instance\/attributes\/dataproc-role) if [[ \"${ROLE}\"
1198-- == \'Master\' ]]; then ... master specific actions ... else ... worker
1357-- == \'Master\' ]]; then ... master specific actions ... else ... worker
1199-- specific actions ... fi
1358-- specific actions ... fi
1200ccInitializationActions :: Lens' ClusterConfig [NodeInitializationAction]
1359ccInitializationActions :: Lens' ClusterConfig [NodeInitializationAction]
@@ -1336,23 +1495,23 @@ clusterOperationStatus =
1336 , _cosDetails = Nothing
1495 , _cosDetails = Nothing
1337 }
1496 }
1338
1497
1339−-- | A message containing the operation state.
1498+-- | [Output-only] A message containing the operation state.
1340cosState :: Lens' ClusterOperationStatus (Maybe Text)
1499cosState :: Lens' ClusterOperationStatus (Maybe Text)
1341cosState = lens _cosState (\ s a -> s{_cosState = a})
1500cosState = lens _cosState (\ s a -> s{_cosState = a})
1342
1501
1343−-- | A message containing the detailed operation state.
1502+-- | [Output-only] A message containing the detailed operation state.
1344cosInnerState :: Lens' ClusterOperationStatus (Maybe Text)
1503cosInnerState :: Lens' ClusterOperationStatus (Maybe Text)
1345cosInnerState
1504cosInnerState
1346 = lens _cosInnerState
1505 = lens _cosInnerState
1347 (\ s a -> s{_cosInnerState = a})
1506 (\ s a -> s{_cosInnerState = a})
1348
1507
1349−-- | The time this state was entered.
1508+-- | [Output-only] The time this state was entered.
1350cosStateStartTime :: Lens' ClusterOperationStatus (Maybe Text)
1509cosStateStartTime :: Lens' ClusterOperationStatus (Maybe Text)
1351cosStateStartTime
1510cosStateStartTime
1352 = lens _cosStateStartTime
1511 = lens _cosStateStartTime
1353 (\ s a -> s{_cosStateStartTime = a})
1512 (\ s a -> s{_cosStateStartTime = a})
1354
1513
1355−-- | A message containing any operation metadata details.
1514+-- | [Output-only]A message containing any operation metadata details.
1356cosDetails :: Lens' ClusterOperationStatus (Maybe Text)
1515cosDetails :: Lens' ClusterOperationStatus (Maybe Text)
1357cosDetails
1516cosDetails
1358 = lens _cosDetails (\ s a -> s{_cosDetails = a})
1517 = lens _cosDetails (\ s a -> s{_cosDetails = a})
@@ -1394,7 +1553,7 @@ statusDetailsItem pSdiAddtional_ =
1394 { _sdiAddtional = _Coerce # pSdiAddtional_
1553 { _sdiAddtional = _Coerce # pSdiAddtional_
1395 }
1554 }
1396
1555
1397−-- | Properties of the object. Contains field \'ype with type URL.
1556+-- | Properties of the object. Contains field \'type with type URL.
1398sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1557sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
1399sdiAddtional
1558sdiAddtional
1400 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
1559 = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})
@@ -1499,6 +1658,41 @@ instance ToJSON NodeInitializationAction where
1499 [("executionTimeout" .=) <$> _niaExecutionTimeout,
1658 [("executionTimeout" .=) <$> _niaExecutionTimeout,
1500 ("executableFile" .=) <$> _niaExecutableFile])
1659 ("executableFile" .=) <$> _niaExecutableFile])
1501
1660
1661+-- | The YARN metrics.
1662+--
1663+-- /See:/ 'clusterMetricsYarnMetrics' smart constructor.
1664+newtype ClusterMetricsYarnMetrics = ClusterMetricsYarnMetrics'
1665+ { _cmymAddtional :: HashMap Text (Textual Int64)
1666+ } deriving (Eq,Show,Data,Typeable,Generic)
1667+
1668+-- | Creates a value of 'ClusterMetricsYarnMetrics' with the minimum fields required to make a request.
1669+--
1670+-- Use one of the following lenses to modify other fields as desired:
1671+--
1672+-- * 'cmymAddtional'
1673+clusterMetricsYarnMetrics
1674+ :: HashMap Text Int64 -- ^ 'cmymAddtional'
1675+ -> ClusterMetricsYarnMetrics
1676+clusterMetricsYarnMetrics pCmymAddtional_ =
1677+ ClusterMetricsYarnMetrics'
1678+ { _cmymAddtional = _Coerce # pCmymAddtional_
1679+ }
1680+
1681+cmymAddtional :: Lens' ClusterMetricsYarnMetrics (HashMap Text Int64)
1682+cmymAddtional
1683+ = lens _cmymAddtional
1684+ (\ s a -> s{_cmymAddtional = a})
1685+ . _Coerce
1686+
1687+instance FromJSON ClusterMetricsYarnMetrics where
1688+ parseJSON
1689+ = withObject "ClusterMetricsYarnMetrics"
1690+ (\ o ->
1691+ ClusterMetricsYarnMetrics' <$> (parseJSONObject o))
1692+
1693+instance ToJSON ClusterMetricsYarnMetrics where
1694+ toJSON = toJSON . _cmymAddtional
1695+
1502-- | Cloud Dataproc job config.
1696-- | Cloud Dataproc job config.
1503--
1697--
1504-- /See:/ 'jobPlacement' smart constructor.
1698-- /See:/ 'jobPlacement' smart constructor.
@@ -1555,6 +1749,7 @@ instance ToJSON JobPlacement where
1555-- /See:/ 'gceClusterConfig' smart constructor.
1749-- /See:/ 'gceClusterConfig' smart constructor.
1556data GceClusterConfig = GceClusterConfig'
1750data GceClusterConfig = GceClusterConfig'
1557 { _gccSubnetworkURI :: !(Maybe Text)
1751 { _gccSubnetworkURI :: !(Maybe Text)
1752+ , _gccInternalIPOnly :: !(Maybe Bool)
1558 , _gccNetworkURI :: !(Maybe Text)
1753 , _gccNetworkURI :: !(Maybe Text)
1559 , _gccZoneURI :: !(Maybe Text)
1754 , _gccZoneURI :: !(Maybe Text)
1560 , _gccMetadata :: !(Maybe GceClusterConfigMetadata)
1755 , _gccMetadata :: !(Maybe GceClusterConfigMetadata)
@@ -1568,6 +1763,8 @@ data GceClusterConfig = GceClusterConfig'
1568--
1763--
1569-- * 'gccSubnetworkURI'
1764-- * 'gccSubnetworkURI'
1570--
1765--
1766+-- * 'gccInternalIPOnly'
1767+--
1571-- * 'gccNetworkURI'
1768-- * 'gccNetworkURI'
1572--
1769--
1573-- * 'gccZoneURI'
1770-- * 'gccZoneURI'
@@ -1582,6 +1779,7 @@ gceClusterConfig
1582gceClusterConfig =
1779gceClusterConfig =
1583 GceClusterConfig'
1780 GceClusterConfig'
1584 { _gccSubnetworkURI = Nothing
1781 { _gccSubnetworkURI = Nothing
1782+ , _gccInternalIPOnly = Nothing
1585 , _gccNetworkURI = Nothing
1783 , _gccNetworkURI = Nothing
1586 , _gccZoneURI = Nothing
1784 , _gccZoneURI = Nothing
1587 , _gccMetadata = Nothing
1785 , _gccMetadata = Nothing
@@ -1589,7 +1787,7 @@ gceClusterConfig =
1589 , _gccTags = Nothing
1787 , _gccTags = Nothing
1590 }
1788 }
1591
1789
1592−-- | The Google Compute Engine subnetwork to be used for machine
1790+-- | [Optional] The Google Compute Engine subnetwork to be used for machine
1593-- communications. Cannot be specified with network_uri. Example:
1791-- communications. Cannot be specified with network_uri. Example:
1594-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/regions\/us-east1\/sub0\`.
1792-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/regions\/us-east1\/sub0\`.
1595gccSubnetworkURI :: Lens' GceClusterConfig (Maybe Text)
1793gccSubnetworkURI :: Lens' GceClusterConfig (Maybe Text)
@@ -1597,12 +1795,23 @@ gccSubnetworkURI
1597 = lens _gccSubnetworkURI
1795 = lens _gccSubnetworkURI
1598 (\ s a -> s{_gccSubnetworkURI = a})
1796 (\ s a -> s{_gccSubnetworkURI = a})
1599
1797
1798+-- | [Optional] If true, all instances in the cluster will only have internal
1799+-- IP addresses. By default, clusters are not restricted to internal IP
1800+-- addresses, and will have ephemeral external IP addresses assigned to
1801+-- each instance. This \`internal_ip_only\` restriction can only be enabled
1802+-- for subnetwork enabled networks, and all off-cluster dependencies must
1803+-- be configured to be accessible without external IP addresses.
1804+gccInternalIPOnly :: Lens' GceClusterConfig (Maybe Bool)
1805+gccInternalIPOnly
1806+ = lens _gccInternalIPOnly
1807+ (\ s a -> s{_gccInternalIPOnly = a})
1808+
1600−-- | The Google Compute Engine network to be used for machine communications.
1809+-- | [Optional] The Google Compute Engine network to be used for machine
1601−-- Cannot be specified with subnetwork_uri. If neither network_uri nor
1810+-- communications. Cannot be specified with subnetwork_uri. If neither
1602−-- subnetwork_uri is specified, the \"default\" network of the project is
1811+-- \`network_uri\` nor \`subnetwork_uri\` is specified, the \"default\"
1603−-- used, if it exists. Cannot be a \"Custom Subnet Network\" (see
1812+-- network of the project is used, if it exists. Cannot be a \"Custom
1604−-- https:\/\/cloud.google.com\/compute\/docs\/subnetworks for more
1813+-- Subnet Network\" (see [Using Subnetworks](\/compute\/docs\/subnetworks)
1605−-- information). Example:
1814+-- for more information). Example:
1606-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/regions\/global\/default\`.
1815-- \`https:\/\/www.googleapis.com\/compute\/v1\/projects\/[project_id]\/regions\/global\/default\`.
1607gccNetworkURI :: Lens' GceClusterConfig (Maybe Text)
1816gccNetworkURI :: Lens' GceClusterConfig (Maybe Text)
1608gccNetworkURI
1817gccNetworkURI
@@ -1616,17 +1825,20 @@ gccZoneURI :: Lens' GceClusterConfig (Maybe Text)
1616gccZoneURI
1825gccZoneURI
1617 = lens _gccZoneURI (\ s a -> s{_gccZoneURI = a})
1826 = lens _gccZoneURI (\ s a -> s{_gccZoneURI = a})
1618
1827
1619−-- | The Google Compute Engine metadata entries to add to all instances.
1828+-- | The Google Compute Engine metadata entries to add to all instances (see
1829+-- [Project and instance
1830+-- metadata](https:\/\/cloud.google.com\/compute\/docs\/storing-retrieving-metadata#project_and_instance_metadata)).
1620gccMetadata :: Lens' GceClusterConfig (Maybe GceClusterConfigMetadata)
1831gccMetadata :: Lens' GceClusterConfig (Maybe GceClusterConfigMetadata)
1621gccMetadata
1832gccMetadata
1622 = lens _gccMetadata (\ s a -> s{_gccMetadata = a})
1833 = lens _gccMetadata (\ s a -> s{_gccMetadata = a})
1623
1834
1624−-- | The URIs of service account scopes to be included in Google Compute
1835+-- | [Optional] The URIs of service account scopes to be included in Google
1625−-- Engine instances. The following base set of scopes is always included: *
1836+-- Compute Engine instances. The following base set of scopes is always
1837+-- included: *
1626-- https:\/\/www.googleapis.com\/auth\/cloud.useraccounts.readonly *
1838-- https:\/\/www.googleapis.com\/auth\/cloud.useraccounts.readonly *
1627-- https:\/\/www.googleapis.com\/auth\/devstorage.read_write *
1839-- https:\/\/www.googleapis.com\/auth\/devstorage.read_write *
1628-- https:\/\/www.googleapis.com\/auth\/logging.write If no scopes are
1840-- https:\/\/www.googleapis.com\/auth\/logging.write If no scopes are
1629−-- specfied, the following defaults are also provided: *
1841+-- specified, the following defaults are also provided: *
1630-- https:\/\/www.googleapis.com\/auth\/bigquery *
1842-- https:\/\/www.googleapis.com\/auth\/bigquery *
1631-- https:\/\/www.googleapis.com\/auth\/bigtable.admin.table *
1843-- https:\/\/www.googleapis.com\/auth\/bigtable.admin.table *
1632-- https:\/\/www.googleapis.com\/auth\/bigtable.data *
1844-- https:\/\/www.googleapis.com\/auth\/bigtable.data *
@@ -1638,7 +1850,8 @@ gccServiceAccountScopes
1638 . _Default
1850 . _Default
1639 . _Coerce
1851 . _Coerce
1640
1852
1641−-- | The Google Compute Engine tags to add to all instances.
1853+-- | The Google Compute Engine tags to add to all instances (see [Tagging
1854+-- instances](\/compute\/docs\/label-or-tag-resources#tags)).
1642gccTags :: Lens' GceClusterConfig [Text]
1855gccTags :: Lens' GceClusterConfig [Text]
1643gccTags
1856gccTags
1644 = lens _gccTags (\ s a -> s{_gccTags = a}) . _Default
1857 = lens _gccTags (\ s a -> s{_gccTags = a}) . _Default
@@ -1649,8 +1862,9 @@ instance FromJSON GceClusterConfig where
1649 = withObject "GceClusterConfig"
1862 = withObject "GceClusterConfig"
1650 (\ o ->
1863 (\ o ->
1651 GceClusterConfig' <$>
1864 GceClusterConfig' <$>
1652− (o .:? "subnetworkUri") <*> (o .:? "networkUri") <*>
1865+ (o .:? "subnetworkUri") <*> (o .:? "internalIpOnly")
1866+ <*> (o .:? "networkUri")
1653− (o .:? "zoneUri")
1867+ <*> (o .:? "zoneUri")
1654 <*> (o .:? "metadata")
1868 <*> (o .:? "metadata")
1655 <*> (o .:? "serviceAccountScopes" .!= mempty)
1869 <*> (o .:? "serviceAccountScopes" .!= mempty)
1656 <*> (o .:? "tags" .!= mempty))
1870 <*> (o .:? "tags" .!= mempty))
@@ -1660,6 +1874,7 @@ instance ToJSON GceClusterConfig where
1660 = object
1874 = object
1661 (catMaybes
1875 (catMaybes
1662 [("subnetworkUri" .=) <$> _gccSubnetworkURI,
1876 [("subnetworkUri" .=) <$> _gccSubnetworkURI,
1877+ ("internalIpOnly" .=) <$> _gccInternalIPOnly,
1663 ("networkUri" .=) <$> _gccNetworkURI,
1878 ("networkUri" .=) <$> _gccNetworkURI,
1664 ("zoneUri" .=) <$> _gccZoneURI,
1879 ("zoneUri" .=) <$> _gccZoneURI,
1665 ("metadata" .=) <$> _gccMetadata,
1880 ("metadata" .=) <$> _gccMetadata,
@@ -1736,7 +1951,9 @@ instance ToJSON OperationStatus where
1736 ("stateStartTime" .=) <$> _osStateStartTime,
1951 ("stateStartTime" .=) <$> _osStateStartTime,
1737 ("details" .=) <$> _osDetails])
1952 ("details" .=) <$> _osDetails])
1738
1953
1739−-- | The Google Compute Engine metadata entries to add to all instances.
1954+-- | The Google Compute Engine metadata entries to add to all instances (see
1955+-- [Project and instance
1956+-- metadata](https:\/\/cloud.google.com\/compute\/docs\/storing-retrieving-metadata#project_and_instance_metadata)).
1740--
1957--
1741-- /See:/ 'gceClusterConfigMetadata' smart constructor.
1958-- /See:/ 'gceClusterConfigMetadata' smart constructor.
1742newtype GceClusterConfigMetadata = GceClusterConfigMetadata'
1959newtype GceClusterConfigMetadata = GceClusterConfigMetadata'
@@ -1846,6 +2063,44 @@ instance ToJSON DiagnoseClusterOutputLocation where
1846 = object
2063 = object
1847 (catMaybes [("outputUri" .=) <$> _dcolOutputURI])
2064 (catMaybes [("outputUri" .=) <$> _dcolOutputURI])
1848
2065
2066+-- | [Optional] The labels to associate with this cluster. Label **keys**
2067+-- must contain 1 to 63 characters, and must conform to [RFC
2068+-- 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). Label **values** may be
2069+-- empty, but, if present, must contain 1 to 63 characters, and must
2070+-- conform to [RFC 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). No more
2071+-- than 32 labels can be associated with a cluster.
2072+--
2073+-- /See:/ 'clusterLabels' smart constructor.
2074+newtype ClusterLabels = ClusterLabels'
2075+ { _clAddtional :: HashMap Text Text
2076+ } deriving (Eq,Show,Data,Typeable,Generic)
2077+
2078+-- | Creates a value of 'ClusterLabels' with the minimum fields required to make a request.
2079+--
2080+-- Use one of the following lenses to modify other fields as desired:
2081+--
2082+-- * 'clAddtional'
2083+clusterLabels
2084+ :: HashMap Text Text -- ^ 'clAddtional'
2085+ -> ClusterLabels
2086+clusterLabels pClAddtional_ =
2087+ ClusterLabels'
2088+ { _clAddtional = _Coerce # pClAddtional_
2089+ }
2090+
2091+clAddtional :: Lens' ClusterLabels (HashMap Text Text)
2092+clAddtional
2093+ = lens _clAddtional (\ s a -> s{_clAddtional = a}) .
2094+ _Coerce
2095+
2096+instance FromJSON ClusterLabels where
2097+ parseJSON
2098+ = withObject "ClusterLabels"
2099+ (\ o -> ClusterLabels' <$> (parseJSONObject o))
2100+
2101+instance ToJSON ClusterLabels where
2102+ toJSON = toJSON . _clAddtional
2103+
1849-- | A Cloud Dataproc job resource.
2104-- | A Cloud Dataproc job resource.
1850--
2105--
1851-- /See:/ 'job' smart constructor.
2106-- /See:/ 'job' smart constructor.
@@ -1857,6 +2112,8 @@ data Job = Job'
1857 , _jReference :: !(Maybe JobReference)
2112 , _jReference :: !(Maybe JobReference)
1858 , _jSparkSQLJob :: !(Maybe SparkSQLJob)
2113 , _jSparkSQLJob :: !(Maybe SparkSQLJob)
1859 , _jHadoopJob :: !(Maybe HadoopJob)
2114 , _jHadoopJob :: !(Maybe HadoopJob)
2115+ , _jYarnApplications :: !(Maybe [YarnApplication])
2116+ , _jLabels :: !(Maybe JobLabels)
1860 , _jPysparkJob :: !(Maybe PySparkJob)
2117 , _jPysparkJob :: !(Maybe PySparkJob)
1861 , _jDriverOutputResourceURI :: !(Maybe Text)
2118 , _jDriverOutputResourceURI :: !(Maybe Text)
1862 , _jStatusHistory :: !(Maybe [JobStatus])
2119 , _jStatusHistory :: !(Maybe [JobStatus])
@@ -1882,6 +2139,10 @@ data Job = Job'
1882--
2139--
1883-- * 'jHadoopJob'
2140-- * 'jHadoopJob'
1884--
2141--
2142+-- * 'jYarnApplications'
2143+--
2144+-- * 'jLabels'
2145+--
1885-- * 'jPysparkJob'
2146-- * 'jPysparkJob'
1886--
2147--
1887-- * 'jDriverOutputResourceURI'
2148-- * 'jDriverOutputResourceURI'
@@ -1902,6 +2163,8 @@ job =
1902 , _jReference = Nothing
2163 , _jReference = Nothing
1903 , _jSparkSQLJob = Nothing
2164 , _jSparkSQLJob = Nothing
1904 , _jHadoopJob = Nothing
2165 , _jHadoopJob = Nothing
2166+ , _jYarnApplications = Nothing
2167+ , _jLabels = Nothing
1905 , _jPysparkJob = Nothing
2168 , _jPysparkJob = Nothing
1906 , _jDriverOutputResourceURI = Nothing
2169 , _jDriverOutputResourceURI = Nothing
1907 , _jStatusHistory = Nothing
2170 , _jStatusHistory = Nothing
@@ -1950,6 +2213,25 @@ jHadoopJob :: Lens' Job (Maybe HadoopJob)
1950jHadoopJob
2213jHadoopJob
1951 = lens _jHadoopJob (\ s a -> s{_jHadoopJob = a})
2214 = lens _jHadoopJob (\ s a -> s{_jHadoopJob = a})
1952
2215
2216+-- | [Output-only] The collection of YARN applications spun up by this job.
2217+-- **Beta** Feature: This report is available for testing purposes only. It
2218+-- may be changed before final release.
2219+jYarnApplications :: Lens' Job [YarnApplication]
2220+jYarnApplications
2221+ = lens _jYarnApplications
2222+ (\ s a -> s{_jYarnApplications = a})
2223+ . _Default
2224+ . _Coerce
2225+
2226+-- | [Optional] The labels to associate with this job. Label **keys** must
2227+-- contain 1 to 63 characters, and must conform to [RFC
2228+-- 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). Label **values** may be
2229+-- empty, but, if present, must contain 1 to 63 characters, and must
2230+-- conform to [RFC 1035](https:\/\/www.ietf.org\/rfc\/rfc1035.txt). No more
2231+-- than 32 labels can be associated with a job.
2232+jLabels :: Lens' Job (Maybe JobLabels)
2233+jLabels = lens _jLabels (\ s a -> s{_jLabels = a})
2234+
1953-- | Job is a Pyspark job.
2235-- | Job is a Pyspark job.
1954jPysparkJob :: Lens' Job (Maybe PySparkJob)
2236jPysparkJob :: Lens' Job (Maybe PySparkJob)
1955jPysparkJob
2237jPysparkJob
@@ -1991,6 +2273,8 @@ instance FromJSON Job where
1991 <*> (o .:? "reference")
2273 <*> (o .:? "reference")
1992 <*> (o .:? "sparkSqlJob")
2274 <*> (o .:? "sparkSqlJob")
1993 <*> (o .:? "hadoopJob")
2275 <*> (o .:? "hadoopJob")
2276+ <*> (o .:? "yarnApplications" .!= mempty)
2277+ <*> (o .:? "labels")
1994 <*> (o .:? "pysparkJob")
2278 <*> (o .:? "pysparkJob")
1995 <*> (o .:? "driverOutputResourceUri")
2279 <*> (o .:? "driverOutputResourceUri")
1996 <*> (o .:? "statusHistory" .!= mempty)
2280 <*> (o .:? "statusHistory" .!= mempty)
@@ -2009,6 +2293,8 @@ instance ToJSON Job where
2009 ("reference" .=) <$> _jReference,
2293 ("reference" .=) <$> _jReference,
2010 ("sparkSqlJob" .=) <$> _jSparkSQLJob,
2294 ("sparkSqlJob" .=) <$> _jSparkSQLJob,
2011 ("hadoopJob" .=) <$> _jHadoopJob,
2295 ("hadoopJob" .=) <$> _jHadoopJob,
2296+ ("yarnApplications" .=) <$> _jYarnApplications,
2297+ ("labels" .=) <$> _jLabels,
2012 ("pysparkJob" .=) <$> _jPysparkJob,
2298 ("pysparkJob" .=) <$> _jPysparkJob,
2013 ("driverOutputResourceUri" .=) <$>
2299 ("driverOutputResourceUri" .=) <$>
2014 _jDriverOutputResourceURI,
2300 _jDriverOutputResourceURI,
@@ -2037,7 +2323,10 @@ instance FromJSON DiagnoseClusterRequest where
2037instance ToJSON DiagnoseClusterRequest where
2323instance ToJSON DiagnoseClusterRequest where
2038 toJSON = const emptyObject
2324 toJSON = const emptyObject
2039
2325
2040−-- | A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN.
2326+-- | A Cloud Dataproc job for running [Apache Hadoop
2327+-- MapReduce](https:\/\/hadoop.apache.org\/docs\/current\/hadoop-mapreduce-client\/hadoop-mapreduce-client-core\/MapReduceTutorial.html)
2328+-- jobs on [Apache Hadoop
2329+-- YARN](https:\/\/hadoop.apache.org\/docs\/r2.7.1\/hadoop-yarn\/hadoop-yarn-site\/YARN.html).
2041--
2330--
2042-- /See:/ 'hadoopJob' smart constructor.
2331-- /See:/ 'hadoopJob' smart constructor.
2043data HadoopJob = HadoopJob'
2332data HadoopJob = HadoopJob'
@@ -2182,6 +2471,7 @@ data ClusterOperationMetadata = ClusterOperationMetadata'
2182 { _comStatus :: !(Maybe ClusterOperationStatus)
2471 { _comStatus :: !(Maybe ClusterOperationStatus)
2183 , _comClusterUuid :: !(Maybe Text)
2472 , _comClusterUuid :: !(Maybe Text)
2184 , _comClusterName :: !(Maybe Text)
2473 , _comClusterName :: !(Maybe Text)
2474+ , _comLabels :: !(Maybe ClusterOperationMetadataLabels)
2185 , _comOperationType :: !(Maybe Text)
2475 , _comOperationType :: !(Maybe Text)
2186 , _comStatusHistory :: !(Maybe [ClusterOperationStatus])
2476 , _comStatusHistory :: !(Maybe [ClusterOperationStatus])
2187 , _comDescription :: !(Maybe Text)
2477 , _comDescription :: !(Maybe Text)
@@ -2197,6 +2487,8 @@ data ClusterOperationMetadata = ClusterOperationMetadata'
2197--
2487--
2198-- * 'comClusterName'
2488-- * 'comClusterName'
2199--
2489--
2490+-- * 'comLabels'
2491+--
2200-- * 'comOperationType'
2492-- * 'comOperationType'
2201--
2493--
2202-- * 'comStatusHistory'
2494-- * 'comStatusHistory'
@@ -2209,6 +2501,7 @@ clusterOperationMetadata =
2209 { _comStatus = Nothing
2501 { _comStatus = Nothing
2210 , _comClusterUuid = Nothing
2502 , _comClusterUuid = Nothing
2211 , _comClusterName = Nothing
2503 , _comClusterName = Nothing
2504+ , _comLabels = Nothing
2212 , _comOperationType = Nothing
2505 , _comOperationType = Nothing
2213 , _comStatusHistory = Nothing
2506 , _comStatusHistory = Nothing
2214 , _comDescription = Nothing
2507 , _comDescription = Nothing
@@ -2219,18 +2512,23 @@ comStatus :: Lens' ClusterOperationMetadata (Maybe ClusterOperationStatus)
2219comStatus
2512comStatus
2220 = lens _comStatus (\ s a -> s{_comStatus = a})
2513 = lens _comStatus (\ s a -> s{_comStatus = a})
2221
2514
2222−-- | Cluster UUId for the operation.
2515+-- | [Output-only] Cluster UUID for the operation.
2223comClusterUuid :: Lens' ClusterOperationMetadata (Maybe Text)
2516comClusterUuid :: Lens' ClusterOperationMetadata (Maybe Text)
2224comClusterUuid
2517comClusterUuid
2225 = lens _comClusterUuid
2518 = lens _comClusterUuid
2226 (\ s a -> s{_comClusterUuid = a})
2519 (\ s a -> s{_comClusterUuid = a})
2227
2520
2228−-- | Name of the cluster for the operation.
2521+-- | [Output-only] Name of the cluster for the operation.
2229comClusterName :: Lens' ClusterOperationMetadata (Maybe Text)
2522comClusterName :: Lens' ClusterOperationMetadata (Maybe Text)
2230comClusterName
2523comClusterName
2231 = lens _comClusterName
2524 = lens _comClusterName
2232 (\ s a -> s{_comClusterName = a})
2525 (\ s a -> s{_comClusterName = a})
2233
2526
2527+-- | [Output-only] labels associated with the operation
2528+comLabels :: Lens' ClusterOperationMetadata (Maybe ClusterOperationMetadataLabels)
2529+comLabels
2530+ = lens _comLabels (\ s a -> s{_comLabels = a})
2531+
2234-- | [Output-only] The operation type.
2532-- | [Output-only] The operation type.
2235comOperationType :: Lens' ClusterOperationMetadata (Maybe Text)
2533comOperationType :: Lens' ClusterOperationMetadata (Maybe Text)
2236comOperationType
2534comOperationType
@@ -2258,6 +2556,7 @@ instance FromJSON ClusterOperationMetadata where
2258 ClusterOperationMetadata' <$>
2556 ClusterOperationMetadata' <$>
2259 (o .:? "status") <*> (o .:? "clusterUuid") <*>
2557 (o .:? "status") <*> (o .:? "clusterUuid") <*>
2260 (o .:? "clusterName")
2558 (o .:? "clusterName")
2559+ <*> (o .:? "labels")
2261 <*> (o .:? "operationType")
2560 <*> (o .:? "operationType")
2262 <*> (o .:? "statusHistory" .!= mempty)
2561 <*> (o .:? "statusHistory" .!= mempty)
2263 <*> (o .:? "description"))
2562 <*> (o .:? "description"))
@@ -2269,11 +2568,13 @@ instance ToJSON ClusterOperationMetadata where
2269 [("status" .=) <$> _comStatus,
2568 [("status" .=) <$> _comStatus,
2270 ("clusterUuid" .=) <$> _comClusterUuid,
2569 ("clusterUuid" .=) <$> _comClusterUuid,
2271 ("clusterName" .=) <$> _comClusterName,
2570 ("clusterName" .=) <$> _comClusterName,
2571+ ("labels" .=) <$> _comLabels,
2272 ("operationType" .=) <$> _comOperationType,
2572 ("operationType" .=) <$> _comOperationType,
2273 ("statusHistory" .=) <$> _comStatusHistory,
2573 ("statusHistory" .=) <$> _comStatusHistory,
2274 ("description" .=) <$> _comDescription])
2574 ("description" .=) <$> _comDescription])
2275
2575
2276−-- | A Cloud Dataproc job for running Spark SQL queries.
2576+-- | A Cloud Dataproc job for running [Apache Spark
2577+-- SQL](http:\/\/spark.apache.org\/sql\/) queries.
2277--
2578--
2278-- /See:/ 'sparkSQLJob' smart constructor.
2579-- /See:/ 'sparkSQLJob' smart constructor.
2279data SparkSQLJob = SparkSQLJob'
2580data SparkSQLJob = SparkSQLJob'
@@ -2520,7 +2821,9 @@ instance FromJSON SparkJobProperties where
2520instance ToJSON SparkJobProperties where
2821instance ToJSON SparkJobProperties where
2521 toJSON = toJSON . _sjpAddtional
2822 toJSON = toJSON . _sjpAddtional
2522
2823
2523−-- | A Cloud Dataproc job for running PySpark applications on YARN.
2824+-- | A Cloud Dataproc job for running [Apache
2825+-- PySpark](https:\/\/spark.apache.org\/docs\/0.9.0\/python-programming-guide.html)
2826+-- applications on YARN.
2524--
2827--
2525-- /See:/ 'pySparkJob' smart constructor.
2828-- /See:/ 'pySparkJob' smart constructor.
2526data PySparkJob = PySparkJob'
2829data PySparkJob = PySparkJob'
@@ -2735,7 +3038,7 @@ listClustersResponse =
2735 , _lcrClusters = Nothing
3038 , _lcrClusters = Nothing
2736 }
3039 }
2737
3040
2738−-- | [Optional] This token is included in the response if there are more
3041+-- | [Output-only] This token is included in the response if there are more
2739-- results to fetch. To fetch additional results, provide this value as the
3042-- results to fetch. To fetch additional results, provide this value as the
2740-- \`page_token\` in a subsequent ListClustersRequest.
3043-- \`page_token\` in a subsequent ListClustersRequest.
2741lcrNextPageToken :: Lens' ListClustersResponse (Maybe Text)
3044lcrNextPageToken :: Lens' ListClustersResponse (Maybe Text)
@@ -3015,7 +3318,7 @@ jobStatus =
3015 , _jsDetails = Nothing
3318 , _jsDetails = Nothing
3016 }
3319 }
3017
3320
3018−-- | [Required] A state message specifying the overall job state.
3321+-- | [Output-only] A state message specifying the overall job state.
3019jsState :: Lens' JobStatus (Maybe Text)
3322jsState :: Lens' JobStatus (Maybe Text)
3020jsState = lens _jsState (\ s a -> s{_jsState = a})
3323jsState = lens _jsState (\ s a -> s{_jsState = a})
3021
3324
@@ -3025,8 +3328,8 @@ jsStateStartTime
3025 = lens _jsStateStartTime
3328 = lens _jsStateStartTime
3026 (\ s a -> s{_jsStateStartTime = a})
3329 (\ s a -> s{_jsStateStartTime = a})
3027
3330
3028−-- | [Optional] Job state details, such as an error description if the state
3331+-- | [Output-only] Optional job state details, such as an error description
3029−-- is ERROR.
3332+-- if the state is ERROR.
3030jsDetails :: Lens' JobStatus (Maybe Text)
3333jsDetails :: Lens' JobStatus (Maybe Text)
3031jsDetails
3334jsDetails
3032 = lens _jsDetails (\ s a -> s{_jsDetails = a})
3335 = lens _jsDetails (\ s a -> s{_jsDetails = a})
@@ -3083,6 +3386,41 @@ instance FromJSON PigJobScriptVariables where
3083instance ToJSON PigJobScriptVariables where
3386instance ToJSON PigJobScriptVariables where
3084 toJSON = toJSON . _pjsvAddtional
3387 toJSON = toJSON . _pjsvAddtional
3085
3388
3389+-- | The HDFS metrics.
3390+--
3391+-- /See:/ 'clusterMetricsHdfsMetrics' smart constructor.
3392+newtype ClusterMetricsHdfsMetrics = ClusterMetricsHdfsMetrics'
3393+ { _cmhmAddtional :: HashMap Text (Textual Int64)
3394+ } deriving (Eq,Show,Data,Typeable,Generic)
3395+
3396+-- | Creates a value of 'ClusterMetricsHdfsMetrics' with the minimum fields required to make a request.
3397+--
3398+-- Use one of the following lenses to modify other fields as desired:
3399+--
3400+-- * 'cmhmAddtional'
3401+clusterMetricsHdfsMetrics
3402+ :: HashMap Text Int64 -- ^ 'cmhmAddtional'
3403+ -> ClusterMetricsHdfsMetrics
3404+clusterMetricsHdfsMetrics pCmhmAddtional_ =
3405+ ClusterMetricsHdfsMetrics'
3406+ { _cmhmAddtional = _Coerce # pCmhmAddtional_
3407+ }
3408+
3409+cmhmAddtional :: Lens' ClusterMetricsHdfsMetrics (HashMap Text Int64)
3410+cmhmAddtional
3411+ = lens _cmhmAddtional
3412+ (\ s a -> s{_cmhmAddtional = a})
3413+ . _Coerce
3414+
3415+instance FromJSON ClusterMetricsHdfsMetrics where
3416+ parseJSON
3417+ = withObject "ClusterMetricsHdfsMetrics"
3418+ (\ o ->
3419+ ClusterMetricsHdfsMetrics' <$> (parseJSONObject o))
3420+
3421+instance ToJSON ClusterMetricsHdfsMetrics where
3422+ toJSON = toJSON . _cmhmAddtional
3423+
3086-- | The normal response of the operation in case of success. If the original
3424-- | The normal response of the operation in case of success. If the original
3087-- method returns no data on success, such as \`Delete\`, the response is
3425-- method returns no data on success, such as \`Delete\`, the response is
3088-- \`google.protobuf.Empty\`. If the original method is standard
3426-- \`google.protobuf.Empty\`. If the original method is standard
@@ -3110,7 +3448,7 @@ operationResponse pOrAddtional_ =
3110 { _orAddtional = _Coerce # pOrAddtional_
3448 { _orAddtional = _Coerce # pOrAddtional_
3111 }
3449 }
3112
3450
3113−-- | Properties of the object. Contains field \'ype with type URL.
3451+-- | Properties of the object. Contains field \'type with type URL.
3114orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)
3452orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)
3115orAddtional
3453orAddtional
3116 = lens _orAddtional (\ s a -> s{_orAddtional = a}) .
3454 = lens _orAddtional (\ s a -> s{_orAddtional = a}) .
@@ -3189,17 +3527,17 @@ clusterStatus =
3189 , _csDetail = Nothing
3527 , _csDetail = Nothing
3190 }
3528 }
3191
3529
3192−-- | The cluster\'s state.
3530+-- | [Output-only] The cluster\'s state.
3193csState :: Lens' ClusterStatus (Maybe Text)
3531csState :: Lens' ClusterStatus (Maybe Text)
3194csState = lens _csState (\ s a -> s{_csState = a})
3532csState = lens _csState (\ s a -> s{_csState = a})
3195
3533
3196−-- | Time when this state was entered.
3534+-- | [Output-only] Time when this state was entered.
3197csStateStartTime :: Lens' ClusterStatus (Maybe Text)
3535csStateStartTime :: Lens' ClusterStatus (Maybe Text)
3198csStateStartTime
3536csStateStartTime
3199 = lens _csStateStartTime
3537 = lens _csStateStartTime
3200 (\ s a -> s{_csStateStartTime = a})
3538 (\ s a -> s{_csStateStartTime = a})
3201
3539
3202−-- | Optional details of cluster\'s state.
3540+-- | [Output-only] Optional details of cluster\'s state.
3203csDetail :: Lens' ClusterStatus (Maybe Text)
3541csDetail :: Lens' ClusterStatus (Maybe Text)
3204csDetail = lens _csDetail (\ s a -> s{_csDetail = a})
3542csDetail = lens _csDetail (\ s a -> s{_csDetail = a})
3205
3543
@@ -3219,7 +3557,83 @@ instance ToJSON ClusterStatus where
3219 ("stateStartTime" .=) <$> _csStateStartTime,
3557 ("stateStartTime" .=) <$> _csStateStartTime,
3220 ("detail" .=) <$> _csDetail])
3558 ("detail" .=) <$> _csDetail])
3221
3559
3560+-- | A YARN application created by a job. Application information is a subset
3561+-- of org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.
3562+-- **Beta Feature**: This report is available for testing purposes only. It
3563+-- may be changed before final release.
3564+--
3565+-- /See:/ 'yarnApplication' smart constructor.
3566+data YarnApplication = YarnApplication'
3567+ { _yaTrackingURL :: !(Maybe Text)
3568+ , _yaState :: !(Maybe Text)
3569+ , _yaProgress :: !(Maybe (Textual Double))
3570+ , _yaName :: !(Maybe Text)
3571+ } deriving (Eq,Show,Data,Typeable,Generic)
3572+
3573+-- | Creates a value of 'YarnApplication' with the minimum fields required to make a request.
3574+--
3575+-- Use one of the following lenses to modify other fields as desired:
3576+--
3577+-- * 'yaTrackingURL'
3578+--
3579+-- * 'yaState'
3580+--
3581+-- * 'yaProgress'
3582+--
3583+-- * 'yaName'
3584+yarnApplication
3585+ :: YarnApplication
3586+yarnApplication =
3587+ YarnApplication'
3588+ { _yaTrackingURL = Nothing
3589+ , _yaState = Nothing
3590+ , _yaProgress = Nothing
3591+ , _yaName = Nothing
3592+ }
3593+
3594+-- | [Optional] The HTTP URL of the ApplicationMaster, HistoryServer, or
3595+-- TimelineServer that provides application-specific information. The URL
3596+-- uses the internal hostname, and requires a proxy server for resolution
3597+-- and, possibly, access.
3598+yaTrackingURL :: Lens' YarnApplication (Maybe Text)
3599+yaTrackingURL
3600+ = lens _yaTrackingURL
3601+ (\ s a -> s{_yaTrackingURL = a})
3602+
3603+-- | [Required] The application state.
3604+yaState :: Lens' YarnApplication (Maybe Text)
3605+yaState = lens _yaState (\ s a -> s{_yaState = a})
3606+
3607+-- | [Required] The numerical progress of the application, from 1 to 100.
3608+yaProgress :: Lens' YarnApplication (Maybe Double)
3609+yaProgress
3610+ = lens _yaProgress (\ s a -> s{_yaProgress = a}) .
3611+ mapping _Coerce
3612+
3613+-- | [Required] The application name.
3614+yaName :: Lens' YarnApplication (Maybe Text)
3615+yaName = lens _yaName (\ s a -> s{_yaName = a})
3616+
3617+instance FromJSON YarnApplication where
3618+ parseJSON
3619+ = withObject "YarnApplication"
3620+ (\ o ->
3621+ YarnApplication' <$>
3622+ (o .:? "trackingUrl") <*> (o .:? "state") <*>
3623+ (o .:? "progress")
3624+ <*> (o .:? "name"))
3625+
3626+instance ToJSON YarnApplication where
3627+ toJSON YarnApplication'{..}
3628+ = object
3629+ (catMaybes
3630+ [("trackingUrl" .=) <$> _yaTrackingURL,
3631+ ("state" .=) <$> _yaState,
3632+ ("progress" .=) <$> _yaProgress,
3633+ ("name" .=) <$> _yaName])
3634+
3222−-- | A Cloud Dataproc job for running Pig queries on YARN.
3635+-- | A Cloud Dataproc job for running [Apache
3636+-- Pig](https:\/\/pig.apache.org\/) queries on YARN.
3223--
3637--
3224-- /See:/ 'pigJob' smart constructor.
3638-- /See:/ 'pigJob' smart constructor.
3225data PigJob = PigJob'
3639data PigJob = PigJob'
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/Clusters/List.hs+34−7
@@ -39,6 +39,7 @@ module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.List
39 , prclAccessToken
39 , prclAccessToken
40 , prclUploadType
40 , prclUploadType
41 , prclBearerToken
41 , prclBearerToken
42+ , prclFilter
42 , prclRegion
43 , prclRegion
43 , prclPageToken
44 , prclPageToken
44 , prclProjectId
45 , prclProjectId
@@ -64,11 +65,12 @@ type ProjectsRegionsClustersListResource =
64 QueryParam "access_token" Text :>
65 QueryParam "access_token" Text :>
65 QueryParam "uploadType" Text :>
66 QueryParam "uploadType" Text :>
66 QueryParam "bearer_token" Text :>
67 QueryParam "bearer_token" Text :>
67− QueryParam "pageToken" Text :>
68+ QueryParam "filter" Text :>
69+ QueryParam "pageToken" Text :>
68− QueryParam "pageSize" (Textual Int32) :>
70+ QueryParam "pageSize" (Textual Int32) :>
69− QueryParam "callback" Text :>
71+ QueryParam "callback" Text :>
70− QueryParam "alt" AltJSON :>
72+ QueryParam "alt" AltJSON :>
71− Get '[JSON] ListClustersResponse
73+ Get '[JSON] ListClustersResponse
72
74
73-- | Lists all regions\/{region}\/clusters in a project.
75-- | Lists all regions\/{region}\/clusters in a project.
74--
76--
@@ -80,6 +82,7 @@ data ProjectsRegionsClustersList = ProjectsRegionsClustersList'
80 , _prclAccessToken :: !(Maybe Text)
82 , _prclAccessToken :: !(Maybe Text)
81 , _prclUploadType :: !(Maybe Text)
83 , _prclUploadType :: !(Maybe Text)
82 , _prclBearerToken :: !(Maybe Text)
84 , _prclBearerToken :: !(Maybe Text)
85+ , _prclFilter :: !(Maybe Text)
83 , _prclRegion :: !Text
86 , _prclRegion :: !Text
84 , _prclPageToken :: !(Maybe Text)
87 , _prclPageToken :: !(Maybe Text)
85 , _prclProjectId :: !Text
88 , _prclProjectId :: !Text
@@ -103,6 +106,8 @@ data ProjectsRegionsClustersList = ProjectsRegionsClustersList'
103--
106--
104-- * 'prclBearerToken'
107-- * 'prclBearerToken'
105--
108--
109+-- * 'prclFilter'
110+--
106-- * 'prclRegion'
111-- * 'prclRegion'
107--
112--
108-- * 'prclPageToken'
113-- * 'prclPageToken'
@@ -124,6 +129,7 @@ projectsRegionsClustersList pPrclRegion_ pPrclProjectId_ =
124 , _prclAccessToken = Nothing
129 , _prclAccessToken = Nothing
125 , _prclUploadType = Nothing
130 , _prclUploadType = Nothing
126 , _prclBearerToken = Nothing
131 , _prclBearerToken = Nothing
132+ , _prclFilter = Nothing
127 , _prclRegion = pPrclRegion_
133 , _prclRegion = pPrclRegion_
128 , _prclPageToken = Nothing
134 , _prclPageToken = Nothing
129 , _prclProjectId = pPrclProjectId_
135 , _prclProjectId = pPrclProjectId_
@@ -164,12 +170,32 @@ prclBearerToken
164 = lens _prclBearerToken
170 = lens _prclBearerToken
165 (\ s a -> s{_prclBearerToken = a})
171 (\ s a -> s{_prclBearerToken = a})
166
172
173+-- | [Optional] A filter constraining the clusters to list. Filters are
174+-- case-sensitive and have the following syntax: field:value [field:value]
175+-- ... or field = value [AND [field = value]] ... where **field** is one of
176+-- \`status.state\`, \`clusterName\`, or \`labels.[KEY]\`, and \`[KEY]\` is
177+-- a label key. **value** can be \`*\` to match all values.
178+-- \`status.state\` can be one of the following: \`ACTIVE\`, \`INACTIVE\`,
179+-- \`CREATING\`, \`RUNNING\`, \`ERROR\`, \`DELETING\`, or \`UPDATING\`.
180+-- \`ACTIVE\` contains the \`CREATING\`, \`UPDATING\`, and \`RUNNING\`
181+-- states. \`INACTIVE\` contains the \`DELETING\` and \`ERROR\` states.
182+-- \`clusterName\` is the name of the cluster provided at creation time.
183+-- Only the logical \`AND\` operator is supported; space-separated items
184+-- are treated as having an implicit \`AND\` operator. Example valid
185+-- filters are: status.state:ACTIVE clusterName:mycluster
186+-- labels.env:staging \\ labels.starred:* and status.state = ACTIVE AND
187+-- clusterName = mycluster \\ AND labels.env = staging AND labels.starred =
188+-- *
189+prclFilter :: Lens' ProjectsRegionsClustersList (Maybe Text)
190+prclFilter
191+ = lens _prclFilter (\ s a -> s{_prclFilter = a})
192+
167-- | [Required] The Cloud Dataproc region in which to handle the request.
193-- | [Required] The Cloud Dataproc region in which to handle the request.
168prclRegion :: Lens' ProjectsRegionsClustersList Text
194prclRegion :: Lens' ProjectsRegionsClustersList Text
169prclRegion
195prclRegion
170 = lens _prclRegion (\ s a -> s{_prclRegion = a})
196 = lens _prclRegion (\ s a -> s{_prclRegion = a})
171
197
172−-- | The standard List page token.
198+-- | [Optional] The standard List page token.
173prclPageToken :: Lens' ProjectsRegionsClustersList (Maybe Text)
199prclPageToken :: Lens' ProjectsRegionsClustersList (Maybe Text)
174prclPageToken
200prclPageToken
175 = lens _prclPageToken
201 = lens _prclPageToken
@@ -182,7 +208,7 @@ prclProjectId
182 = lens _prclProjectId
208 = lens _prclProjectId
183 (\ s a -> s{_prclProjectId = a})
209 (\ s a -> s{_prclProjectId = a})
184
210
185−-- | The standard List page size.
211+-- | [Optional] The standard List page size.
186prclPageSize :: Lens' ProjectsRegionsClustersList (Maybe Int32)
212prclPageSize :: Lens' ProjectsRegionsClustersList (Maybe Int32)
187prclPageSize
213prclPageSize
188 = lens _prclPageSize (\ s a -> s{_prclPageSize = a})
214 = lens _prclPageSize (\ s a -> s{_prclPageSize = a})
@@ -206,6 +232,7 @@ instance GoogleRequest ProjectsRegionsClustersList
206 _prclAccessToken
232 _prclAccessToken
207 _prclUploadType
233 _prclUploadType
208 _prclBearerToken
234 _prclBearerToken
235+ _prclFilter
209 _prclPageToken
236 _prclPageToken
210 _prclPageSize
237 _prclPageSize
211 _prclCallback
238 _prclCallback
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/Jobs/List.hs+28−6
@@ -41,6 +41,7 @@ module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.List
41 , prjlUploadType
41 , prjlUploadType
42 , prjlBearerToken
42 , prjlBearerToken
43 , prjlClusterName
43 , prjlClusterName
44+ , prjlFilter
44 , prjlRegion
45 , prjlRegion
45 , prjlPageToken
46 , prjlPageToken
46 , prjlProjectId
47 , prjlProjectId
@@ -68,11 +69,12 @@ type ProjectsRegionsJobsListResource =
68 QueryParam "uploadType" Text :>
69 QueryParam "uploadType" Text :>
69 QueryParam "bearer_token" Text :>
70 QueryParam "bearer_token" Text :>
70 QueryParam "clusterName" Text :>
71 QueryParam "clusterName" Text :>
71− QueryParam "pageToken" Text :>
72+ QueryParam "filter" Text :>
73+ QueryParam "pageToken" Text :>
72− QueryParam "pageSize" (Textual Int32) :>
74+ QueryParam "pageSize" (Textual Int32) :>
73− QueryParam "callback" Text :>
75+ QueryParam "callback" Text :>
74− QueryParam "alt" AltJSON :>
76+ QueryParam "alt" AltJSON :>
75− Get '[JSON] ListJobsResponse
77+ Get '[JSON] ListJobsResponse
76
78
77-- | Lists regions\/{region}\/jobs in a project.
79-- | Lists regions\/{region}\/jobs in a project.
78--
80--
@@ -86,6 +88,7 @@ data ProjectsRegionsJobsList = ProjectsRegionsJobsList'
86 , _prjlUploadType :: !(Maybe Text)
88 , _prjlUploadType :: !(Maybe Text)
87 , _prjlBearerToken :: !(Maybe Text)
89 , _prjlBearerToken :: !(Maybe Text)
88 , _prjlClusterName :: !(Maybe Text)
90 , _prjlClusterName :: !(Maybe Text)
91+ , _prjlFilter :: !(Maybe Text)
89 , _prjlRegion :: !Text
92 , _prjlRegion :: !Text
90 , _prjlPageToken :: !(Maybe Text)
93 , _prjlPageToken :: !(Maybe Text)
91 , _prjlProjectId :: !Text
94 , _prjlProjectId :: !Text
@@ -113,6 +116,8 @@ data ProjectsRegionsJobsList = ProjectsRegionsJobsList'
113--
116--
114-- * 'prjlClusterName'
117-- * 'prjlClusterName'
115--
118--
119+-- * 'prjlFilter'
120+--
116-- * 'prjlRegion'
121-- * 'prjlRegion'
117--
122--
118-- * 'prjlPageToken'
123-- * 'prjlPageToken'
@@ -136,6 +141,7 @@ projectsRegionsJobsList pPrjlRegion_ pPrjlProjectId_ =
136 , _prjlUploadType = Nothing
141 , _prjlUploadType = Nothing
137 , _prjlBearerToken = Nothing
142 , _prjlBearerToken = Nothing
138 , _prjlClusterName = Nothing
143 , _prjlClusterName = Nothing
144+ , _prjlFilter = Nothing
139 , _prjlRegion = pPrjlRegion_
145 , _prjlRegion = pPrjlRegion_
140 , _prjlPageToken = Nothing
146 , _prjlPageToken = Nothing
141 , _prjlProjectId = pPrjlProjectId_
147 , _prjlProjectId = pPrjlProjectId_
@@ -143,7 +149,8 @@ projectsRegionsJobsList pPrjlRegion_ pPrjlProjectId_ =
143 , _prjlCallback = Nothing
149 , _prjlCallback = Nothing
144 }
150 }
145
151
146−-- | [Optional] Specifies enumerated categories of jobs to list.
152+-- | [Optional] Specifies enumerated categories of jobs to list (default =
153+-- match ALL jobs).
147prjlJobStateMatcher :: Lens' ProjectsRegionsJobsList (Maybe Text)
154prjlJobStateMatcher :: Lens' ProjectsRegionsJobsList (Maybe Text)
148prjlJobStateMatcher
155prjlJobStateMatcher
149 = lens _prjlJobStateMatcher
156 = lens _prjlJobStateMatcher
@@ -189,6 +196,20 @@ prjlClusterName
189 = lens _prjlClusterName
196 = lens _prjlClusterName
190 (\ s a -> s{_prjlClusterName = a})
197 (\ s a -> s{_prjlClusterName = a})
191
198
199+-- | [Optional] A filter constraining the jobs to list. Filters are
200+-- case-sensitive and have the following syntax: field:value] ... or [field
201+-- = value] AND [field [= value]] ... where **field** is \`status.state\`
202+-- or \`labels.[KEY]\`, and \`[KEY]\` is a label key. **value** can be
203+-- \`*\` to match all values. \`status.state\` can be either \`ACTIVE\` or
204+-- \`INACTIVE\`. Only the logical \`AND\` operator is supported;
205+-- space-separated items are treated as having an implicit \`AND\`
206+-- operator. Example valid filters are: status.state:ACTIVE
207+-- labels.env:staging labels.starred:* and status.state = ACTIVE AND
208+-- labels.env = staging AND labels.starred = *
209+prjlFilter :: Lens' ProjectsRegionsJobsList (Maybe Text)
210+prjlFilter
211+ = lens _prjlFilter (\ s a -> s{_prjlFilter = a})
212+
192-- | [Required] The Cloud Dataproc region in which to handle the request.
213-- | [Required] The Cloud Dataproc region in which to handle the request.
193prjlRegion :: Lens' ProjectsRegionsJobsList Text
214prjlRegion :: Lens' ProjectsRegionsJobsList Text
194prjlRegion
215prjlRegion
@@ -232,6 +253,7 @@ instance GoogleRequest ProjectsRegionsJobsList where
232 _prjlUploadType
253 _prjlUploadType
233 _prjlBearerToken
254 _prjlBearerToken
234 _prjlClusterName
255 _prjlClusterName
256+ _prjlFilter
235 _prjlPageToken
257 _prjlPageToken
236 _prjlPageSize
258 _prjlPageSize
237 _prjlCallback
259 _prjlCallback
gogol-dataproc/gen/Network/Google/Resource/Dataproc/Projects/Regions/Operations/Cancel.hs+6−2
@@ -26,7 +26,9 @@
26-- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use
26-- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use
27-- Operations.GetOperation or other methods to check whether the
27-- Operations.GetOperation or other methods to check whether the
28-- cancellation succeeded or whether the operation completed despite
28-- cancellation succeeded or whether the operation completed despite
29−-- cancellation.
29+-- cancellation. On successful cancellation, the operation is not deleted;
30+-- instead, it becomes an operation with an Operation.error value with a
31+-- google.rpc.Status.code of 1, corresponding to \`Code.CANCELLED\`.
30--
32--
31-- /See:/ <https://cloud.google.com/dataproc/ Google Cloud Dataproc API Reference> for @dataproc.projects.regions.operations.cancel@.
33-- /See:/ <https://cloud.google.com/dataproc/ Google Cloud Dataproc API Reference> for @dataproc.projects.regions.operations.cancel@.
32module Network.Google.Resource.Dataproc.Projects.Regions.Operations.Cancel
34module Network.Google.Resource.Dataproc.Projects.Regions.Operations.Cancel
@@ -72,7 +74,9 @@ type ProjectsRegionsOperationsCancelResource =
72-- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use
74-- \`google.rpc.Code.UNIMPLEMENTED\`. Clients can use
73-- Operations.GetOperation or other methods to check whether the
75-- Operations.GetOperation or other methods to check whether the
74-- cancellation succeeded or whether the operation completed despite
76-- cancellation succeeded or whether the operation completed despite
75−-- cancellation.
77+-- cancellation. On successful cancellation, the operation is not deleted;
78+-- instead, it becomes an operation with an Operation.error value with a
79+-- google.rpc.Status.code of 1, corresponding to \`Code.CANCELLED\`.
76--
80--
77-- /See:/ 'projectsRegionsOperationsCancel' smart constructor.
81-- /See:/ 'projectsRegionsOperationsCancel' smart constructor.
78data ProjectsRegionsOperationsCancel = ProjectsRegionsOperationsCancel'
82data ProjectsRegionsOperationsCancel = ProjectsRegionsOperationsCancel'
gogol-dataproc/gogol-dataproc.cabal+2−1
@@ -14,7 +14,8 @@ cabal-version: >= 1.10
14extra-source-files: README.md src/.gitkeep
14extra-source-files: README.md src/.gitkeep
15
15
16description:
16description:
17− Manages Hadoop-based clusters and jobs on Google Cloud Platform.
17+ An API for managing Hadoop-based clusters and jobs on Google Cloud
18+ Platform.
18 .
19 .
19 /Warning:/ This is an experimental prototype/preview release which is still
20 /Warning:/ This is an experimental prototype/preview release which is still
20 under exploratory development and not intended for public use, caveat emptor!
21 under exploratory development and not intended for public use, caveat emptor!