class Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Defines the configuration to be used for creating workers in the worker pool.
Attributes
AcceleratorConfig defines the accelerator cards to attach to the VM. Corresponds to the JSON property `accelerator` @return [Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig]
Required. Size of the disk attached to the worker, in GB. See cloud. google.com/compute/docs/disks/ Corresponds to the JSON property `diskSizeGb` @return [Fixnum]
Required. Disk Type to use for the worker. See [Storage options](cloud. google.com/compute/docs/disks/#introduction). Currently only `pd-standard` and `pd-ssd` are supported. Corresponds to the JSON property `diskType` @return [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` @return [Hash<String,String>]
Required. Machine type of the worker, such as `e2-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` @return [String]
The maximum number of actions a worker can execute concurrently. Corresponds to the JSON property `maxConcurrentActions` @return [Fixnum]
Minimum CPU platform to use when creating the worker. See [CPU Platforms]( cloud.google.com/compute/docs/cpu-platforms). Corresponds to the JSON property `minCpuPlatform` @return [String]
Determines the type of network access granted to workers. Possible values: - “ public”: Workers can connect to the public internet. - “private”: Workers can only connect to Google
APIs and services. - “restricted-private”: Workers can only connect to Google
APIs that are reachable through `restricted.googleapis. com` (`199.36.153.4/30`). Corresponds to the JSON property `networkAccess` @return [String]
Determines whether the worker is reserved (equivalent to a Compute Engine on- demand VM and therefore won't be preempted). See [Preemptible VMs](https:// cloud.google.com/preemptible-vms/) for more details. Corresponds to the JSON property `reserved` @return [Boolean]
Determines whether the worker is reserved (equivalent to a Compute Engine on- demand VM and therefore won't be preempted). See [Preemptible VMs](https:// cloud.google.com/preemptible-vms/) for more details. Corresponds to the JSON property `reserved` @return [Boolean]
The node type name to be used for sole-tenant nodes. Corresponds to the JSON property `soleTenantNodeType` @return [String]
The name of the image used by each VM. Corresponds to the JSON property `vmImage` @return [String]
Public Class Methods
# File lib/google/apis/remotebuildexecution_v1alpha/classes.rb, line 2371 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/remotebuildexecution_v1alpha/classes.rb, line 2376 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) @max_concurrent_actions = args[:max_concurrent_actions] if args.key?(:max_concurrent_actions) @min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform) @network_access = args[:network_access] if args.key?(:network_access) @reserved = args[:reserved] if args.key?(:reserved) @sole_tenant_node_type = args[:sole_tenant_node_type] if args.key?(:sole_tenant_node_type) @vm_image = args[:vm_image] if args.key?(:vm_image) end