Class: Google::Apis::CloudbuildV2::Worker
- Inherits:
-
Object
- Object
- Google::Apis::CloudbuildV2::Worker
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudbuild_v2/classes.rb,
lib/google/apis/cloudbuild_v2/representations.rb,
lib/google/apis/cloudbuild_v2/representations.rb
Overview
Configuration for the worker.
Instance Attribute Summary collapse
-
#machine_type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Worker
constructor
A new instance of Worker.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Worker
Returns a new instance of Worker.
3195 3196 3197 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3195 def initialize(**args) update!(**args) end |
Instance Attribute Details
#machine_type ⇒ String
Optional. Machine type of a worker, default is "e2-standard-2".
Corresponds to the JSON property machineType
3193 3194 3195 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3193 def machine_type @machine_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3200 3201 3202 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3200 def update!(**args) @machine_type = args[:machine_type] if args.key?(:machine_type) end |