diff --git a/src/VMwareEngine/EncryptionConfig.php b/src/VMwareEngine/EncryptionConfig.php new file mode 100644 index 0000000000..b5381d6bc2 --- /dev/null +++ b/src/VMwareEngine/EncryptionConfig.php @@ -0,0 +1,98 @@ +cryptoKeyName = $cryptoKeyName; + } + /** + * @return string + */ + public function getCryptoKeyName() + { + return $this->cryptoKeyName; + } + /** + * Required. The encryption type of the private cloud. + * + * Accepted values: TYPE_UNSPECIFIED, CMEK, LEGACY_CMEK, OTHER + * + * @param self::TYPE_* $type + */ + public function setType($type) + { + $this->type = $type; + } + /** + * @return self::TYPE_* + */ + public function getType() + { + return $this->type; + } +} + +// Adding a class alias for backwards compatibility with the previous class name. +class_alias(EncryptionConfig::class, 'Google_Service_VMwareEngine_EncryptionConfig'); diff --git a/src/VMwareEngine/PrivateCloud.php b/src/VMwareEngine/PrivateCloud.php index 5caab27604..4c1da39bb8 100644 --- a/src/VMwareEngine/PrivateCloud.php +++ b/src/VMwareEngine/PrivateCloud.php @@ -83,6 +83,8 @@ class PrivateCloud extends \Google\Model * @var string */ public $description; + protected $encryptionConfigType = EncryptionConfig::class; + protected $encryptionConfigDataType = ''; /** * Output only. Time when the resource will be irreversibly deleted. * @@ -182,6 +184,23 @@ public function getDescription() { return $this->description; } + /** + * Optional. Encryption configuration for the private cloud. If this field is + * left unspecified, Google default encryption is used. + * + * @param EncryptionConfig $encryptionConfig + */ + public function setEncryptionConfig(EncryptionConfig $encryptionConfig) + { + $this->encryptionConfig = $encryptionConfig; + } + /** + * @return EncryptionConfig + */ + public function getEncryptionConfig() + { + return $this->encryptionConfig; + } /** * Output only. Time when the resource will be irreversibly deleted. *