Class: Google::Apis::DataprocV1::ResourceProfileInfo
- Inherits:
-
Object
- Object
- Google::Apis::DataprocV1::ResourceProfileInfo
- 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
-
#executor_resources ⇒ Hash<String,Google::Apis::DataprocV1::ExecutorResourceRequest>
Corresponds to the JSON property
executorResources. -
#resource_profile_id ⇒ Fixnum
Corresponds to the JSON property
resourceProfileId. -
#task_resources ⇒ Hash<String,Google::Apis::DataprocV1::TaskResourceRequest>
Corresponds to the JSON property
taskResources.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ResourceProfileInfo
constructor
A new instance of ResourceProfileInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ResourceProfileInfo
Returns a new instance of ResourceProfileInfo.
6822 6823 6824 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6822 def initialize(**args) update!(**args) end |
Instance Attribute Details
#executor_resources ⇒ Hash<String,Google::Apis::DataprocV1::ExecutorResourceRequest>
Corresponds to the JSON property executorResources
6810 6811 6812 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6810 def executor_resources @executor_resources end |
#resource_profile_id ⇒ Fixnum
Corresponds to the JSON property resourceProfileId
6815 6816 6817 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6815 def resource_profile_id @resource_profile_id end |
#task_resources ⇒ Hash<String,Google::Apis::DataprocV1::TaskResourceRequest>
Corresponds to the JSON property taskResources
6820 6821 6822 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6820 def task_resources @task_resources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6827 6828 6829 6830 6831 |
# File 'lib/google/apis/dataproc_v1/classes.rb', line 6827 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 |