Class: Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
- Inherits:
-
Object
- Object
- Google::Apis::RemotebuildexecutionV1alpha::GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/remotebuildexecution_v1alpha/classes.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb,
generated/google/apis/remotebuildexecution_v1alpha/representations.rb
Overview
Defines the configuration to be used for a creating workers in the worker pool.
Instance Attribute Summary collapse
-
#disk_size_gb ⇒ Fixnum
Required.
-
#disk_type ⇒ String
Required.
-
#machine_type ⇒ String
Required.
-
#min_cpu_platform ⇒ String
Minimum CPU platform to use when creating the worker.
-
#reserved ⇒ Boolean
(also: #reserved?)
Determines whether the worker is reserved (equivalent to a Compute Engine on-demand VM and therefore won't be preempted).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
constructor
A new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
Returns a new instance of GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig
1907 1908 1909 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1907 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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
1874 1875 1876 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1874 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
is supported.
Corresponds to the JSON property diskType
1882 1883 1884 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1882 def disk_type @disk_type end |
#machine_type ⇒ String
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
1890 1891 1892 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1890 def machine_type @machine_type end |
#min_cpu_platform ⇒ String
Minimum CPU platform to use when creating the worker.
See CPU Platforms.
Corresponds to the JSON property minCpuPlatform
1896 1897 1898 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1896 def min_cpu_platform @min_cpu_platform 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
1904 1905 1906 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1904 def reserved @reserved end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1912 1913 1914 1915 1916 1917 1918 |
# File 'generated/google/apis/remotebuildexecution_v1alpha/classes.rb', line 1912 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 |