Class: Google::Apis::RemotebuildexecutionV2::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/remotebuildexecution_v2/classes.rb,
generated/google/apis/remotebuildexecution_v2/representations.rb,
generated/google/apis/remotebuildexecution_v2/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



2654
2655
2656
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2654

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

Instance Attribute Details

#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)


2621
2622
2623
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2621

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)


2629
2630
2631
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2629

def disk_type
  @disk_type
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)


2637
2638
2639
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2637

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)


2643
2644
2645
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2643

def min_cpu_platform
  @min_cpu_platform
end

#reservedBoolean Also known as: reserved?

Determines whether the worker is reserved (and therefore won't be preempted). See Preemptible VMs for more details. Corresponds to the JSON property reserved

Returns:

  • (Boolean)


2651
2652
2653
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2651

def reserved
  @reserved
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2659
2660
2661
2662
2663
2664
2665
# File 'generated/google/apis/remotebuildexecution_v2/classes.rb', line 2659

def update!(**args)
  @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @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