Class: Google::Apis::ContainerV1beta1::NodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::NodeConfig
- Includes:
- Google::Apis::Core::Hashable
- Defined in:
- generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#machine_type ⇒ String
The name of a Google Compute Engine machine type (e.g. n1-standard-1).
-
#service_accounts ⇒ Array<Google::Apis::ContainerV1beta1::ServiceAccount>
The optional list of ServiceAccounts, each with their specified scopes, to be made available on all of the node VMs.
-
#source_image ⇒ String
The fully-specified name of a Google Compute Engine image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NodeConfig
constructor
A new instance of NodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ NodeConfig
Returns a new instance of NodeConfig
365 366 367 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 365 def initialize(**args) update!(**args) end |
Instance Attribute Details
#machine_type ⇒ String
The name of a Google Compute Engine machine type (e.g. n1-standard-1).
If unspecified, the default machine type is n1-standard-1.
Corresponds to the JSON property machineType
343 344 345 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 343 def machine_type @machine_type end |
#service_accounts ⇒ Array<Google::Apis::ContainerV1beta1::ServiceAccount>
The optional list of ServiceAccounts, each with their specified scopes, to be made available on all of the node VMs. In addition to the service accounts and scopes specified, the "default" account will always be created with the following scopes to ensure the correct functioning of the cluster:
- https://www.googleapis.com/auth/compute,
- https://www.googleapis.com/auth/devstorage.read_only
Corresponds to the JSON property
serviceAccounts
353 354 355 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 353 def service_accounts @service_accounts end |
#source_image ⇒ String
The fully-specified name of a Google Compute Engine image. For example: https:/
/www.googleapis.com/compute/v1/projects/debian-cloud/global/images/backports-
debian-7-wheezy-vYYYYMMDD (where YYYMMDD is the version date).
If specifying an image, you are responsible for ensuring its compatibility
with the Debian 7 backports image. We recommend leaving this field blank to
accept the default backports-debian-7-wheezy value.
Corresponds to the JSON property sourceImage
363 364 365 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 363 def source_image @source_image end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
370 371 372 373 374 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 370 def update!(**args) @machine_type = args[:machine_type] unless args[:machine_type].nil? @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? @source_image = args[:source_image] unless args[:source_image].nil? end |