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.



7105
7106
7107
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7105

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

Instance Attribute Details

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

Corresponds to the JSON property executorResources



7093
7094
7095
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7093

def executor_resources
  @executor_resources
end

#resource_profile_idFixnum

Corresponds to the JSON property resourceProfileId

Returns:

  • (Fixnum)


7098
7099
7100
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7098

def resource_profile_id
  @resource_profile_id
end

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

Corresponds to the JSON property taskResources



7103
7104
7105
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7103

def task_resources
  @task_resources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7110
7111
7112
7113
7114
# File 'lib/google/apis/dataproc_v1/classes.rb', line 7110

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