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.



3195
3196
3197
# File 'lib/google/apis/cloudbuild_v2/classes.rb', line 3195

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)


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