Class: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1beta1/classes.rb,
generated/google/apis/container_v1beta1/representations.rb,
generated/google/apis/container_v1beta1/representations.rb

Overview

AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoprovisioningNodePoolDefaults

Returns a new instance of AutoprovisioningNodePoolDefaults



180
181
182
# File 'generated/google/apis/container_v1beta1/classes.rb', line 180

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

Instance Attribute Details

#oauth_scopesArray<String>

Scopes that are used by NAP when creating node pools. If oauth_scopes are specified, service_account should be empty. Corresponds to the JSON property oauthScopes

Returns:

  • (Array<String>)


172
173
174
# File 'generated/google/apis/container_v1beta1/classes.rb', line 172

def oauth_scopes
  @oauth_scopes
end

#service_accountString

The Google Cloud Platform Service Account to be used by the node VMs. If service_account is specified, scopes should be empty. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


178
179
180
# File 'generated/google/apis/container_v1beta1/classes.rb', line 178

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



185
186
187
188
# File 'generated/google/apis/container_v1beta1/classes.rb', line 185

def update!(**args)
  @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes)
  @service_account = args[:service_account] if args.key?(:service_account)
end