Class: Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults
- 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
-
#oauth_scopes ⇒ Array<String>
Scopes that are used by NAP when creating node pools.
-
#service_account ⇒ String
The Google Cloud Platform Service Account to be used by the node VMs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoprovisioningNodePoolDefaults
constructor
A new instance of AutoprovisioningNodePoolDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_scopes ⇒ Array<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
160 161 162 |
# File 'generated/google/apis/container_v1/classes.rb', line 160 def oauth_scopes @oauth_scopes end |
#service_account ⇒ String
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
166 167 168 |
# File 'generated/google/apis/container_v1/classes.rb', line 166 def service_account @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 |