Class: Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::AutoprovisioningNodePoolDefaults
- 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
-
#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
180 181 182 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 180 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
172 173 174 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 172 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
178 179 180 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 178 def service_account @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 |