Class: Google::Apis::ContainerV1beta1::NodeConfig

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

Instance Method Summary collapse

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

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_typeString

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

Returns:

  • (String)


343
344
345
# File 'generated/google/apis/container_v1beta1/classes.rb', line 343

def machine_type
  @machine_type
end

#service_accountsArray<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:



353
354
355
# File 'generated/google/apis/container_v1beta1/classes.rb', line 353

def service_accounts
  @service_accounts
end

#source_imageString

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

Returns:

  • (String)


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