diff --git a/Config/metadata/V1/Config.php b/Config/metadata/V1/Config.php
index 60d2b172d494..87d54d274f6e 100644
Binary files a/Config/metadata/V1/Config.php and b/Config/metadata/V1/Config.php differ
diff --git a/Config/src/V1/Deployment.php b/Config/src/V1/Deployment.php
index d5297bcbd612..fab01d82f4b0 100644
--- a/Config/src/V1/Deployment.php
+++ b/Config/src/V1/Deployment.php
@@ -172,6 +172,15 @@ class Deployment extends \Google\Protobuf\Internal\Message
* Generated from protobuf field .google.cloud.config.v1.QuotaValidation quota_validation = 23 [(.google.api.field_behavior) = OPTIONAL];
*/
protected $quota_validation = 0;
+ /**
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools
+ * identify deployments during automation. See
+ * https://google.aip.dev/148#annotations for details on format and size
+ * limitations.
+ *
+ * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ private $annotations;
protected $blueprint;
/**
@@ -255,6 +264,11 @@ class Deployment extends \Google\Protobuf\Internal\Message
* Optional. Input to control quota checks for resources in terraform
* configuration files. There are limited resources on which quota validation
* applies.
+ * @type array|\Google\Protobuf\Internal\MapField $annotations
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools
+ * identify deployments during automation. See
+ * https://google.aip.dev/148#annotations for details on format and size
+ * limitations.
* }
*/
public function __construct($data = NULL) {
@@ -981,6 +995,38 @@ public function setQuotaValidation($var)
return $this;
}
+ /**
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools
+ * identify deployments during automation. See
+ * https://google.aip.dev/148#annotations for details on format and size
+ * limitations.
+ *
+ * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL];
+ * @return \Google\Protobuf\Internal\MapField
+ */
+ public function getAnnotations()
+ {
+ return $this->annotations;
+ }
+
+ /**
+ * Optional. Arbitrary key-value metadata storage e.g. to help client tools
+ * identify deployments during automation. See
+ * https://google.aip.dev/148#annotations for details on format and size
+ * limitations.
+ *
+ * Generated from protobuf field map annotations = 24 [(.google.api.field_behavior) = OPTIONAL];
+ * @param array|\Google\Protobuf\Internal\MapField $var
+ * @return $this
+ */
+ public function setAnnotations($var)
+ {
+ $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
+ $this->annotations = $arr;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Config/src/V1/Preview.php b/Config/src/V1/Preview.php
index e2ee4206c55c..4ad58204222f 100644
--- a/Config/src/V1/Preview.php
+++ b/Config/src/V1/Preview.php
@@ -137,6 +137,20 @@ class Preview extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string logs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
*/
protected $logs = '';
+ /**
+ * Output only. The current Terraform version set on the preview.
+ * It is in the format of "Major.Minor.Patch", for example, "1.3.10".
+ *
+ * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ */
+ protected $tf_version = '';
+ /**
+ * Optional. The user-specified Terraform version constraint.
+ * Example: "=1.3.10".
+ *
+ * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $tf_version_constraint = null;
protected $blueprint;
/**
@@ -203,6 +217,12 @@ class Preview extends \Google\Protobuf\Internal\Message
* Output only. Artifacts from preview.
* @type string $logs
* Output only. Location of preview logs in `gs://{bucket}/{object}` format.
+ * @type string $tf_version
+ * Output only. The current Terraform version set on the preview.
+ * It is in the format of "Major.Minor.Patch", for example, "1.3.10".
+ * @type string $tf_version_constraint
+ * Optional. The user-specified Terraform version constraint.
+ * Example: "=1.3.10".
* }
*/
public function __construct($data = NULL) {
@@ -755,6 +775,72 @@ public function setLogs($var)
return $this;
}
+ /**
+ * Output only. The current Terraform version set on the preview.
+ * It is in the format of "Major.Minor.Patch", for example, "1.3.10".
+ *
+ * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @return string
+ */
+ public function getTfVersion()
+ {
+ return $this->tf_version;
+ }
+
+ /**
+ * Output only. The current Terraform version set on the preview.
+ * It is in the format of "Major.Minor.Patch", for example, "1.3.10".
+ *
+ * Generated from protobuf field string tf_version = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * @param string $var
+ * @return $this
+ */
+ public function setTfVersion($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->tf_version = $var;
+
+ return $this;
+ }
+
+ /**
+ * Optional. The user-specified Terraform version constraint.
+ * Example: "=1.3.10".
+ *
+ * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL];
+ * @return string
+ */
+ public function getTfVersionConstraint()
+ {
+ return isset($this->tf_version_constraint) ? $this->tf_version_constraint : '';
+ }
+
+ public function hasTfVersionConstraint()
+ {
+ return isset($this->tf_version_constraint);
+ }
+
+ public function clearTfVersionConstraint()
+ {
+ unset($this->tf_version_constraint);
+ }
+
+ /**
+ * Optional. The user-specified Terraform version constraint.
+ * Example: "=1.3.10".
+ *
+ * Generated from protobuf field optional string tf_version_constraint = 19 [(.google.api.field_behavior) = OPTIONAL];
+ * @param string $var
+ * @return $this
+ */
+ public function setTfVersionConstraint($var)
+ {
+ GPBUtil::checkString($var, True);
+ $this->tf_version_constraint = $var;
+
+ return $this;
+ }
+
/**
* @return string
*/
diff --git a/Config/tests/Unit/V1/Client/ConfigClientTest.php b/Config/tests/Unit/V1/Client/ConfigClientTest.php
index d306b73b3ddd..e0098efe69a6 100644
--- a/Config/tests/Unit/V1/Client/ConfigClientTest.php
+++ b/Config/tests/Unit/V1/Client/ConfigClientTest.php
@@ -299,6 +299,8 @@ public function createPreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
+ $tfVersion = 'tfVersion1712341003';
+ $tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name);
$expectedResponse->setDeployment($deployment);
@@ -308,6 +310,8 @@ public function createPreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
+ $expectedResponse->setTfVersion($tfVersion);
+ $expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
@@ -587,6 +591,8 @@ public function deletePreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
+ $tfVersion = 'tfVersion1712341003';
+ $tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name2);
$expectedResponse->setDeployment($deployment);
@@ -596,6 +602,8 @@ public function deletePreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
+ $expectedResponse->setTfVersion($tfVersion);
+ $expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$anyResponse = new Any();
$anyResponse->setValue($expectedResponse->serializeToString());
$completeOperation = new Operation();
@@ -1132,6 +1140,8 @@ public function getPreviewTest()
$build = 'build94094958';
$errorLogs = 'errorLogs1635955078';
$logs = 'logs3327407';
+ $tfVersion = 'tfVersion1712341003';
+ $tfVersionConstraint = 'tfVersionConstraint594495121';
$expectedResponse = new Preview();
$expectedResponse->setName($name2);
$expectedResponse->setDeployment($deployment);
@@ -1141,6 +1151,8 @@ public function getPreviewTest()
$expectedResponse->setBuild($build);
$expectedResponse->setErrorLogs($errorLogs);
$expectedResponse->setLogs($logs);
+ $expectedResponse->setTfVersion($tfVersion);
+ $expectedResponse->setTfVersionConstraint($tfVersionConstraint);
$transport->addResponse($expectedResponse);
// Mock request
$formattedName = $gapicClient->previewName('[PROJECT]', '[LOCATION]', '[PREVIEW]');