Class: Google::Apis::DataprocV1::ExecutionConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionConfig

Returns a new instance of ExecutionConfig.



1301
1302
1303
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1301

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#idle_ttlString

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. Corresponds to the JSON property idleTtl

Returns:

  • (String)


1274
1275
1276
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1274

def idle_ttl
  @idle_ttl
end

#kms_keyString

Optional. The Cloud KMS key to use for encryption. Corresponds to the JSON property kmsKey

Returns:

  • (String)


1279
1280
1281
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1279

def kms_key
  @kms_key
end

#network_tagsArray<String>

Optional. Tags used for network traffic control. Corresponds to the JSON property networkTags

Returns:

  • (Array<String>)


1284
1285
1286
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1284

def network_tags
  @network_tags
end

#network_uriString

Optional. Network URI to connect workload to. Corresponds to the JSON property networkUri

Returns:

  • (String)


1289
1290
1291
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1289

def network_uri
  @network_uri
end

#service_accountString

Optional. Service account that used to execute workload. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


1294
1295
1296
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1294

def 
  @service_account
end

#subnetwork_uriString

Optional. Subnetwork URI to connect workload to. Corresponds to the JSON property subnetworkUri

Returns:

  • (String)


1299
1300
1301
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1299

def subnetwork_uri
  @subnetwork_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1306
1307
1308
1309
1310
1311
1312
1313
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1306

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