# Google Cloud Container V1 Client - Class AutoprovisioningNodePoolDefaults (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class AutoprovisioningNodePoolDefaults.

AutoprovisioningNodePoolDefaults contains defaults for a node pool created
by NAP.

Generated from protobuf message `google.container.v1.AutoprovisioningNodePoolDefaults`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ oauth_scopes` | `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. |
| `↳ upgrade_settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.UpgradeSettings` Specifies the upgrade settings for NAP created node pools |
| `↳ management` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeManagement` Specifies the node management options for NAP created node-pools. |
| `↳ min_cpu_platform` | `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. |
| `↳ disk_size_gb` | `int` 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` | `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' |
| `↳ shielded_instance_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ShieldedInstanceConfig` Shielded Instance options. |
| `↳ boot_disk_kms_key` | `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> |
| `↳ image_type` | `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` | `bool` DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead. |

### getOauthScopes

Scopes that are used by NAP when creating node pools.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setOauthScopes

Scopes that are used by NAP when creating node pools.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getServiceAccount

The Google Cloud Platform Service Account to be used by the node VMs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setServiceAccount

The Google Cloud Platform Service Account to be used by the node VMs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUpgradeSettings

Specifies the upgrade settings for NAP created node pools

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.UpgradeSettings|null` |   |

### hasUpgradeSettings

### clearUpgradeSettings

### setUpgradeSettings

Specifies the upgrade settings for NAP created node pools

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodePool.UpgradeSettings` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getManagement

Specifies the node management options for NAP created node-pools.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeManagement|null` |   |

### hasManagement

### clearManagement

### setManagement

Specifies the node management options for NAP created node-pools.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeManagement` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMinCpuPlatform

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setMinCpuPlatform

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiskSizeGb

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** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setDiskSizeGb

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDiskType

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDiskType

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'

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getShieldedInstanceConfig

Shielded Instance options.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ShieldedInstanceConfig|null` |   |

### hasShieldedInstanceConfig

### clearShieldedInstanceConfig

### setShieldedInstanceConfig

Shielded Instance options.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ShieldedInstanceConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBootDiskKmsKey

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBootDiskKmsKey

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>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getImageType

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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setImageType

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInsecureKubeletReadonlyPortEnabled

DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### hasInsecureKubeletReadonlyPortEnabled

### clearInsecureKubeletReadonlyPortEnabled

### setInsecureKubeletReadonlyPortEnabled

DEPRECATED. Use NodePoolAutoConfig.NodeKubeletConfig instead.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |