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

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 https://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.

getOauthScopes

Scopes that are used by NAP when creating node pools.

Generated from protobuf field repeated string oauth_scopes = 1;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setOauthScopes

Scopes that are used by NAP when creating node pools.

Generated from protobuf field repeated string oauth_scopes = 1;

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getServiceAccount

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

Generated from protobuf field string service_account = 2;

Returns
TypeDescription
string

setServiceAccount

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

Generated from protobuf field string service_account = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getUpgradeSettings

Specifies the upgrade settings for NAP created node pools

Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;

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

hasUpgradeSettings

clearUpgradeSettings

setUpgradeSettings

Specifies the upgrade settings for NAP created node pools

Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3;

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

getManagement

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

Generated from protobuf field .google.container.v1.NodeManagement management = 4;

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

hasManagement

clearManagement

setManagement

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

Generated from protobuf field .google.container.v1.NodeManagement management = 4;

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 https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.

Generated from protobuf field string min_cpu_platform = 5 [deprecated = true];

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 https://cloud.google.com/requested-min-cpu-platform label selector on the pod. To unset the min cpu platform field pass "automatic" as field value.

Generated from protobuf field string min_cpu_platform = 5 [deprecated = true];

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.

Generated from protobuf field int32 disk_size_gb = 6;

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.

Generated from protobuf field int32 disk_size_gb = 6;

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'

Generated from protobuf field string disk_type = 7;

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'

Generated from protobuf field string disk_type = 7;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getShieldedInstanceConfig

Shielded Instance options.

Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;

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

hasShieldedInstanceConfig

clearShieldedInstanceConfig

setShieldedInstanceConfig

Shielded Instance options.

Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8;

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

Generated from protobuf field string boot_disk_kms_key = 9;

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

Generated from protobuf field string boot_disk_kms_key = 9;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getImageType

The image type to use for NAP created node.

Generated from protobuf field string image_type = 10;

Returns
TypeDescription
string

setImageType

The image type to use for NAP created node.

Generated from protobuf field string image_type = 10;

Parameter
NameDescription
var string
Returns
TypeDescription
$this