diff --git a/src/Dataproc/ConfidentialInstanceConfig.php b/src/Dataproc/ConfidentialInstanceConfig.php index a9e8ba7c9b..e6eb0c3e1d 100644 --- a/src/Dataproc/ConfidentialInstanceConfig.php +++ b/src/Dataproc/ConfidentialInstanceConfig.php @@ -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. @@ -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. diff --git a/src/Dataproc/GceClusterConfig.php b/src/Dataproc/GceClusterConfig.php index 7b9644df53..925c75fe8a 100644 --- a/src/Dataproc/GceClusterConfig.php +++ b/src/Dataproc/GceClusterConfig.php @@ -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 */ diff --git a/src/Dataproc/GkeNodeConfig.php b/src/Dataproc/GkeNodeConfig.php index b02cae6b5f..ba2898a928 100644 --- a/src/Dataproc/GkeNodeConfig.php +++ b/src/Dataproc/GkeNodeConfig.php @@ -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 @@ -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