Class: Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/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



168
169
170
# File 'generated/google/apis/container_v1/classes.rb', line 168

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


160
161
162
# File 'generated/google/apis/container_v1/classes.rb', line 160

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)


166
167
168
# File 'generated/google/apis/container_v1/classes.rb', line 166

def 
  @service_account
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



173
174
175
176
# File 'generated/google/apis/container_v1/classes.rb', line 173

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