Class: Google::Apis::CloudbuildV2::Worker

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Worker

Returns a new instance of Worker.



3127
3128
3129
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3127

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

Instance Attribute Details

#machine_typeString

Optional. Machine type of a worker, default is "e2-standard-2". Corresponds to the JSON property machineType

Returns:

  • (String)


3125
3126
3127
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3125

def machine_type
  @machine_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3132
3133
3134
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3132

def update!(**args)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
end