Google Cloud Dataproc V1 Client - Class ExecutionConfig (3.5.1)

Reference documentation and code samples for the Google Cloud Dataproc V1 Client class ExecutionConfig.

Execution configuration for a workload.

Generated from protobuf message google.cloud.dataproc.v1.ExecutionConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ service_account string

Optional. Service account that used to execute workload.

↳ network_uri string

Optional. Network URI to connect workload to.

↳ subnetwork_uri string

Optional. Subnetwork URI to connect workload to.

↳ network_tags array

Optional. Tags used for network traffic control.

↳ kms_key string

Optional. The Cloud KMS key to use for encryption.

↳ ttl Google\Protobuf\Duration

Optional. The duration after which the workload will be terminated. When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.

↳ staging_bucket string

Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets. This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.

getServiceAccount

Optional. Service account that used to execute workload.

Returns
TypeDescription
string

setServiceAccount

Optional. Service account that used to execute workload.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetworkUri

Optional. Network URI to connect workload to.

Returns
TypeDescription
string

hasNetworkUri

setNetworkUri

Optional. Network URI to connect workload to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubnetworkUri

Optional. Subnetwork URI to connect workload to.

Returns
TypeDescription
string

hasSubnetworkUri

setSubnetworkUri

Optional. Subnetwork URI to connect workload to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetworkTags

Optional. Tags used for network traffic control.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setNetworkTags

Optional. Tags used for network traffic control.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getKmsKey

Optional. The Cloud KMS key to use for encryption.

Returns
TypeDescription
string

setKmsKey

Optional. The Cloud KMS key to use for encryption.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTtl

Optional. The duration after which the workload will be terminated.

When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTtl

clearTtl

setTtl

Optional. The duration after which the workload will be terminated.

When the workload passes this ttl, it will be unconditionally killed without waiting for ongoing work to finish. Minimum value is 10 minutes; maximum value is 14 days (see JSON representation of Duration). If both ttl and idle_ttl are specified, the conditions are treated as and OR: the workload will be terminated when it has been idle for idle_ttl or when the ttl has passed, whichever comes first. If ttl is not specified for a session, it defaults to 24h.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getStagingBucket

Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets.

This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.

Returns
TypeDescription
string

setStagingBucket

Optional. A Cloud Storage bucket used to stage workload dependencies, config files, and store workload output and other ephemeral data, such as Spark history files. If you do not specify a staging bucket, Cloud Dataproc will determine a Cloud Storage location according to the region where your workload is running, and then create and manage project-level, per-location staging and temporary buckets.

This field requires a Cloud Storage bucket name, not a gs://... URI to a Cloud Storage bucket.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getNetwork

Returns
TypeDescription
string