Class: Google::Apis::DataprocV1::ResourceProfileInfo

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

Resource profile that contains information about all the resources required by executors and tasks.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResourceProfileInfo

Returns a new instance of ResourceProfileInfo.



7446
7447
7448
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7446

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

Instance Attribute Details

#executor_resourcesHash<String,Google::Apis::DataprocV1::ExecutorResourceRequest>

Corresponds to the JSON property executorResources



7434
7435
7436
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7434

def executor_resources
  @executor_resources
end

#resource_profile_idFixnum

Corresponds to the JSON property resourceProfileId

Returns:

  • (Fixnum)


7439
7440
7441
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7439

def resource_profile_id
  @resource_profile_id
end

#task_resourcesHash<String,Google::Apis::DataprocV1::TaskResourceRequest>

Corresponds to the JSON property taskResources



7444
7445
7446
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7444

def task_resources
  @task_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7451
7452
7453
7454
7455
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7451

def update!(**args)
  @executor_resources = args[:executor_resources] if args.key?(:executor_resources)
  @resource_profile_id = args[:resource_profile_id] if args.key?(:resource_profile_id)
  @task_resources = args[:task_resources] if args.key?(:task_resources)
end