diff --git a/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php b/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php index 3bca763a961b..fcdec075b285 100644 Binary files a/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php and b/Spanner/metadata/Admin/Instance/V1/SpannerInstanceAdmin.php differ diff --git a/Spanner/src/Admin/Instance/V1/InstancePartition.php b/Spanner/src/Admin/Instance/V1/InstancePartition.php index 31a36ed700fc..429a99fb976c 100644 --- a/Spanner/src/Admin/Instance/V1/InstancePartition.php +++ b/Spanner/src/Admin/Instance/V1/InstancePartition.php @@ -43,6 +43,15 @@ class InstancePartition extends \Google\Protobuf\Internal\Message * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; */ protected $display_name = ''; + /** + * Optional. The autoscaling configuration. Autoscaling is enabled if this + * field is set. When autoscaling is enabled, fields in compute_capacity are + * treated as OUTPUT_ONLY fields and reflect the current compute capacity + * allocated to the instance partition. + * + * Generated from protobuf field .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $autoscaling_config = null; /** * Output only. The current instance partition state. * @@ -132,6 +141,11 @@ class InstancePartition extends \Google\Protobuf\Internal\Message * of processing units allocated to the instance partition. * This might be zero in API responses for instance partitions that are not * yet in the `READY` state. + * @type \Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig $autoscaling_config + * Optional. The autoscaling configuration. Autoscaling is enabled if this + * field is set. When autoscaling is enabled, fields in compute_capacity are + * treated as OUTPUT_ONLY fields and reflect the current compute capacity + * allocated to the instance partition. * @type int $state * Output only. The current instance partition state. * @type \Google\Protobuf\Timestamp $create_time @@ -342,6 +356,48 @@ public function setProcessingUnits($var) return $this; } + /** + * Optional. The autoscaling configuration. Autoscaling is enabled if this + * field is set. When autoscaling is enabled, fields in compute_capacity are + * treated as OUTPUT_ONLY fields and reflect the current compute capacity + * allocated to the instance partition. + * + * Generated from protobuf field .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig|null + */ + public function getAutoscalingConfig() + { + return $this->autoscaling_config; + } + + public function hasAutoscalingConfig() + { + return isset($this->autoscaling_config); + } + + public function clearAutoscalingConfig() + { + unset($this->autoscaling_config); + } + + /** + * Optional. The autoscaling configuration. Autoscaling is enabled if this + * field is set. When autoscaling is enabled, fields in compute_capacity are + * treated as OUTPUT_ONLY fields and reflect the current compute capacity + * allocated to the instance partition. + * + * Generated from protobuf field .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig $var + * @return $this + */ + public function setAutoscalingConfig($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\Spanner\Admin\Instance\V1\AutoscalingConfig::class); + $this->autoscaling_config = $var; + + return $this; + } + /** * Output only. The current instance partition state. *