Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- Service Configuration
- OAuth Scopes
- API Declaration
- Resources
- dataproc.projects.regions.clusters.create
- dataproc.projects.regions.clusters.delete
- dataproc.projects.regions.clusters.diagnose
- dataproc.projects.regions.clusters.get
- dataproc.projects.regions.clusters.list
- dataproc.projects.regions.clusters.patch
- dataproc.projects.regions.jobs.cancel
- dataproc.projects.regions.jobs.delete
- dataproc.projects.regions.jobs.get
- dataproc.projects.regions.jobs.list
- dataproc.projects.regions.jobs.submit
- dataproc.projects.regions.operations.cancel
- dataproc.projects.regions.operations.delete
- dataproc.projects.regions.operations.get
- dataproc.projects.regions.operations.list
- Types
- JobReference
- Status
- OperationSchema
- PySparkJobProperties
- DiagnoseClusterResults
- InstanceGroupConfig
- SparkJob
- SoftwareConfigProperties
- DiskConfig
- ListOperationsResponse
- HiveJobScriptVariables
- Cluster
- SubmitJobRequest
- Operation
- Empty
- HiveJob
- SparkSQLJobScriptVariables
- PigJobProperties
- ClusterConfig
- HadoopJobProperties
- ClusterOperationStatus
- StatusDetailsItem
- SparkSQLJobProperties
- NodeInitializationAction
- JobPlacement
- GceClusterConfig
- OperationStatus
- GceClusterConfigMetadata
- HiveJobProperties
- DiagnoseClusterOutputLocation
- Job
- DiagnoseClusterRequest
- HadoopJob
- ClusterOperationMetadata
- SparkSQLJob
- SoftwareConfig
- ListJobsResponse
- SparkJobProperties
- PySparkJob
- ManagedGroupConfig
- ListClustersResponse
- CancelJobRequest
- QueryList
- OperationMetadata
- JobStatus
- PigJobScriptVariables
- OperationResponse
- LoggingConfigDriverLogLevels
- ClusterStatus
- PigJob
- LoggingConfig
Manages Hadoop-based clusters and jobs on Google Cloud Platform.
- dataprocService :: ServiceConfig
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type DataprocAPI = ProjectsRegionsJobsListResource :<|> (ProjectsRegionsJobsGetResource :<|> (ProjectsRegionsJobsSubmitResource :<|> (ProjectsRegionsJobsCancelResource :<|> (ProjectsRegionsJobsDeleteResource :<|> (ProjectsRegionsOperationsListResource :<|> (ProjectsRegionsOperationsGetResource :<|> (ProjectsRegionsOperationsCancelResource :<|> (ProjectsRegionsOperationsDeleteResource :<|> (ProjectsRegionsClustersDiagnoseResource :<|> (ProjectsRegionsClustersListResource :<|> (ProjectsRegionsClustersPatchResource :<|> (ProjectsRegionsClustersGetResource :<|> (ProjectsRegionsClustersCreateResource :<|> ProjectsRegionsClustersDeleteResource)))))))))))))
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Create
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Delete
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Diagnose
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Get
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.List
- module Network.Google.Resource.Dataproc.Projects.Regions.Clusters.Patch
- module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.Cancel
- module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.Delete
- module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.Get
- module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.List
- module Network.Google.Resource.Dataproc.Projects.Regions.Jobs.Submit
- module Network.Google.Resource.Dataproc.Projects.Regions.Operations.Cancel
- module Network.Google.Resource.Dataproc.Projects.Regions.Operations.Delete
- module Network.Google.Resource.Dataproc.Projects.Regions.Operations.Get
- module Network.Google.Resource.Dataproc.Projects.Regions.Operations.List
- data JobReference
- jobReference :: JobReference
- jrJobId :: Lens' JobReference (Maybe Text)
- jrProjectId :: Lens' JobReference (Maybe Text)
- data Status
- status :: Status
- sDetails :: Lens' Status [StatusDetailsItem]
- sCode :: Lens' Status (Maybe Int32)
- sMessage :: Lens' Status (Maybe Text)
- data OperationSchema
- operationSchema :: HashMap Text JSONValue -> OperationSchema
- osAddtional :: Lens' OperationSchema (HashMap Text JSONValue)
- data PySparkJobProperties
- pySparkJobProperties :: HashMap Text Text -> PySparkJobProperties
- psjpAddtional :: Lens' PySparkJobProperties (HashMap Text Text)
- data DiagnoseClusterResults
- diagnoseClusterResults :: DiagnoseClusterResults
- dcrOutputURI :: Lens' DiagnoseClusterResults (Maybe Text)
- data InstanceGroupConfig
- instanceGroupConfig :: InstanceGroupConfig
- igcNumInstances :: Lens' InstanceGroupConfig (Maybe Int32)
- igcDiskConfig :: Lens' InstanceGroupConfig (Maybe DiskConfig)
- igcIsPreemptible :: Lens' InstanceGroupConfig (Maybe Bool)
- igcImageURI :: Lens' InstanceGroupConfig (Maybe Text)
- igcInstanceNames :: Lens' InstanceGroupConfig [Text]
- igcManagedGroupConfig :: Lens' InstanceGroupConfig (Maybe ManagedGroupConfig)
- igcMachineTypeURI :: Lens' InstanceGroupConfig (Maybe Text)
- data SparkJob
- sparkJob :: SparkJob
- sjArgs :: Lens' SparkJob [Text]
- sjMainJarFileURI :: Lens' SparkJob (Maybe Text)
- sjJarFileURIs :: Lens' SparkJob [Text]
- sjFileURIs :: Lens' SparkJob [Text]
- sjArchiveURIs :: Lens' SparkJob [Text]
- sjMainClass :: Lens' SparkJob (Maybe Text)
- sjLoggingConfig :: Lens' SparkJob (Maybe LoggingConfig)
- sjProperties :: Lens' SparkJob (Maybe SparkJobProperties)
- data SoftwareConfigProperties
- softwareConfigProperties :: HashMap Text Text -> SoftwareConfigProperties
- scpAddtional :: Lens' SoftwareConfigProperties (HashMap Text Text)
- data DiskConfig
- diskConfig :: DiskConfig
- dcNumLocalSsds :: Lens' DiskConfig (Maybe Int32)
- dcBootDiskSizeGb :: Lens' DiskConfig (Maybe Int32)
- data ListOperationsResponse
- listOperationsResponse :: ListOperationsResponse
- lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text)
- lorOperations :: Lens' ListOperationsResponse [Operation]
- data HiveJobScriptVariables
- hiveJobScriptVariables :: HashMap Text Text -> HiveJobScriptVariables
- hjsvAddtional :: Lens' HiveJobScriptVariables (HashMap Text Text)
- data Cluster
- cluster :: Cluster
- cStatus :: Lens' Cluster (Maybe ClusterStatus)
- cClusterUuid :: Lens' Cluster (Maybe Text)
- cConfig :: Lens' Cluster (Maybe ClusterConfig)
- cClusterName :: Lens' Cluster (Maybe Text)
- cProjectId :: Lens' Cluster (Maybe Text)
- cStatusHistory :: Lens' Cluster [ClusterStatus]
- data SubmitJobRequest
- submitJobRequest :: SubmitJobRequest
- sjrJob :: Lens' SubmitJobRequest (Maybe Job)
- data Operation
- operation :: Operation
- oDone :: Lens' Operation (Maybe Bool)
- oError :: Lens' Operation (Maybe Status)
- oResponse :: Lens' Operation (Maybe OperationResponse)
- oName :: Lens' Operation (Maybe Text)
- oMetadata :: Lens' Operation (Maybe OperationSchema)
- data Empty
- empty :: Empty
- data HiveJob
- hiveJob :: HiveJob
- hjQueryFileURI :: Lens' HiveJob (Maybe Text)
- hjJarFileURIs :: Lens' HiveJob [Text]
- hjScriptVariables :: Lens' HiveJob (Maybe HiveJobScriptVariables)
- hjQueryList :: Lens' HiveJob (Maybe QueryList)
- hjContinueOnFailure :: Lens' HiveJob (Maybe Bool)
- hjProperties :: Lens' HiveJob (Maybe HiveJobProperties)
- data SparkSQLJobScriptVariables
- sparkSQLJobScriptVariables :: HashMap Text Text -> SparkSQLJobScriptVariables
- ssqljsvAddtional :: Lens' SparkSQLJobScriptVariables (HashMap Text Text)
- data PigJobProperties
- pigJobProperties :: HashMap Text Text -> PigJobProperties
- pjpAddtional :: Lens' PigJobProperties (HashMap Text Text)
- data ClusterConfig
- clusterConfig :: ClusterConfig
- ccWorkerConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig)
- ccInitializationActions :: Lens' ClusterConfig [NodeInitializationAction]
- ccMasterConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig)
- ccGceClusterConfig :: Lens' ClusterConfig (Maybe GceClusterConfig)
- ccConfigBucket :: Lens' ClusterConfig (Maybe Text)
- ccSoftwareConfig :: Lens' ClusterConfig (Maybe SoftwareConfig)
- ccSecondaryWorkerConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig)
- data HadoopJobProperties
- hadoopJobProperties :: HashMap Text Text -> HadoopJobProperties
- hjpAddtional :: Lens' HadoopJobProperties (HashMap Text Text)
- data ClusterOperationStatus
- clusterOperationStatus :: ClusterOperationStatus
- cosState :: Lens' ClusterOperationStatus (Maybe Text)
- cosInnerState :: Lens' ClusterOperationStatus (Maybe Text)
- cosStateStartTime :: Lens' ClusterOperationStatus (Maybe Text)
- cosDetails :: Lens' ClusterOperationStatus (Maybe Text)
- data StatusDetailsItem
- statusDetailsItem :: HashMap Text JSONValue -> StatusDetailsItem
- sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)
- data SparkSQLJobProperties
- sparkSQLJobProperties :: HashMap Text Text -> SparkSQLJobProperties
- ssqljpAddtional :: Lens' SparkSQLJobProperties (HashMap Text Text)
- data NodeInitializationAction
- nodeInitializationAction :: NodeInitializationAction
- niaExecutionTimeout :: Lens' NodeInitializationAction (Maybe Text)
- niaExecutableFile :: Lens' NodeInitializationAction (Maybe Text)
- data JobPlacement
- jobPlacement :: JobPlacement
- jpClusterUuid :: Lens' JobPlacement (Maybe Text)
- jpClusterName :: Lens' JobPlacement (Maybe Text)
- data GceClusterConfig
- gceClusterConfig :: GceClusterConfig
- gccSubnetworkURI :: Lens' GceClusterConfig (Maybe Text)
- gccNetworkURI :: Lens' GceClusterConfig (Maybe Text)
- gccZoneURI :: Lens' GceClusterConfig (Maybe Text)
- gccMetadata :: Lens' GceClusterConfig (Maybe GceClusterConfigMetadata)
- gccServiceAccountScopes :: Lens' GceClusterConfig [Text]
- gccTags :: Lens' GceClusterConfig [Text]
- data OperationStatus
- operationStatus :: OperationStatus
- osState :: Lens' OperationStatus (Maybe Text)
- osInnerState :: Lens' OperationStatus (Maybe Text)
- osStateStartTime :: Lens' OperationStatus (Maybe Text)
- osDetails :: Lens' OperationStatus (Maybe Text)
- data GceClusterConfigMetadata
- gceClusterConfigMetadata :: HashMap Text Text -> GceClusterConfigMetadata
- gccmAddtional :: Lens' GceClusterConfigMetadata (HashMap Text Text)
- data HiveJobProperties
- hiveJobProperties :: HashMap Text Text -> HiveJobProperties
- hAddtional :: Lens' HiveJobProperties (HashMap Text Text)
- data DiagnoseClusterOutputLocation
- diagnoseClusterOutputLocation :: DiagnoseClusterOutputLocation
- dcolOutputURI :: Lens' DiagnoseClusterOutputLocation (Maybe Text)
- data Job
- job :: Job
- jSparkJob :: Lens' Job (Maybe SparkJob)
- jStatus :: Lens' Job (Maybe JobStatus)
- jDriverControlFilesURI :: Lens' Job (Maybe Text)
- jHiveJob :: Lens' Job (Maybe HiveJob)
- jReference :: Lens' Job (Maybe JobReference)
- jSparkSQLJob :: Lens' Job (Maybe SparkSQLJob)
- jHadoopJob :: Lens' Job (Maybe HadoopJob)
- jPysparkJob :: Lens' Job (Maybe PySparkJob)
- jDriverOutputResourceURI :: Lens' Job (Maybe Text)
- jStatusHistory :: Lens' Job [JobStatus]
- jPlacement :: Lens' Job (Maybe JobPlacement)
- jPigJob :: Lens' Job (Maybe PigJob)
- data DiagnoseClusterRequest
- diagnoseClusterRequest :: DiagnoseClusterRequest
- data HadoopJob
- hadoopJob :: HadoopJob
- hArgs :: Lens' HadoopJob [Text]
- hMainJarFileURI :: Lens' HadoopJob (Maybe Text)
- hJarFileURIs :: Lens' HadoopJob [Text]
- hFileURIs :: Lens' HadoopJob [Text]
- hArchiveURIs :: Lens' HadoopJob [Text]
- hMainClass :: Lens' HadoopJob (Maybe Text)
- hLoggingConfig :: Lens' HadoopJob (Maybe LoggingConfig)
- hProperties :: Lens' HadoopJob (Maybe HadoopJobProperties)
- data ClusterOperationMetadata
- clusterOperationMetadata :: ClusterOperationMetadata
- comStatus :: Lens' ClusterOperationMetadata (Maybe ClusterOperationStatus)
- comClusterUuid :: Lens' ClusterOperationMetadata (Maybe Text)
- comClusterName :: Lens' ClusterOperationMetadata (Maybe Text)
- comOperationType :: Lens' ClusterOperationMetadata (Maybe Text)
- comStatusHistory :: Lens' ClusterOperationMetadata [ClusterOperationStatus]
- comDescription :: Lens' ClusterOperationMetadata (Maybe Text)
- data SparkSQLJob
- sparkSQLJob :: SparkSQLJob
- ssqljQueryFileURI :: Lens' SparkSQLJob (Maybe Text)
- ssqljJarFileURIs :: Lens' SparkSQLJob [Text]
- ssqljScriptVariables :: Lens' SparkSQLJob (Maybe SparkSQLJobScriptVariables)
- ssqljQueryList :: Lens' SparkSQLJob (Maybe QueryList)
- ssqljLoggingConfig :: Lens' SparkSQLJob (Maybe LoggingConfig)
- ssqljProperties :: Lens' SparkSQLJob (Maybe SparkSQLJobProperties)
- data SoftwareConfig
- softwareConfig :: SoftwareConfig
- scImageVersion :: Lens' SoftwareConfig (Maybe Text)
- scProperties :: Lens' SoftwareConfig (Maybe SoftwareConfigProperties)
- data ListJobsResponse
- listJobsResponse :: ListJobsResponse
- ljrNextPageToken :: Lens' ListJobsResponse (Maybe Text)
- ljrJobs :: Lens' ListJobsResponse [Job]
- data SparkJobProperties
- sparkJobProperties :: HashMap Text Text -> SparkJobProperties
- sjpAddtional :: Lens' SparkJobProperties (HashMap Text Text)
- data PySparkJob
- pySparkJob :: PySparkJob
- psjPythonFileURIs :: Lens' PySparkJob [Text]
- psjMainPythonFileURI :: Lens' PySparkJob (Maybe Text)
- psjArgs :: Lens' PySparkJob [Text]
- psjJarFileURIs :: Lens' PySparkJob [Text]
- psjFileURIs :: Lens' PySparkJob [Text]
- psjArchiveURIs :: Lens' PySparkJob [Text]
- psjLoggingConfig :: Lens' PySparkJob (Maybe LoggingConfig)
- psjProperties :: Lens' PySparkJob (Maybe PySparkJobProperties)
- data ManagedGroupConfig
- managedGroupConfig :: ManagedGroupConfig
- mgcInstanceTemplateName :: Lens' ManagedGroupConfig (Maybe Text)
- mgcInstanceGroupManagerName :: Lens' ManagedGroupConfig (Maybe Text)
- data ListClustersResponse
- listClustersResponse :: ListClustersResponse
- lcrNextPageToken :: Lens' ListClustersResponse (Maybe Text)
- lcrClusters :: Lens' ListClustersResponse [Cluster]
- data CancelJobRequest
- cancelJobRequest :: CancelJobRequest
- data QueryList
- queryList :: QueryList
- qlQueries :: Lens' QueryList [Text]
- data OperationMetadata
- operationMetadata :: OperationMetadata
- omStatus :: Lens' OperationMetadata (Maybe OperationStatus)
- omState :: Lens' OperationMetadata (Maybe Text)
- omClusterUuid :: Lens' OperationMetadata (Maybe Text)
- omInsertTime :: Lens' OperationMetadata (Maybe Text)
- omStartTime :: Lens' OperationMetadata (Maybe Text)
- omInnerState :: Lens' OperationMetadata (Maybe Text)
- omEndTime :: Lens' OperationMetadata (Maybe Text)
- omDetails :: Lens' OperationMetadata (Maybe Text)
- omClusterName :: Lens' OperationMetadata (Maybe Text)
- omOperationType :: Lens' OperationMetadata (Maybe Text)
- omStatusHistory :: Lens' OperationMetadata [OperationStatus]
- omDescription :: Lens' OperationMetadata (Maybe Text)
- data JobStatus
- jobStatus :: JobStatus
- jsState :: Lens' JobStatus (Maybe Text)
- jsStateStartTime :: Lens' JobStatus (Maybe Text)
- jsDetails :: Lens' JobStatus (Maybe Text)
- data PigJobScriptVariables
- pigJobScriptVariables :: HashMap Text Text -> PigJobScriptVariables
- pjsvAddtional :: Lens' PigJobScriptVariables (HashMap Text Text)
- data OperationResponse
- operationResponse :: HashMap Text JSONValue -> OperationResponse
- orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)
- data LoggingConfigDriverLogLevels
- loggingConfigDriverLogLevels :: HashMap Text Text -> LoggingConfigDriverLogLevels
- lcdllAddtional :: Lens' LoggingConfigDriverLogLevels (HashMap Text Text)
- data ClusterStatus
- clusterStatus :: ClusterStatus
- csState :: Lens' ClusterStatus (Maybe Text)
- csStateStartTime :: Lens' ClusterStatus (Maybe Text)
- csDetail :: Lens' ClusterStatus (Maybe Text)
- data PigJob
- pigJob :: PigJob
- pjQueryFileURI :: Lens' PigJob (Maybe Text)
- pjJarFileURIs :: Lens' PigJob [Text]
- pjScriptVariables :: Lens' PigJob (Maybe PigJobScriptVariables)
- pjQueryList :: Lens' PigJob (Maybe QueryList)
- pjContinueOnFailure :: Lens' PigJob (Maybe Bool)
- pjLoggingConfig :: Lens' PigJob (Maybe LoggingConfig)
- pjProperties :: Lens' PigJob (Maybe PigJobProperties)
- data LoggingConfig
- loggingConfig :: LoggingConfig
- lcDriverLogLevels :: Lens' LoggingConfig (Maybe LoggingConfigDriverLogLevels)
Service Configuration
dataprocService :: ServiceConfig Source #
Default request referring to version v1
of the Google Cloud Dataproc API. This contains the host and root path used as a starting point for constructing service requests.
OAuth Scopes
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
API Declaration
type DataprocAPI = ProjectsRegionsJobsListResource :<|> (ProjectsRegionsJobsGetResource :<|> (ProjectsRegionsJobsSubmitResource :<|> (ProjectsRegionsJobsCancelResource :<|> (ProjectsRegionsJobsDeleteResource :<|> (ProjectsRegionsOperationsListResource :<|> (ProjectsRegionsOperationsGetResource :<|> (ProjectsRegionsOperationsCancelResource :<|> (ProjectsRegionsOperationsDeleteResource :<|> (ProjectsRegionsClustersDiagnoseResource :<|> (ProjectsRegionsClustersListResource :<|> (ProjectsRegionsClustersPatchResource :<|> (ProjectsRegionsClustersGetResource :<|> (ProjectsRegionsClustersCreateResource :<|> ProjectsRegionsClustersDeleteResource))))))))))))) Source #
Represents the entirety of the methods and resources available for the Google Cloud Dataproc API service.
Resources
dataproc.projects.regions.clusters.create
dataproc.projects.regions.clusters.delete
dataproc.projects.regions.clusters.diagnose
dataproc.projects.regions.clusters.get
dataproc.projects.regions.clusters.list
dataproc.projects.regions.clusters.patch
dataproc.projects.regions.jobs.cancel
dataproc.projects.regions.jobs.delete
dataproc.projects.regions.jobs.get
dataproc.projects.regions.jobs.list
dataproc.projects.regions.jobs.submit
dataproc.projects.regions.operations.cancel
dataproc.projects.regions.operations.delete
dataproc.projects.regions.operations.get
dataproc.projects.regions.operations.list
Types
JobReference
data JobReference Source #
Encapsulates the full scoping used to reference a job.
See: jobReference
smart constructor.
jobReference :: JobReference Source #
Creates a value of JobReference
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
jrJobId :: Lens' JobReference (Maybe Text) Source #
- Required
- The job ID, which must be unique within the project. The job ID is generated by the server upon job submission or provided by the user as a means to perform retries without creating duplicate jobs. The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The maximum length is 512 characters.
jrProjectId :: Lens' JobReference (Maybe Text) Source #
- Required
- The ID of the Google Cloud Platform project that the job belongs to.
Status
The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.
See: status
smart constructor.
sDetails :: Lens' Status [StatusDetailsItem] Source #
A list of messages that carry the error details. There will be a common set of message types for APIs to use.
sCode :: Lens' Status (Maybe Int32) Source #
The status code, which should be an enum value of google.rpc.Code.
sMessage :: Lens' Status (Maybe Text) Source #
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
OperationSchema
data OperationSchema Source #
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
See: operationSchema
smart constructor.
Creates a value of OperationSchema
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
osAddtional :: Lens' OperationSchema (HashMap Text JSONValue) Source #
Properties of the object. Contains field 'ype with type URL.
PySparkJobProperties
data PySparkJobProperties Source #
- Optional
- A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
See: pySparkJobProperties
smart constructor.
Creates a value of PySparkJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
DiagnoseClusterResults
data DiagnoseClusterResults Source #
The location of diagnostic output.
See: diagnoseClusterResults
smart constructor.
diagnoseClusterResults :: DiagnoseClusterResults Source #
Creates a value of DiagnoseClusterResults
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcrOutputURI :: Lens' DiagnoseClusterResults (Maybe Text) Source #
- Output-only
- The Google Cloud Storage URI of the diagnostic output. This is a plain text file with a summary of collected diagnostics.
InstanceGroupConfig
data InstanceGroupConfig Source #
The config settings for Google Compute Engine resources in an instance group, such as a master or worker group.
See: instanceGroupConfig
smart constructor.
instanceGroupConfig :: InstanceGroupConfig Source #
Creates a value of InstanceGroupConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
igcNumInstances :: Lens' InstanceGroupConfig (Maybe Int32) Source #
The number of VM instances in the instance group. For master instance groups, must be set to 1.
igcDiskConfig :: Lens' InstanceGroupConfig (Maybe DiskConfig) Source #
Disk option config settings.
igcIsPreemptible :: Lens' InstanceGroupConfig (Maybe Bool) Source #
Specifies that this instance group contains Preemptible Instances.
igcImageURI :: Lens' InstanceGroupConfig (Maybe Text) Source #
- Output-only
- The Google Compute Engine image resource used for cluster instances. Inferred from `SoftwareConfig.image_version`.
igcInstanceNames :: Lens' InstanceGroupConfig [Text] Source #
The list of instance names. Cloud Dataproc derives the names from `cluster_name`, `num_instances`, and the instance group if not set by user (recommended practice is to let Cloud Dataproc derive the name).
igcManagedGroupConfig :: Lens' InstanceGroupConfig (Maybe ManagedGroupConfig) Source #
- Output-only
- The config for Google Compute Engine Instance Group Manager that manages this group. This is only used for preemptible instance groups.
igcMachineTypeURI :: Lens' InstanceGroupConfig (Maybe Text) Source #
The Google Compute Engine machine type used for cluster instances. Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2`.
SparkJob
A Cloud Dataproc job for running Spark applications on YARN.
See: sparkJob
smart constructor.
Creates a value of SparkJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sjArgs :: Lens' SparkJob [Text] Source #
- Optional
- The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
sjMainJarFileURI :: Lens' SparkJob (Maybe Text) Source #
The HCFS URI of the jar file that contains the main class.
sjJarFileURIs :: Lens' SparkJob [Text] Source #
- Optional
- HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
sjFileURIs :: Lens' SparkJob [Text] Source #
- Optional
- HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
sjArchiveURIs :: Lens' SparkJob [Text] Source #
- Optional
- HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
sjMainClass :: Lens' SparkJob (Maybe Text) Source #
The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in `jar_file_uris`.
sjLoggingConfig :: Lens' SparkJob (Maybe LoggingConfig) Source #
- Optional
- The runtime log config for job execution.
sjProperties :: Lens' SparkJob (Maybe SparkJobProperties) Source #
- Optional
- A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
SoftwareConfigProperties
data SoftwareConfigProperties Source #
- Optional
- The properties to set on daemon config files. Property keys are specified in `prefix:property` format, such as `core:fs.defaultFS`. The following are supported prefixes and their mappings: * core: `core-site.xml` * hdfs: `hdfs-site.xml` * mapred: `mapred-site.xml` * yarn: `yarn-site.xml` * hive: `hive-site.xml` * pig: `pig.properties` * spark: `spark-defaults.conf`
See: softwareConfigProperties
smart constructor.
softwareConfigProperties Source #
Creates a value of SoftwareConfigProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
DiskConfig
data DiskConfig Source #
Specifies the config of disk options for a group of VM instances.
See: diskConfig
smart constructor.
diskConfig :: DiskConfig Source #
Creates a value of DiskConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcNumLocalSsds :: Lens' DiskConfig (Maybe Int32) Source #
- Optional
- Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, the boot disk is used to store runtime logs and HDFS data. If one or more SSDs are attached, this runtime bulk data is spread across them, and the boot disk contains only basic config and installed binaries.
dcBootDiskSizeGb :: Lens' DiskConfig (Maybe Int32) Source #
- Optional
- Size in GB of the boot disk (default is 500GB).
ListOperationsResponse
data ListOperationsResponse Source #
The response message for Operations.ListOperations.
See: listOperationsResponse
smart constructor.
listOperationsResponse :: ListOperationsResponse Source #
Creates a value of ListOperationsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text) Source #
The standard List next-page token.
lorOperations :: Lens' ListOperationsResponse [Operation] Source #
A list of operations that matches the specified filter in the request.
HiveJobScriptVariables
data HiveJobScriptVariables Source #
- Optional
- Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
See: hiveJobScriptVariables
smart constructor.
hiveJobScriptVariables Source #
Creates a value of HiveJobScriptVariables
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Cluster
Describes the identifying information, config, and status of a cluster of Google Compute Engine instances.
See: cluster
smart constructor.
Creates a value of Cluster
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cClusterUuid :: Lens' Cluster (Maybe Text) Source #
- Output-only
- A cluster UUID (Unique Universal Identifier). Cloud Dataproc generates this value when it creates the cluster.
cConfig :: Lens' Cluster (Maybe ClusterConfig) Source #
- Required
- The cluster config. Note that Cloud Dataproc may set default values, and values may change when clusters are updated.
cClusterName :: Lens' Cluster (Maybe Text) Source #
- Required
- The cluster name. Cluster names within a project must be unique. Names of deleted clusters can be reused.
cProjectId :: Lens' Cluster (Maybe Text) Source #
- Required
- The Google Cloud Platform project ID that the cluster belongs to.
cStatusHistory :: Lens' Cluster [ClusterStatus] Source #
- Output-only
- The previous cluster status.
SubmitJobRequest
data SubmitJobRequest Source #
A request to submit a job.
See: submitJobRequest
smart constructor.
submitJobRequest :: SubmitJobRequest Source #
Creates a value of SubmitJobRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Operation
This resource represents a long-running operation that is the result of a network API call.
See: operation
smart constructor.
oDone :: Lens' Operation (Maybe Bool) Source #
If the value is `false`, it means the operation is still in progress. If true, the operation is completed, and either `error` or `response` is available.
oError :: Lens' Operation (Maybe Status) Source #
The error result of the operation in case of failure.
oResponse :: Lens' Operation (Maybe OperationResponse) Source #
The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
oName :: Lens' Operation (Maybe Text) Source #
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should have the format of `operations/some/unique/name`.
oMetadata :: Lens' Operation (Maybe OperationSchema) Source #
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
Empty
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
See: empty
smart constructor.
HiveJob
A Cloud Dataproc job for running Hive queries on YARN.
See: hiveJob
smart constructor.
Creates a value of HiveJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
hjQueryFileURI :: Lens' HiveJob (Maybe Text) Source #
The HCFS URI of the script that contains Hive queries.
hjJarFileURIs :: Lens' HiveJob [Text] Source #
- Optional
- HCFS URIs of jar files to add to the CLASSPATH of the Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
hjScriptVariables :: Lens' HiveJob (Maybe HiveJobScriptVariables) Source #
- Optional
- Mapping of query variable names to values (equivalent to the Hive command: `SET name="value";`).
hjContinueOnFailure :: Lens' HiveJob (Maybe Bool) Source #
- Optional
- Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
hjProperties :: Lens' HiveJob (Maybe HiveJobProperties) Source #
- Optional
- A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
SparkSQLJobScriptVariables
data SparkSQLJobScriptVariables Source #
- Optional
- Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
See: sparkSQLJobScriptVariables
smart constructor.
sparkSQLJobScriptVariables Source #
Creates a value of SparkSQLJobScriptVariables
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
PigJobProperties
data PigJobProperties Source #
- Optional
- A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
See: pigJobProperties
smart constructor.
Creates a value of PigJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ClusterConfig
data ClusterConfig Source #
The cluster config.
See: clusterConfig
smart constructor.
clusterConfig :: ClusterConfig Source #
Creates a value of ClusterConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ccWorkerConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig) Source #
- Optional
- The Google Compute Engine config settings for worker instances in a cluster.
ccInitializationActions :: Lens' ClusterConfig [NodeInitializationAction] Source #
- Optional
- Commands to execute on each node after config is completed. By default, executables are run on master and all worker nodes. You can test a node's role metadata to run an executable on a master or worker node, as shown below: ROLE=$(/usr/share/google/get_metadata_value attributes/role) if [[ "${ROLE}" == 'Master' ]]; then ... master specific actions ... else ... worker specific actions ... fi
ccMasterConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig) Source #
- Optional
- The Google Compute Engine config settings for the master instance in a cluster.
ccGceClusterConfig :: Lens' ClusterConfig (Maybe GceClusterConfig) Source #
- Required
- The shared Google Compute Engine config settings for all instances in a cluster.
ccConfigBucket :: Lens' ClusterConfig (Maybe Text) Source #
- Optional
- A Google Cloud Storage staging bucket used for sharing generated SSH keys and config. If you do not specify a staging bucket, Cloud Dataproc will determine an appropriate Cloud Storage location (US, ASIA, or EU) for your cluster's staging bucket according to the Google Compute Engine zone where your cluster is deployed, and then it will create and manage this project-level, per-location bucket for you.
ccSoftwareConfig :: Lens' ClusterConfig (Maybe SoftwareConfig) Source #
- Optional
- The config settings for software inside the cluster.
ccSecondaryWorkerConfig :: Lens' ClusterConfig (Maybe InstanceGroupConfig) Source #
- Optional
- The Google Compute Engine config settings for additional worker instances in a cluster.
HadoopJobProperties
data HadoopJobProperties Source #
- Optional
- A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
See: hadoopJobProperties
smart constructor.
Creates a value of HadoopJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ClusterOperationStatus
data ClusterOperationStatus Source #
The status of the operation.
See: clusterOperationStatus
smart constructor.
clusterOperationStatus :: ClusterOperationStatus Source #
Creates a value of ClusterOperationStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cosState :: Lens' ClusterOperationStatus (Maybe Text) Source #
A message containing the operation state.
cosInnerState :: Lens' ClusterOperationStatus (Maybe Text) Source #
A message containing the detailed operation state.
cosStateStartTime :: Lens' ClusterOperationStatus (Maybe Text) Source #
The time this state was entered.
cosDetails :: Lens' ClusterOperationStatus (Maybe Text) Source #
A message containing any operation metadata details.
StatusDetailsItem
data StatusDetailsItem Source #
Creates a value of StatusDetailsItem
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue) Source #
Properties of the object. Contains field 'ype with type URL.
SparkSQLJobProperties
data SparkSQLJobProperties Source #
- Optional
- A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten.
See: sparkSQLJobProperties
smart constructor.
sparkSQLJobProperties Source #
Creates a value of SparkSQLJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
NodeInitializationAction
data NodeInitializationAction Source #
Specifies an executable to run on a fully configured node and a timeout period for executable completion.
See: nodeInitializationAction
smart constructor.
nodeInitializationAction :: NodeInitializationAction Source #
Creates a value of NodeInitializationAction
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
niaExecutionTimeout :: Lens' NodeInitializationAction (Maybe Text) Source #
- Optional
- Amount of time executable has to complete. Default is 10 minutes. Cluster creation fails with an explanatory error message (the name of the executable that caused the error and the exceeded timeout period) if the executable is not completed at end of the timeout period.
niaExecutableFile :: Lens' NodeInitializationAction (Maybe Text) Source #
- Required
- Google Cloud Storage URI of executable file.
JobPlacement
data JobPlacement Source #
Cloud Dataproc job config.
See: jobPlacement
smart constructor.
jobPlacement :: JobPlacement Source #
Creates a value of JobPlacement
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
jpClusterUuid :: Lens' JobPlacement (Maybe Text) Source #
- Output-only
- A cluster UUID generated by the Cloud Dataproc service when the job is submitted.
jpClusterName :: Lens' JobPlacement (Maybe Text) Source #
- Required
- The name of the cluster where the job will be submitted.
GceClusterConfig
data GceClusterConfig Source #
Common config settings for resources of Google Compute Engine cluster instances, applicable to all instances in the cluster.
See: gceClusterConfig
smart constructor.
gceClusterConfig :: GceClusterConfig Source #
Creates a value of GceClusterConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gccSubnetworkURI :: Lens' GceClusterConfig (Maybe Text) Source #
The Google Compute Engine subnetwork to be used for machine communications. Cannot be specified with network_uri. Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0`.
gccNetworkURI :: Lens' GceClusterConfig (Maybe Text) Source #
The Google Compute Engine network to be used for machine communications. Cannot be specified with subnetwork_uri. If neither network_uri nor subnetwork_uri is specified, the "default" network of the project is used, if it exists. Cannot be a "Custom Subnet Network" (see https://cloud.google.com/compute/docs/subnetworks for more information). Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default`.
gccZoneURI :: Lens' GceClusterConfig (Maybe Text) Source #
- Required
- The zone where the Google Compute Engine cluster will be located. Example: `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`.
gccMetadata :: Lens' GceClusterConfig (Maybe GceClusterConfigMetadata) Source #
The Google Compute Engine metadata entries to add to all instances.
gccServiceAccountScopes :: Lens' GceClusterConfig [Text] Source #
The URIs of service account scopes to be included in Google Compute Engine instances. The following base set of scopes is always included: * https://www.googleapis.com/auth/cloud.useraccounts.readonly * https://www.googleapis.com/auth/devstorage.read_write * https://www.googleapis.com/auth/logging.write If no scopes are specfied, the following defaults are also provided: * https://www.googleapis.com/auth/bigquery * https://www.googleapis.com/auth/bigtable.admin.table * https://www.googleapis.com/auth/bigtable.data * https://www.googleapis.com/auth/devstorage.full_control
gccTags :: Lens' GceClusterConfig [Text] Source #
The Google Compute Engine tags to add to all instances.
OperationStatus
data OperationStatus Source #
The status of the operation.
See: operationStatus
smart constructor.
operationStatus :: OperationStatus Source #
Creates a value of OperationStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
osInnerState :: Lens' OperationStatus (Maybe Text) Source #
A message containing the detailed operation state.
osStateStartTime :: Lens' OperationStatus (Maybe Text) Source #
The time this state was entered.
osDetails :: Lens' OperationStatus (Maybe Text) Source #
A message containing any operation metadata details.
GceClusterConfigMetadata
data GceClusterConfigMetadata Source #
The Google Compute Engine metadata entries to add to all instances.
See: gceClusterConfigMetadata
smart constructor.
gceClusterConfigMetadata Source #
Creates a value of GceClusterConfigMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
HiveJobProperties
data HiveJobProperties Source #
- Optional
- A mapping of property names and values, used to configure Hive. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/hive/conf/hive-site.xml, and classes in user code.
See: hiveJobProperties
smart constructor.
Creates a value of HiveJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
DiagnoseClusterOutputLocation
data DiagnoseClusterOutputLocation Source #
The location where output from diagnostic command can be found.
See: diagnoseClusterOutputLocation
smart constructor.
diagnoseClusterOutputLocation :: DiagnoseClusterOutputLocation Source #
Creates a value of DiagnoseClusterOutputLocation
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
dcolOutputURI :: Lens' DiagnoseClusterOutputLocation (Maybe Text) Source #
- Output-only
- The Google Cloud Storage URI of the diagnostic output. This will be a plain text file with summary of collected diagnostics.
Job
A Cloud Dataproc job resource.
See: job
smart constructor.
Creates a value of Job
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
jStatus :: Lens' Job (Maybe JobStatus) Source #
- Output-only
- The job status. Additional application-specific status information may be contained in the type_job and yarn_applications fields.
jDriverControlFilesURI :: Lens' Job (Maybe Text) Source #
- Output-only
- If present, the location of miscellaneous control files which may be used as part of job setup and handling. If not present, control files may be placed in the same location as `driver_output_uri`.
jReference :: Lens' Job (Maybe JobReference) Source #
- Optional
- The fully qualified reference to the job, which can be used to obtain the equivalent REST path of the job resource. If this property is not specified when a job is created, the server generates a job_id.
jSparkSQLJob :: Lens' Job (Maybe SparkSQLJob) Source #
Job is a SparkSql job.
jPysparkJob :: Lens' Job (Maybe PySparkJob) Source #
Job is a Pyspark job.
jDriverOutputResourceURI :: Lens' Job (Maybe Text) Source #
- Output-only
- A URI pointing to the location of the stdout of the job's driver program.
jPlacement :: Lens' Job (Maybe JobPlacement) Source #
- Required
- Job information, including how, when, and where to run the job.
DiagnoseClusterRequest
data DiagnoseClusterRequest Source #
A request to collect cluster diagnostic information.
See: diagnoseClusterRequest
smart constructor.
diagnoseClusterRequest :: DiagnoseClusterRequest Source #
Creates a value of DiagnoseClusterRequest
with the minimum fields required to make a request.
HadoopJob
A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN.
See: hadoopJob
smart constructor.
hadoopJob :: HadoopJob Source #
Creates a value of HadoopJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
hArgs :: Lens' HadoopJob [Text] Source #
- Optional
- The arguments to pass to the driver. Do not include arguments, such as `-libjars` or `-Dfoo=bar`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
hMainJarFileURI :: Lens' HadoopJob (Maybe Text) Source #
The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-mapreduce-examples.jar'
hJarFileURIs :: Lens' HadoopJob [Text] Source #
- Optional
- Jar file URIs to add to the CLASSPATHs of the Hadoop driver and tasks.
hFileURIs :: Lens' HadoopJob [Text] Source #
- Optional
- HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to the working directory of Hadoop drivers and distributed tasks. Useful for naively parallel tasks.
hArchiveURIs :: Lens' HadoopJob [Text] Source #
- Optional
- HCFS URIs of archives to be extracted in the working directory of Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .zip.
hMainClass :: Lens' HadoopJob (Maybe Text) Source #
The name of the driver's main class. The jar file containing the class must be in the default CLASSPATH or specified in `jar_file_uris`.
hLoggingConfig :: Lens' HadoopJob (Maybe LoggingConfig) Source #
- Optional
- The runtime log config for job execution.
hProperties :: Lens' HadoopJob (Maybe HadoopJobProperties) Source #
- Optional
- A mapping of property names to values, used to configure Hadoop. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes in user code.
ClusterOperationMetadata
data ClusterOperationMetadata Source #
Metadata describing the operation.
See: clusterOperationMetadata
smart constructor.
clusterOperationMetadata :: ClusterOperationMetadata Source #
Creates a value of ClusterOperationMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
comStatus :: Lens' ClusterOperationMetadata (Maybe ClusterOperationStatus) Source #
- Output-only
- Current operation status.
comClusterUuid :: Lens' ClusterOperationMetadata (Maybe Text) Source #
Cluster UUId for the operation.
comClusterName :: Lens' ClusterOperationMetadata (Maybe Text) Source #
Name of the cluster for the operation.
comOperationType :: Lens' ClusterOperationMetadata (Maybe Text) Source #
- Output-only
- The operation type.
comStatusHistory :: Lens' ClusterOperationMetadata [ClusterOperationStatus] Source #
- Output-only
- The previous operation status.
comDescription :: Lens' ClusterOperationMetadata (Maybe Text) Source #
- Output-only
- Short description of operation.
SparkSQLJob
data SparkSQLJob Source #
A Cloud Dataproc job for running Spark SQL queries.
See: sparkSQLJob
smart constructor.
sparkSQLJob :: SparkSQLJob Source #
Creates a value of SparkSQLJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ssqljQueryFileURI :: Lens' SparkSQLJob (Maybe Text) Source #
The HCFS URI of the script that contains SQL queries.
ssqljJarFileURIs :: Lens' SparkSQLJob [Text] Source #
- Optional
- HCFS URIs of jar files to be added to the Spark CLASSPATH.
ssqljScriptVariables :: Lens' SparkSQLJob (Maybe SparkSQLJobScriptVariables) Source #
- Optional
- Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
ssqljQueryList :: Lens' SparkSQLJob (Maybe QueryList) Source #
A list of queries.
ssqljLoggingConfig :: Lens' SparkSQLJob (Maybe LoggingConfig) Source #
- Optional
- The runtime log config for job execution.
ssqljProperties :: Lens' SparkSQLJob (Maybe SparkSQLJobProperties) Source #
- Optional
- A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Cloud Dataproc API may be overwritten.
SoftwareConfig
data SoftwareConfig Source #
Specifies the selection and config of software inside the cluster.
See: softwareConfig
smart constructor.
softwareConfig :: SoftwareConfig Source #
Creates a value of SoftwareConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
scImageVersion :: Lens' SoftwareConfig (Maybe Text) Source #
- Optional
- The version of software inside the cluster. It must match the regular expression `[0-9]+\.[0-9]+`. If unspecified, it defaults to the latest version (see Cloud Dataproc Versioning).
scProperties :: Lens' SoftwareConfig (Maybe SoftwareConfigProperties) Source #
- Optional
- The properties to set on daemon config files. Property keys are specified in `prefix:property` format, such as `core:fs.defaultFS`. The following are supported prefixes and their mappings: * core: `core-site.xml` * hdfs: `hdfs-site.xml` * mapred: `mapred-site.xml` * yarn: `yarn-site.xml` * hive: `hive-site.xml` * pig: `pig.properties` * spark: `spark-defaults.conf`
ListJobsResponse
data ListJobsResponse Source #
A list of jobs in a project.
See: listJobsResponse
smart constructor.
listJobsResponse :: ListJobsResponse Source #
Creates a value of ListJobsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ljrNextPageToken :: Lens' ListJobsResponse (Maybe Text) Source #
- Optional
- This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the `page_token` in a subsequent ListJobsRequest.
SparkJobProperties
data SparkJobProperties Source #
- Optional
- A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
See: sparkJobProperties
smart constructor.
Creates a value of SparkJobProperties
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
PySparkJob
data PySparkJob Source #
A Cloud Dataproc job for running PySpark applications on YARN.
See: pySparkJob
smart constructor.
pySparkJob :: PySparkJob Source #
Creates a value of PySparkJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
psjPythonFileURIs :: Lens' PySparkJob [Text] Source #
- Optional
- HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: .py, .egg, and .zip.
psjMainPythonFileURI :: Lens' PySparkJob (Maybe Text) Source #
- Required
- The HCFS URI of the main Python file to use as the driver. Must be a .py file.
psjArgs :: Lens' PySparkJob [Text] Source #
- Optional
- The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
psjJarFileURIs :: Lens' PySparkJob [Text] Source #
- Optional
- HCFS URIs of jar files to add to the CLASSPATHs of the Python driver and tasks.
psjFileURIs :: Lens' PySparkJob [Text] Source #
- Optional
- HCFS URIs of files to be copied to the working directory of Python drivers and distributed tasks. Useful for naively parallel tasks.
psjArchiveURIs :: Lens' PySparkJob [Text] Source #
- Optional
- HCFS URIs of archives to be extracted in the working directory of .jar, .tar, .tar.gz, .tgz, and .zip.
psjLoggingConfig :: Lens' PySparkJob (Maybe LoggingConfig) Source #
- Optional
- The runtime log config for job execution.
psjProperties :: Lens' PySparkJob (Maybe PySparkJobProperties) Source #
- Optional
- A mapping of property names to values, used to configure PySpark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
ManagedGroupConfig
data ManagedGroupConfig Source #
Specifies the resources used to actively manage an instance group.
See: managedGroupConfig
smart constructor.
managedGroupConfig :: ManagedGroupConfig Source #
Creates a value of ManagedGroupConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mgcInstanceTemplateName :: Lens' ManagedGroupConfig (Maybe Text) Source #
- Output-only
- The name of the Instance Template used for the Managed Instance Group.
mgcInstanceGroupManagerName :: Lens' ManagedGroupConfig (Maybe Text) Source #
- Output-only
- The name of the Instance Group Manager for this group.
ListClustersResponse
data ListClustersResponse Source #
The list of all clusters in a project.
See: listClustersResponse
smart constructor.
listClustersResponse :: ListClustersResponse Source #
Creates a value of ListClustersResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcrNextPageToken :: Lens' ListClustersResponse (Maybe Text) Source #
- Optional
- This token is included in the response if there are more results to fetch. To fetch additional results, provide this value as the `page_token` in a subsequent ListClustersRequest.
lcrClusters :: Lens' ListClustersResponse [Cluster] Source #
- Output-only
- The clusters in the project.
CancelJobRequest
data CancelJobRequest Source #
A request to cancel a job.
See: cancelJobRequest
smart constructor.
cancelJobRequest :: CancelJobRequest Source #
Creates a value of CancelJobRequest
with the minimum fields required to make a request.
QueryList
A list of queries to run on a cluster.
See: queryList
smart constructor.
qlQueries :: Lens' QueryList [Text] Source #
- Required
- The queries to execute. You do not need to terminate a query with a semicolon. Multiple queries can be specified in one string by separating each with a semicolon. Here is an example of an Cloud Dataproc API snippet that uses a QueryList to specify a HiveJob: "hiveJob": { "queryList": { "queries": [ "query1", "query2", "query3;query4", ] } }
OperationMetadata
data OperationMetadata Source #
Metadata describing the operation.
See: operationMetadata
smart constructor.
operationMetadata :: OperationMetadata Source #
Creates a value of OperationMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
omStatus :: Lens' OperationMetadata (Maybe OperationStatus) Source #
- Output-only
- Current operation status.
omClusterUuid :: Lens' OperationMetadata (Maybe Text) Source #
Cluster UUId for the operation.
omInsertTime :: Lens' OperationMetadata (Maybe Text) Source #
The time that the operation was requested.
omStartTime :: Lens' OperationMetadata (Maybe Text) Source #
The time that the operation was started by the server.
omInnerState :: Lens' OperationMetadata (Maybe Text) Source #
A message containing the detailed operation state.
omDetails :: Lens' OperationMetadata (Maybe Text) Source #
A message containing any operation metadata details.
omClusterName :: Lens' OperationMetadata (Maybe Text) Source #
Name of the cluster for the operation.
omOperationType :: Lens' OperationMetadata (Maybe Text) Source #
- Output-only
- The operation type.
omStatusHistory :: Lens' OperationMetadata [OperationStatus] Source #
- Output-only
- Previous operation status.
omDescription :: Lens' OperationMetadata (Maybe Text) Source #
- Output-only
- Short description of operation.
JobStatus
Cloud Dataproc job status.
See: jobStatus
smart constructor.
jobStatus :: JobStatus Source #
Creates a value of JobStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
jsState :: Lens' JobStatus (Maybe Text) Source #
- Required
- A state message specifying the overall job state.
jsStateStartTime :: Lens' JobStatus (Maybe Text) Source #
- Output-only
- The time when this state was entered.
jsDetails :: Lens' JobStatus (Maybe Text) Source #
- Optional
- Job state details, such as an error description if the state is ERROR.
PigJobScriptVariables
data PigJobScriptVariables Source #
- Optional
- Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
See: pigJobScriptVariables
smart constructor.
pigJobScriptVariables Source #
Creates a value of PigJobScriptVariables
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
OperationResponse
data OperationResponse Source #
The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
See: operationResponse
smart constructor.
Creates a value of OperationResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
orAddtional :: Lens' OperationResponse (HashMap Text JSONValue) Source #
Properties of the object. Contains field 'ype with type URL.
LoggingConfigDriverLogLevels
data LoggingConfigDriverLogLevels Source #
The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'
See: loggingConfigDriverLogLevels
smart constructor.
loggingConfigDriverLogLevels Source #
Creates a value of LoggingConfigDriverLogLevels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ClusterStatus
data ClusterStatus Source #
The status of a cluster and its instances.
See: clusterStatus
smart constructor.
clusterStatus :: ClusterStatus Source #
Creates a value of ClusterStatus
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
csStateStartTime :: Lens' ClusterStatus (Maybe Text) Source #
Time when this state was entered.
PigJob
A Cloud Dataproc job for running Pig queries on YARN.
See: pigJob
smart constructor.
Creates a value of PigJob
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
pjQueryFileURI :: Lens' PigJob (Maybe Text) Source #
The HCFS URI of the script that contains the Pig queries.
pjJarFileURIs :: Lens' PigJob [Text] Source #
- Optional
- HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
pjScriptVariables :: Lens' PigJob (Maybe PigJobScriptVariables) Source #
- Optional
- Mapping of query variable names to values (equivalent to the Pig command: `name=[value]`).
pjContinueOnFailure :: Lens' PigJob (Maybe Bool) Source #
- Optional
- Whether to continue executing queries if a query fails. The default value is `false`. Setting to `true` can be useful when executing independent parallel queries.
pjLoggingConfig :: Lens' PigJob (Maybe LoggingConfig) Source #
- Optional
- The runtime log config for job execution.
pjProperties :: Lens' PigJob (Maybe PigJobProperties) Source #
- Optional
- A mapping of property names to values, used to configure Pig. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/pig/conf/pig.properties, and classes in user code.
LoggingConfig
data LoggingConfig Source #
The runtime logging config of the job.
See: loggingConfig
smart constructor.
loggingConfig :: LoggingConfig Source #
Creates a value of LoggingConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lcDriverLogLevels :: Lens' LoggingConfig (Maybe LoggingConfigDriverLogLevels) Source #
The per-package log levels for the driver. This may include "root" package name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', 'org.apache = DEBUG'