# Kubernetes Engine V1 API - Class Google::Cloud::Container::V1::AutoprovisioningNodePoolDefaults (v1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.1 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.42.0 0.41.0 0.40.0 0.39.0 0.38.0 0.37.0 0.36.0 0.35.0 0.34.1 0.33.1 0.32.0 0.31.0 0.30.0 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.0 0.16.3 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.0 0.7.3 Reference documentation and code samples for the Kubernetes Engine V1 API class Google::Cloud::Container::V1::AutoprovisioningNodePoolDefaults.

AutoprovisioningNodePoolDefaults contains defaults for a node pool created
by NAP.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #boot_disk_kms_key

    def boot_disk_kms_key() -> ::String

**Returns**

- (::String) --- The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/\[KEY_PROJECT_ID\]/locations/\[LOCATION\]/keyRings/\[RING_NAME\]/cryptoKeys/\[KEY_NAME\]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

### #boot_disk_kms_key=

    def boot_disk_kms_key=(value) -> ::String

**Parameter**

- **value** (::String) --- The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/\[KEY_PROJECT_ID\]/locations/\[LOCATION\]/keyRings/\[RING_NAME\]/cryptoKeys/\[KEY_NAME\]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption
**Returns**

- (::String) --- The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/\[KEY_PROJECT_ID\]/locations/\[LOCATION\]/keyRings/\[RING_NAME\]/cryptoKeys/\[KEY_NAME\]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

### #disk_size_gb

    def disk_size_gb() -> ::Integer

**Returns**

- (::Integer) --- Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB.

  If unspecified, the default disk size is 100GB.

### #disk_size_gb=

    def disk_size_gb=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB.


  If unspecified, the default disk size is 100GB.
**Returns**

- (::Integer) --- Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB.

  If unspecified, the default disk size is 100GB.

### #disk_type

    def disk_type() -> ::String

**Returns**

- (::String) --- Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced')

  If unspecified, the default disk type is 'pd-standard'

### #disk_type=

    def disk_type=(value) -> ::String

**Parameter**

- **value** (::String) --- Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced')


  If unspecified, the default disk type is 'pd-standard'
**Returns**

- (::String) --- Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced')

  If unspecified, the default disk type is 'pd-standard'

### #image_type

    def image_type() -> ::String

**Returns**

- (::String) --- The image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

### #image_type=

    def image_type=(value) -> ::String

**Parameter**

- **value** (::String) --- The image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.
**Returns**

- (::String) --- The image type to use for NAP created node. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

### #insecure_kubelet_readonly_port_enabled

    def insecure_kubelet_readonly_port_enabled() -> ::Boolean

**Returns**

- (::Boolean) --- DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.

### #insecure_kubelet_readonly_port_enabled=

    def insecure_kubelet_readonly_port_enabled=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.
**Returns**

- (::Boolean) --- DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.

### #management

    def management() -> ::Google::Cloud::Container::V1::NodeManagement

**Returns**

- ([::Google::Cloud::Container::V1::NodeManagement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodeManagement)) --- Specifies the node management options for NAP created node-pools.

### #management=

    def management=(value) -> ::Google::Cloud::Container::V1::NodeManagement

**Parameter**

- **value** ([::Google::Cloud::Container::V1::NodeManagement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodeManagement)) --- Specifies the node management options for NAP created node-pools.
**Returns**

- ([::Google::Cloud::Container::V1::NodeManagement](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodeManagement)) --- Specifies the node management options for NAP created node-pools.

### #min_cpu_platform

    def min_cpu_platform() -> ::String

**Returns**

- (::String) --- Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU
  platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.

### #min_cpu_platform=

    def min_cpu_platform=(value) -> ::String

**Parameter**

- **value** (::String) --- Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU
  platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.
**Returns**

- (::String) --- Deprecated. Minimum CPU platform to be used for NAP created node pools. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: Intel Haswell or minCpuPlatform: Intel Sandy Bridge. For more information, read [how to specify min CPU
  platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). This field is deprecated, min_cpu_platform should be specified using `cloud.google.com/requested-min-cpu-platform` label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.

### #oauth_scopes

    def oauth_scopes() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Scopes that are used by NAP when creating node pools.

### #oauth_scopes=

    def oauth_scopes=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Scopes that are used by NAP when creating node pools.
**Returns**

- (::Array\<::String\>) --- Scopes that are used by NAP when creating node pools.

### #service_account

    def service_account() -> ::String

**Returns**

- (::String) --- The Google Cloud Platform Service Account to be used by the node VMs.

### #service_account=

    def service_account=(value) -> ::String

**Parameter**

- **value** (::String) --- The Google Cloud Platform Service Account to be used by the node VMs.
**Returns**

- (::String) --- The Google Cloud Platform Service Account to be used by the node VMs.

### #shielded_instance_config

    def shielded_instance_config() -> ::Google::Cloud::Container::V1::ShieldedInstanceConfig

**Returns**

- ([::Google::Cloud::Container::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ShieldedInstanceConfig)) --- Shielded Instance options.

### #shielded_instance_config=

    def shielded_instance_config=(value) -> ::Google::Cloud::Container::V1::ShieldedInstanceConfig

**Parameter**

- **value** ([::Google::Cloud::Container::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ShieldedInstanceConfig)) --- Shielded Instance options.
**Returns**

- ([::Google::Cloud::Container::V1::ShieldedInstanceConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-ShieldedInstanceConfig)) --- Shielded Instance options.

### #upgrade_settings

    def upgrade_settings() -> ::Google::Cloud::Container::V1::NodePool::UpgradeSettings

**Returns**

- ([::Google::Cloud::Container::V1::NodePool::UpgradeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodePool-UpgradeSettings)) --- Specifies the upgrade settings for NAP created node pools

### #upgrade_settings=

    def upgrade_settings=(value) -> ::Google::Cloud::Container::V1::NodePool::UpgradeSettings

**Parameter**

- **value** ([::Google::Cloud::Container::V1::NodePool::UpgradeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodePool-UpgradeSettings)) --- Specifies the upgrade settings for NAP created node pools
**Returns**

- ([::Google::Cloud::Container::V1::NodePool::UpgradeSettings](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-container-v1/latest/Google-Cloud-Container-V1-NodePool-UpgradeSettings)) --- Specifies the upgrade settings for NAP created node pools