Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig

Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.



2371
2372
2373
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2371

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

Instance Attribute Details

#acceleratorGoogle::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig

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



2302
2303
2304
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2302

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)


2308
2309
2310
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2308

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 and pd-ssd are supported. Corresponds to the JSON property diskType

Returns:

  • (String)


2315
2316
2317
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2315

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


2324
2325
2326
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2324

def labels
  @labels
end

#machine_typeString

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

Returns:

  • (String)


2331
2332
2333
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2331

def machine_type
  @machine_type
end

#max_concurrent_actionsFixnum

The maximum number of actions a worker can execute concurrently. Corresponds to the JSON property maxConcurrentActions

Returns:

  • (Fixnum)


2336
2337
2338
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2336

def max_concurrent_actions
  @max_concurrent_actions
end

#min_cpu_platformString

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

Returns:

  • (String)


2342
2343
2344
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2342

def min_cpu_platform
  @min_cpu_platform
end

#network_accessString

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

Returns:

  • (String)


2351
2352
2353
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2351

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


2358
2359
2360
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2358

def reserved
  @reserved
end

#sole_tenant_node_typeString

The node type name to be used for sole-tenant nodes. Corresponds to the JSON property soleTenantNodeType

Returns:

  • (String)


2364
2365
2366
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2364

def sole_tenant_node_type
  @sole_tenant_node_type
end

#vm_imageString

The name of the image used by each VM. Corresponds to the JSON property vmImage

Returns:

  • (String)


2369
2370
2371
# File 'lib/google/apis/remotebuildexecution_v1alpha/classes.rb', line 2369

def vm_image
  @vm_image
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
# 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