Google Cloud Container V1 Client - Class AutoprovisioningNodePoolDefaults (1.13.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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ oauth_scopes array

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 Google\Cloud\Container\V1\NodePool\UpgradeSettings

Specifies the upgrade settings for NAP created node pools

↳ management Google\Cloud\Container\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. 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 Google\Cloud\Container\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.

getOauthScopes

Scopes that are used by NAP when creating node pools.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOauthScopes

Scopes that are used by NAP when creating node pools.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getServiceAccount

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

Returns
TypeDescription
string

setServiceAccount

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpgradeSettings

Specifies the upgrade settings for NAP created node pools

Returns
TypeDescription
Google\Cloud\Container\V1\NodePool\UpgradeSettings|null

hasUpgradeSettings

clearUpgradeSettings

setUpgradeSettings

Specifies the upgrade settings for NAP created node pools

Parameter
NameDescription
var Google\Cloud\Container\V1\NodePool\UpgradeSettings
Returns
TypeDescription
$this

getManagement

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

Returns
TypeDescription
Google\Cloud\Container\V1\NodeManagement|null

hasManagement

clearManagement

setManagement

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

Parameter
NameDescription
var Google\Cloud\Container\V1\NodeManagement
Returns
TypeDescription
$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. 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
TypeDescription
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. 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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this

getShieldedInstanceConfig

Shielded Instance options.

Returns
TypeDescription
Google\Cloud\Container\V1\ShieldedInstanceConfig|null

hasShieldedInstanceConfig

clearShieldedInstanceConfig

setShieldedInstanceConfig

Shielded Instance options.

Parameter
NameDescription
var Google\Cloud\Container\V1\ShieldedInstanceConfig
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$this