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.
3013 3014 3015 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3013 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
3011 3012 3013 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3011 def machine_type @machine_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3018 3019 3020 |
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3018 def update!(**args) @machine_type = args[:machine_type] if args.key?(:machine_type) end |