Class: Google::Apis::DataprocV1::ExecutionConfig
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::ExecutionConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataproc_v1/classes.rb,
lib/google/apis/dataproc_v1/representations.rb,
lib/google/apis/dataproc_v1/representations.rb
Overview
Execution configuration for a workload.
Instance Attribute Summary collapse
-
#idle_ttl ⇒ String
Optional.
-
#kms_key ⇒ String
Optional.
-
#network_tags ⇒ Array<String>
Optional.
-
#network_uri ⇒ String
Optional.
-
#service_account ⇒ String
Optional.
-
#subnetwork_uri ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ExecutionConfig
constructor
A new instance of ExecutionConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ExecutionConfig
Returns a new instance of ExecutionConfig.
1303 1304 1305 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1303 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idle_ttl ⇒ String
Optional. The duration to keep the session alive while it's idling. Passing
this threshold will cause the session to be terminated. Minimum value is 10
minutes; maximum value is 14 days (see JSON representation of Duration (https:/
/developers.google.com/protocol-buffers/docs/proto3#json)). Defaults to 4
hours if not set. 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.
Corresponds to the JSON property idleTtl
1276 1277 1278 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1276 def idle_ttl @idle_ttl end |
#kms_key ⇒ String
Optional. The Cloud KMS key to use for encryption.
Corresponds to the JSON property kmsKey
1281 1282 1283 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1281 def kms_key @kms_key end |
#network_tags ⇒ Array<String>
Optional. Tags used for network traffic control.
Corresponds to the JSON property networkTags
1286 1287 1288 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1286 def @network_tags end |
#network_uri ⇒ String
Optional. Network URI to connect workload to.
Corresponds to the JSON property networkUri
1291 1292 1293 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1291 def network_uri @network_uri end |
#service_account ⇒ String
Optional. Service account that used to execute workload.
Corresponds to the JSON property serviceAccount
1296 1297 1298 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1296 def service_account @service_account end |
#subnetwork_uri ⇒ String
Optional. Subnetwork URI to connect workload to.
Corresponds to the JSON property subnetworkUri
1301 1302 1303 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1301 def subnetwork_uri @subnetwork_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1308 1309 1310 1311 1312 1313 1314 1315 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1308 def update!(**args) @idle_ttl = args[:idle_ttl] if args.key?(:idle_ttl) @kms_key = args[:kms_key] if args.key?(:kms_key) @network_tags = args[:network_tags] if args.key?(:network_tags) @network_uri = args[:network_uri] if args.key?(:network_uri) @service_account = args[:service_account] if args.key?(:service_account) @subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri) end |