The @google-cloud/dataproc package has the following named exports:
ClusterControllerClient- Reference to v1.ClusterControllerClientJobControllerClient- Reference to v1.JobControllerClientWorkflowTemplateServiceClient- Reference to v1.WorkflowTemplateServiceClientv1- This is used for selecting or pinning a particular backend service version. It exports:ClusterControllerClient- Reference to v1.ClusterControllerClientJobControllerClient- Reference to v1.JobControllerClientWorkflowTemplateServiceClient- Reference to v1.WorkflowTemplateServiceClient
Examples
Install the client library with npm:
npm install --save @google-cloud/dataproc
Import the client library:
const dataproc = require('@google-cloud/dataproc');
Create a client that uses Application Default Credentials (ADC):
const client = new dataproc.ClusterControllerClient();
Create a client with explicit credentials:
const client = new dataproc.ClusterControllerClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
Members
(static) v1 :object
Properties:
| Name | Type | Description |
|---|---|---|
ClusterControllerClient |
constructor |
Reference to v1.ClusterControllerClient |
JobControllerClient |
constructor |
Reference to v1.JobControllerClient |
WorkflowTemplateServiceClient |
constructor |
Reference to v1.WorkflowTemplateServiceClient |
(static) v1beta2 :object
Properties:
| Name | Type | Description |
|---|---|---|
ClusterControllerClient |
constructor |
Reference to v1beta2.ClusterControllerClient |
JobControllerClient |
constructor |
Reference to v1beta2.JobControllerClient |
WorkflowTemplateServiceClient |
constructor |
Reference to v1beta2.WorkflowTemplateServiceClient |