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.



7259
7260
7261
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7259

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

Instance Attribute Details

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

Corresponds to the JSON property executorResources



7247
7248
7249
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7247

def executor_resources
  @executor_resources
end

#resource_profile_idFixnum

Corresponds to the JSON property resourceProfileId

Returns:

  • (Fixnum)


7252
7253
7254
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7252

def resource_profile_id
  @resource_profile_id
end

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

Corresponds to the JSON property taskResources



7257
7258
7259
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7257

def task_resources
  @task_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7264
7265
7266
7267
7268
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7264

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