Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/remotebuildexecution_v1alpha/classes.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb,
lib/google/apis/remotebuildexecution_v1alpha/representations.rb
Overview
Defines the configuration to be used for creating workers in the worker pool.
Instance Attribute Summary collapse
-
#accelerator ⇒ Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
AcceleratorConfig defines the accelerator cards to attach to the VM.
-
#disk_size_gb ⇒ Fixnum
Required.
-
#disk_type ⇒ String
Required.
-
#labels ⇒ Hash<String,String>
Labels associated with the workers.
-
#machine_type ⇒ String
Required.
-
#max_concurrent_actions ⇒ Fixnum
The maximum number of actions a worker can execute concurrently.
-
#min_cpu_platform ⇒ String
Minimum CPU platform to use when creating the worker.
-
#network_access ⇒ String
Determines the type of network access granted to workers.
-
#reserved ⇒ Boolean
(also: #reserved?)
Determines whether the worker is reserved (equivalent to a Compute Engine on- demand VM and therefore won't be preempted).
-
#sole_tenant_node_type ⇒ String
The node type name to be used for sole-tenant nodes.
-
#vm_image ⇒ String
The name of the image used by each VM.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
constructor
A new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.
2285 2286 2287 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2285 def initialize(**args) update!(**args) end |
Instance Attribute Details
#accelerator ⇒ Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig
AcceleratorConfig defines the accelerator cards to attach to the VM.
Corresponds to the JSON property accelerator
2216 2217 2218 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2216 def accelerator @accelerator end |
#disk_size_gb ⇒ Fixnum
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
2222 2223 2224 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2222 def disk_size_gb @disk_size_gb end |
#disk_type ⇒ String
Required. Disk Type to use for the worker. See Storage options. Currently only pd-standard and
pd-ssd are supported.
Corresponds to the JSON property diskType
2229 2230 2231 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2229 def disk_type @disk_type end |
#labels ⇒ Hash<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
2238 2239 2240 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2238 def labels @labels end |
#machine_type ⇒ 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
2245 2246 2247 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2245 def machine_type @machine_type end |
#max_concurrent_actions ⇒ Fixnum
The maximum number of actions a worker can execute concurrently.
Corresponds to the JSON property maxConcurrentActions
2250 2251 2252 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2250 def max_concurrent_actions @max_concurrent_actions end |
#min_cpu_platform ⇒ String
Minimum CPU platform to use when creating the worker. See CPU Platforms.
Corresponds to the JSON property minCpuPlatform
2256 2257 2258 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2256 def min_cpu_platform @min_cpu_platform end |
#network_access ⇒ 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
2265 2266 2267 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2265 def network_access @network_access end |
#reserved ⇒ Boolean 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
2272 2273 2274 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2272 def reserved @reserved end |
#sole_tenant_node_type ⇒ String
The node type name to be used for sole-tenant nodes.
Corresponds to the JSON property soleTenantNodeType
2278 2279 2280 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2278 def sole_tenant_node_type @sole_tenant_node_type end |
#vm_image ⇒ String
The name of the image used by each VM.
Corresponds to the JSON property vmImage
2283 2284 2285 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2283 def vm_image @vm_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 |
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2290 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 |