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.



1231
1232
1233
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1231

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

Instance Attribute Details

#kms_keyString

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

Returns:

  • (String)


1209
1210
1211
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1209

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>)


1214
1215
1216
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1214

def network_tags
  @network_tags
end

#network_uriString

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

Returns:

  • (String)


1219
1220
1221
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1219

def network_uri
  @network_uri
end

#service_accountString

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

Returns:

  • (String)


1224
1225
1226
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1224

def 
  @service_account
end

#subnetwork_uriString

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

Returns:

  • (String)


1229
1230
1231
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1229

def subnetwork_uri
  @subnetwork_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1236
1237
1238
1239
1240
1241
1242
# File 'lib/google/apis/dataproc_v1/classes.rb', line 1236

def update!(**args)
  @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