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.



7250
7251
7252
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7250

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

Instance Attribute Details

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

Corresponds to the JSON property executorResources



7238
7239
7240
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7238

def executor_resources
  @executor_resources
end

#resource_profile_idFixnum

Corresponds to the JSON property resourceProfileId

Returns:

  • (Fixnum)


7243
7244
7245
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7243

def resource_profile_id
  @resource_profile_id
end

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

Corresponds to the JSON property taskResources



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

def task_resources
  @task_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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