Class v1beta2.JobControllerClient

The JobController provides methods to manage jobs. v1beta2

Package

@google-cloud/dataproc!

Constructors

(constructor)(opts)

  constructor 
 ( 
 opts 
 ?: 
  
 ClientOptions 
 ); 
 

Construct an instance of JobControllerClient.

Parameter
Type Name Description
ClientOptions
opts

Properties

apiEndpoint

  static 
  
 get 
  
 apiEndpoint 
 () 
 : 
  
 string 
 ; 
 

The DNS address for this API service - same as servicePath(), exists for compatibility reasons.

Property Value
Type Description
string

auth

  auth 
 : 
  
 gax 
 . 
 GoogleAuth 
 ; 
 
Property Value
Type Description
gax. GoogleAuth

descriptors

  descriptors 
 : 
  
 Descriptors 
 ; 
 
Property Value
Type Description
Descriptors

innerApiCalls

  innerApiCalls 
 : 
  
 { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }; 
 
Property Value
Type Description
{ [name: string]: Function ; }

jobControllerStub

  jobControllerStub 
 ?: 
  
 Promise 
< { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }>; 
 
Property Value
Type Description
Promise <{ [name: string]: Function ; }>

operationsClient

  operationsClient 
 : 
  
 gax 
 . 
 OperationsClient 
 ; 
 
Property Value
Type Description
gax. OperationsClient

pathTemplates

  pathTemplates 
 : 
  
 { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 gax 
 . 
 PathTemplate 
 ; 
  
 }; 
 
Property Value
Type Description
{ [name: string]: gax. PathTemplate ; }

port

  static 
  
 get 
  
 port 
 () 
 : 
  
 number 
 ; 
 

The port for this API service.

Property Value
Type Description
number

scopes

  static 
  
 get 
  
 scopes 
 () 
 : 
  
 string 
 []; 
 

The scopes needed to make gRPC calls for every method defined in this service.

Property Value
Type Description
string[]

servicePath

  static 
  
 get 
  
 servicePath 
 () 
 : 
  
 string 
 ; 
 

The DNS address for this API service.

Property Value
Type Description
string

warn

  warn 
 : 
  
 ( 
 code 
 : 
  
 string 
 , 
  
 message 
 : 
  
 string 
 , 
  
 warnType 
 ?: 
  
 string 
 ) 
  
 = 
>  
 void 
 ; 
 
Property Value
Type Description
(code: string, message: string, warnType?: string) => void

Methods

cancelJob(request, options)

  cancelJob 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ICancelJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ICancelJobRequest | undefined, {} | undefined]>

cancelJob(request, options, callback)

  cancelJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ICancelJobRequest
request
CallOptions
options
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ICancelJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

cancelJob(request, callback)

  cancelJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ICancelJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ICancelJobRequest
request
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ICancelJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

checkSubmitJobAsOperationProgress(name)

  checkSubmitJobAsOperationProgress 
 ( 
 name 
 : 
  
 string 
 ) 
 : 
  
 Promise<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 Job 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 JobMetadata 
>> ; 
 

Check the status of the long running operation returned by submitJobAsOperation() .

Parameter
Type Name Description
string
name

The operation name that will be passed.

Returns
Type Description
Promise < LROperation <protos. google.cloud.dataproc.v1beta2.Job , protos. google.cloud.dataproc.v1beta2.JobMetadata >>

{Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) for more details and examples.

close()

  close 
 () 
 : 
  
 Promise<void> 
 ; 
 

Terminate the gRPC channel and close the client.

The client will no longer be usable and all future behavior is undefined.

Returns
Type Description
Promise <void>

{Promise} A promise that resolves when the client is closed.

deleteJob(request, options)

  deleteJob 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.protobuf.IEmpty , protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest | undefined, {} | undefined]>

deleteJob(request, options, callback)

  deleteJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest
request
CallOptions
options
Callback <protos. google.protobuf.IEmpty , protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

deleteJob(request, callback)

  deleteJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 protobuf 
 . 
 IEmpty 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IDeleteJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest
request
Callback <protos. google.protobuf.IEmpty , protos. google.cloud.dataproc.v1beta2.IDeleteJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

getJob(request, options)

  getJob 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IGetJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IGetJobRequest | undefined, {} | undefined]>

getJob(request, options, callback)

  getJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IGetJobRequest
request
CallOptions
options
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IGetJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

getJob(request, callback)

  getJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IGetJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IGetJobRequest
request
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IGetJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

getProjectId()

  getProjectId 
 () 
 : 
  
 Promise<string> 
 ; 
 
Returns
Type Description
Promise <string>

getProjectId(callback)

  getProjectId 
 ( 
 callback 
 : 
  
 Callback<string 
 , 
  
 undefined 
 , 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameter
Type Name Description
Callback <string, undefined, undefined>
callback
Returns
Type Description
void

initialize()

  initialize 
 () 
 : 
  
 Promise 
< { 
  
 [ 
 name 
 : 
  
 string 
 ] 
 : 
  
 Function 
 ; 
  
 }>; 
 

Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.

You can await on this method if you want to make sure the client is initialized.

Returns
Type Description
Promise <{ [name: string]: Function ; }>

{Promise} A promise that resolves to an authenticated service stub.

listJobs(request, options)

  listJobs 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 [], 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
  
 | 
  
 null 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsResponse 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IListJobsRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.cloud.dataproc.v1beta2.IJob [], protos. google.cloud.dataproc.v1beta2.IListJobsRequest | null, protos. google.cloud.dataproc.v1beta2.IListJobsResponse ]>

listJobs(request, options, callback)

  listJobs 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 PaginationCallback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsResponse 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IListJobsRequest
request
CallOptions
options
PaginationCallback <protos. google.cloud.dataproc.v1beta2.IListJobsRequest , protos. google.cloud.dataproc.v1beta2.IListJobsResponse | null | undefined, protos. google.cloud.dataproc.v1beta2.IJob >
callback
Returns
Type Description
void

listJobs(request, callback)

  listJobs 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 callback 
 : 
  
 PaginationCallback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsResponse 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IListJobsRequest
request
PaginationCallback <protos. google.cloud.dataproc.v1beta2.IListJobsRequest , protos. google.cloud.dataproc.v1beta2.IListJobsResponse | null | undefined, protos. google.cloud.dataproc.v1beta2.IJob >
callback
Returns
Type Description
void

listJobsAsync(request, options)

  listJobsAsync 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 AsyncIterable<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
> ; 
 

Equivalent to listJobs , but returns an iterable object.

for - await - of syntax is used with the iterable to get response elements on-demand.

Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IListJobsRequest
request

The request object that will be sent.

CallOptions
options

Call options. See CallOptions for more details.

Returns
Type Description
AsyncIterable <protos. google.cloud.dataproc.v1beta2.IJob >

{Object} An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). When you iterate the returned iterable, each element will be an object representing [Job]. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

listJobsStream(request, options)

  listJobsStream 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IListJobsRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Transform 
 ; 
 

Equivalent to method.name.toCamelCase() , but returns a NodeJS Stream object.

Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IListJobsRequest
request

The request object that will be sent.

CallOptions
options

Call options. See CallOptions for more details.

Returns
Type Description
Transform

{Stream} An object stream which emits an object representing [Job] on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using listJobsAsync() method described below for async iteration which you can stop as needed. Please see the [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) for more details and examples.

matchAutoscalingPolicyFromProjectLocationAutoscalingPolicyName(projectLocationAutoscalingPolicyName)

  matchAutoscalingPolicyFromProjectLocationAutoscalingPolicyName 
 ( 
 projectLocationAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the autoscaling_policy from ProjectLocationAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectLocationAutoscalingPolicyName

A fully-qualified path representing project_location_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the autoscaling_policy.

matchAutoscalingPolicyFromProjectRegionAutoscalingPolicyName(projectRegionAutoscalingPolicyName)

  matchAutoscalingPolicyFromProjectRegionAutoscalingPolicyName 
 ( 
 projectRegionAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the autoscaling_policy from ProjectRegionAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectRegionAutoscalingPolicyName

A fully-qualified path representing project_region_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the autoscaling_policy.

matchLocationFromProjectLocationAutoscalingPolicyName(projectLocationAutoscalingPolicyName)

  matchLocationFromProjectLocationAutoscalingPolicyName 
 ( 
 projectLocationAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectLocationAutoscalingPolicyName

A fully-qualified path representing project_location_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchLocationFromProjectLocationWorkflowTemplateName(projectLocationWorkflowTemplateName)

  matchLocationFromProjectLocationWorkflowTemplateName 
 ( 
 projectLocationWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the location from ProjectLocationWorkflowTemplate resource.

Parameter
Type Name Description
string
projectLocationWorkflowTemplateName

A fully-qualified path representing project_location_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the location.

matchProjectFromProjectLocationAutoscalingPolicyName(projectLocationAutoscalingPolicyName)

  matchProjectFromProjectLocationAutoscalingPolicyName 
 ( 
 projectLocationAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectLocationAutoscalingPolicyName

A fully-qualified path representing project_location_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectLocationWorkflowTemplateName(projectLocationWorkflowTemplateName)

  matchProjectFromProjectLocationWorkflowTemplateName 
 ( 
 projectLocationWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectLocationWorkflowTemplate resource.

Parameter
Type Name Description
string
projectLocationWorkflowTemplateName

A fully-qualified path representing project_location_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectRegionAutoscalingPolicyName(projectRegionAutoscalingPolicyName)

  matchProjectFromProjectRegionAutoscalingPolicyName 
 ( 
 projectRegionAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectRegionAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectRegionAutoscalingPolicyName

A fully-qualified path representing project_region_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchProjectFromProjectRegionWorkflowTemplateName(projectRegionWorkflowTemplateName)

  matchProjectFromProjectRegionWorkflowTemplateName 
 ( 
 projectRegionWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the project from ProjectRegionWorkflowTemplate resource.

Parameter
Type Name Description
string
projectRegionWorkflowTemplateName

A fully-qualified path representing project_region_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the project.

matchRegionFromProjectRegionAutoscalingPolicyName(projectRegionAutoscalingPolicyName)

  matchRegionFromProjectRegionAutoscalingPolicyName 
 ( 
 projectRegionAutoscalingPolicyName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the region from ProjectRegionAutoscalingPolicy resource.

Parameter
Type Name Description
string
projectRegionAutoscalingPolicyName

A fully-qualified path representing project_region_autoscaling_policy resource.

Returns
Type Description
string | number

{string} A string representing the region.

matchRegionFromProjectRegionWorkflowTemplateName(projectRegionWorkflowTemplateName)

  matchRegionFromProjectRegionWorkflowTemplateName 
 ( 
 projectRegionWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the region from ProjectRegionWorkflowTemplate resource.

Parameter
Type Name Description
string
projectRegionWorkflowTemplateName

A fully-qualified path representing project_region_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the region.

matchWorkflowTemplateFromProjectLocationWorkflowTemplateName(projectLocationWorkflowTemplateName)

  matchWorkflowTemplateFromProjectLocationWorkflowTemplateName 
 ( 
 projectLocationWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the workflow_template from ProjectLocationWorkflowTemplate resource.

Parameter
Type Name Description
string
projectLocationWorkflowTemplateName

A fully-qualified path representing project_location_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the workflow_template.

matchWorkflowTemplateFromProjectRegionWorkflowTemplateName(projectRegionWorkflowTemplateName)

  matchWorkflowTemplateFromProjectRegionWorkflowTemplateName 
 ( 
 projectRegionWorkflowTemplateName 
 : 
  
 string 
 ) 
 : 
  
 string 
  
 | 
  
 number 
 ; 
 

Parse the workflow_template from ProjectRegionWorkflowTemplate resource.

Parameter
Type Name Description
string
projectRegionWorkflowTemplateName

A fully-qualified path representing project_region_workflow_template resource.

Returns
Type Description
string | number

{string} A string representing the workflow_template.

projectLocationAutoscalingPolicyPath(project, location, autoscalingPolicy)

  projectLocationAutoscalingPolicyPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 autoscalingPolicy 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationAutoscalingPolicy resource name string.

Parameters
Type Name Description
string
project
string
location
string
autoscalingPolicy
Returns
Type Description
string

{string} Resource name string.

projectLocationWorkflowTemplatePath(project, location, workflowTemplate)

  projectLocationWorkflowTemplatePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 location 
 : 
  
 string 
 , 
  
 workflowTemplate 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectLocationWorkflowTemplate resource name string.

Parameters
Type Name Description
string
project
string
location
string
workflowTemplate
Returns
Type Description
string

{string} Resource name string.

projectRegionAutoscalingPolicyPath(project, region, autoscalingPolicy)

  projectRegionAutoscalingPolicyPath 
 ( 
 project 
 : 
  
 string 
 , 
  
 region 
 : 
  
 string 
 , 
  
 autoscalingPolicy 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectRegionAutoscalingPolicy resource name string.

Parameters
Type Name Description
string
project
string
region
string
autoscalingPolicy
Returns
Type Description
string

{string} Resource name string.

projectRegionWorkflowTemplatePath(project, region, workflowTemplate)

  projectRegionWorkflowTemplatePath 
 ( 
 project 
 : 
  
 string 
 , 
  
 region 
 : 
  
 string 
 , 
  
 workflowTemplate 
 : 
  
 string 
 ) 
 : 
  
 string 
 ; 
 

Return a fully-qualified projectRegionWorkflowTemplate resource name string.

Parameters
Type Name Description
string
project
string
region
string
workflowTemplate
Returns
Type Description
string

{string} Resource name string.

submitJob(request, options)

  submitJob 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest | undefined, {} | undefined]>

submitJob(request, options, callback)

  submitJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
CallOptions
options
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

submitJob(request, callback)

  submitJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

submitJobAsOperation(request, options)

  submitJobAsOperation 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJobMetadata 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[ LROperation <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IJobMetadata >, protos. google.longrunning.IOperation | undefined, {} | undefined]>

submitJobAsOperation(request, options, callback)

  submitJobAsOperation 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJobMetadata 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
CallOptions
options
Callback < LROperation <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IJobMetadata >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

submitJobAsOperation(request, callback)

  submitJobAsOperation 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 ISubmitJobRequest 
 , 
  
 callback 
 : 
  
 Callback<LROperation<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJobMetadata 
> , 
  
 protos 
 . 
 google 
 . 
 longrunning 
 . 
 IOperation 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.ISubmitJobRequest
request
Callback < LROperation <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IJobMetadata >, protos. google.longrunning.IOperation | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

updateJob(request, options)

  updateJob 
 ( 
 request 
 ?: 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
 , 
  
 options 
 ?: 
  
 CallOptions 
 ) 
 : 
  
 Promise 
< [ 
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 undefined 
 ]>; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest
request
CallOptions
options
Returns
Type Description
Promise <[protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest | undefined, {} | undefined]>

updateJob(request, options, callback)

  updateJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
 , 
  
 options 
 : 
  
 CallOptions 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest
request
CallOptions
options
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void

updateJob(request, callback)

  updateJob 
 ( 
 request 
 : 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
 , 
  
 callback 
 : 
  
 Callback<protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IJob 
 , 
  
 protos 
 . 
 google 
 . 
 cloud 
 . 
 dataproc 
 . 
 v1beta2 
 . 
 IUpdateJobRequest 
  
 | 
  
 null 
  
 | 
  
 undefined 
 , 
  
 {} 
  
 | 
  
 null 
  
 | 
  
 undefined 
> ) 
 : 
  
 void 
 ; 
 
Parameters
Type Name Description
protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest
request
Callback <protos. google.cloud.dataproc.v1beta2.IJob , protos. google.cloud.dataproc.v1beta2.IUpdateJobRequest | null | undefined, {} | null | undefined>
callback
Returns
Type Description
void
Design a Mobile Site
View Site in Mobile | Classic
Share by: