Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions src/Dataproc/ConfidentialInstanceConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,32 @@

class ConfidentialInstanceConfig extends \Google\Model
{
/**
* Confidential Instance Type is not specified.
*/
public const CONFIDENTIAL_INSTANCE_TYPE_CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 'CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED';
/**
* AMD Secure Encrypted Virtualization (https://cloud.google.com/confidential-
* computing/confidential-vm/docs/confidential-vm-overview#amd_sev)
*/
public const CONFIDENTIAL_INSTANCE_TYPE_SEV = 'SEV';
/**
* AMD Secure Encrypted Virtualization-Secure Nested Paging
* (https://cloud.google.com/confidential-computing/confidential-
* vm/docs/confidential-vm-overview#amd_sev-snp)
*/
public const CONFIDENTIAL_INSTANCE_TYPE_SEV_SNP = 'SEV_SNP';
/**
* Intel Trust Domain Extensions (https://cloud.google.com/confidential-
* computing/confidential-vm/docs/confidential-vm-overview#intel_tdx)
*/
public const CONFIDENTIAL_INSTANCE_TYPE_TDX = 'TDX';
/**
* Optional. Defines the type of Confidential Compute technology to use.
*
* @var string
*/
public $confidentialInstanceType;
/**
* Optional. Deprecated: Use 'confidential_instance_type' instead. Defines
* whether the instance should have confidential compute enabled.
Expand All @@ -28,6 +54,24 @@ class ConfidentialInstanceConfig extends \Google\Model
*/
public $enableConfidentialCompute;

/**
* Optional. Defines the type of Confidential Compute technology to use.
*
* Accepted values: CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED, SEV, SEV_SNP, TDX
*
* @param self::CONFIDENTIAL_INSTANCE_TYPE_* $confidentialInstanceType
*/
public function setConfidentialInstanceType($confidentialInstanceType)
{
$this->confidentialInstanceType = $confidentialInstanceType;
}
/**
* @return self::CONFIDENTIAL_INSTANCE_TYPE_*
*/
public function getConfidentialInstanceType()
{
return $this->confidentialInstanceType;
}
/**
* Optional. Deprecated: Use 'confidential_instance_type' instead. Defines
* whether the instance should have confidential compute enabled.
Expand Down
2 changes: 1 addition & 1 deletion src/Dataproc/GceClusterConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function getAutoZoneExcludeZoneUris()
}
/**
* Optional. Confidential Instance Config for clusters using Confidential VMs
* (https://cloud.google.com/compute/confidential-vm/docs).
* (https://cloud.google.com/confidential-computing/confidential-vm/docs).
*
* @param ConfidentialInstanceConfig $confidentialInstanceConfig
*/
Expand Down
32 changes: 32 additions & 0 deletions src/Dataproc/GkeNodeConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ class GkeNodeConfig extends \Google\Collection
* @var bool
*/
public $preemptible;
/**
* Optional. Specifies the service account
* (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-iam) to
* be used by the node pools. Specify the email address of the service account
* or its full resource name.Format:
* projects/{project}/serviceAccounts/{service_account_email} or
* {service_account_email}.
*
* @var string
*/
public $serviceAccount;
/**
* Optional. Whether the nodes are created as Spot VM instances
* (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the
Expand Down Expand Up @@ -193,6 +204,27 @@ public function getPreemptible()
{
return $this->preemptible;
}
/**
* Optional. Specifies the service account
* (https://cloud.google.com/dataproc/docs/guides/dpgke/dataproc-gke-iam) to
* be used by the node pools. Specify the email address of the service account
* or its full resource name.Format:
* projects/{project}/serviceAccounts/{service_account_email} or
* {service_account_email}.
*
* @param string $serviceAccount
*/
public function setServiceAccount($serviceAccount)
{
$this->serviceAccount = $serviceAccount;
}
/**
* @return string
*/
public function getServiceAccount()
{
return $this->serviceAccount;
}
/**
* Optional. Whether the nodes are created as Spot VM instances
* (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the
Expand Down
Loading