Class: Google::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v1/classes.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb,
generated/google/apis/remotebuildexecution_v1/representations.rb

Overview

Defines the configuration to be used for a creating workers in the worker pool.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig



2020
2021
2022
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2020

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

Instance Attribute Details

#acceleratorGoogle::Apis::RemotebuildexecutionV1::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

AcceleratorConfig defines the accelerator cards to attach to the VM. Corresponds to the JSON property accelerator



1971
1972
1973
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1971

def accelerator
  @accelerator
end

#disk_size_gbFixnum

Required. Size of the disk attached to the worker, in GB. See https://cloud.google.com/compute/docs/disks/ Corresponds to the JSON property diskSizeGb

Returns:

  • (Fixnum)


1977
1978
1979
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1977

def disk_size_gb
  @disk_size_gb
end

#disk_typeString

Required. Disk Type to use for the worker. See Storage options. Currently only pd-standard is supported. Corresponds to the JSON property diskType

Returns:

  • (String)


1985
1986
1987
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1985

def disk_type
  @disk_type
end

#labelsHash<String,String>

Labels associated with the workers. Label keys and values can be no longer than 63 characters, can only contain lowercase letters, numeric characters, underscores and dashes. International letters are permitted. Label keys must start with a letter. Label values are optional. There can not be more than 64 labels per resource. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


1995
1996
1997
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 1995

def labels
  @labels
end

#machine_typeString

Required. Machine type of the worker, such as n1-standard-2. See https://cloud.google.com/compute/docs/machine-types for a list of supported machine types. Note that f1-micro and g1-small are not yet supported. Corresponds to the JSON property machineType

Returns:

  • (String)


2003
2004
2005
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2003

def machine_type
  @machine_type
end

#min_cpu_platformString

Minimum CPU platform to use when creating the worker. See CPU Platforms. Corresponds to the JSON property minCpuPlatform

Returns:

  • (String)


2009
2010
2011
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2009

def min_cpu_platform
  @min_cpu_platform
end

#reservedBoolean Also known as: reserved?

Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted). See Preemptible VMs for more details. Corresponds to the JSON property reserved

Returns:

  • (Boolean)


2017
2018
2019
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2017

def reserved
  @reserved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2025
2026
2027
2028
2029
2030
2031
2032
2033
# File 'generated/google/apis/remotebuildexecution_v1/classes.rb', line 2025

def update!(**args)
  @accelerator = args[:accelerator] if args.key?(:accelerator)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @labels = args[:labels] if args.key?(:labels)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
  @reserved = args[:reserved] if args.key?(:reserved)
end