From 7edadba234229f1d208b493d40bbb5fbb8c5a02f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:25:54 -0700 Subject: [PATCH] feat: Adding autoscaling settings (#7531) PiperOrigin-RevId: 653054299 Source-Link: https://github.com/googleapis/googleapis/commit/db2ac7a5afc0d859b102f2334abda6761a0ab62d Source-Link: https://github.com/googleapis/googleapis-gen/commit/cc98715e6e4556b43fb43758858309decdb387a1 Copy-Tag: eyJwIjoiVm13YXJlRW5naW5lLy5Pd2xCb3QueWFtbCIsImgiOiJjYzk4NzE1ZTZlNDU1NmI0M2ZiNDM3NTg4NTgzMDlkZWNkYjM4N2ExIn0= Co-authored-by: Brent Shaffer --- VmwareEngine/metadata/V1/Vmwareengine.php | Bin 34474 -> 34481 bytes .../metadata/V1/VmwareengineResources.php | Bin 15275 -> 16539 bytes VmwareEngine/src/V1/AutoscalingSettings.php | 240 ++++++++++++++ .../AutoscalingSettings/AutoscalingPolicy.php | 303 ++++++++++++++++++ .../src/V1/AutoscalingSettings/Thresholds.php | 103 ++++++ VmwareEngine/src/V1/Cluster.php | 44 +++ VmwareEngine/src/V1/Hcx/State.php | 7 + .../src/V1/LoggingServer/Protocol.php | 21 ++ .../src/V1/NetworkPeering/PeerNetworkType.php | 7 + 9 files changed, 725 insertions(+) create mode 100644 VmwareEngine/src/V1/AutoscalingSettings.php create mode 100644 VmwareEngine/src/V1/AutoscalingSettings/AutoscalingPolicy.php create mode 100644 VmwareEngine/src/V1/AutoscalingSettings/Thresholds.php diff --git a/VmwareEngine/metadata/V1/Vmwareengine.php b/VmwareEngine/metadata/V1/Vmwareengine.php index 9bf8d73c54c535339072f01d2cca2012a6aad843..dc42348b2eabf2bd60e9c11feff4ac468ed8c0a7 100644 GIT binary patch delta 107 zcmV-x0F?i#jRLWa0NQX>MmPZ*XODVRUJ4Zj+$}B$K-Y NBa@p1AhX2<<$&SoCcppy delta 103 zcmV-t0GR)=jRLBT0SZR_X>N=!H)BR*;pxb2O@9Na-b&dp2_^YlqG@7_*rtr5 zRxxS?gHPKcJm265ZS<+O!gDgy`_qDRZ z1h~S@TzB@;#cU-WXhr?|?C%P2e{$bA=1t0dckU?ws}7&Lab8G6wk@`J)<3jbB0nGu z!hzMA*yL00e6E!OpPjeG9$0i%W=hUqK7S?yVWrxxuUFdjDA|F)%Un53C(O!Ar+gHBfSdnm`$L$?%|>zI;Gv4Xm|OUzypY&Zt1 zp9BoUyi9b6i16mXrXK!z3Y-KNDaA_}cWpi(Ja${w) z$^+F00{sP(p$p@a#TF5>>kPdM0{H~9su*ek0XCBr8aA_M8dC)Uu#>wVd6W1cIh($ diff --git a/VmwareEngine/src/V1/AutoscalingSettings.php b/VmwareEngine/src/V1/AutoscalingSettings.php new file mode 100644 index 000000000000..dfb01afca794 --- /dev/null +++ b/VmwareEngine/src/V1/AutoscalingSettings.php @@ -0,0 +1,240 @@ +google.cloud.vmwareengine.v1.AutoscalingSettings + */ +class AutoscalingSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The map with autoscaling policies applied to the cluster. + * The key is the identifier of the policy. + * It must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC + * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + * Currently there map must contain only one element + * that describes the autoscaling policy for compute nodes. + * + * Generated from protobuf field map autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + private $autoscaling_policies; + /** + * Optional. Minimum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $min_cluster_node_count = 0; + /** + * Optional. Maximum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $max_cluster_node_count = 0; + /** + * Optional. The minimum duration between consecutive autoscale operations. + * It starts once addition or removal of nodes is fully completed. + * Defaults to 30 minutes if not specified. Cool down period must be in whole + * minutes (for example, 30, 31, 50, 180 minutes). + * + * Generated from protobuf field .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cool_down_period = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\MapField $autoscaling_policies + * Required. The map with autoscaling policies applied to the cluster. + * The key is the identifier of the policy. + * It must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC + * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + * Currently there map must contain only one element + * that describes the autoscaling policy for compute nodes. + * @type int $min_cluster_node_count + * Optional. Minimum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * @type int $max_cluster_node_count + * Optional. Maximum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * @type \Google\Protobuf\Duration $cool_down_period + * Optional. The minimum duration between consecutive autoscale operations. + * It starts once addition or removal of nodes is fully completed. + * Defaults to 30 minutes if not specified. Cool down period must be in whole + * minutes (for example, 30, 31, 50, 180 minutes). + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Vmwareengine\V1\VmwareengineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The map with autoscaling policies applied to the cluster. + * The key is the identifier of the policy. + * It must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC + * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + * Currently there map must contain only one element + * that describes the autoscaling policy for compute nodes. + * + * Generated from protobuf field map autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Protobuf\Internal\MapField + */ + public function getAutoscalingPolicies() + { + return $this->autoscaling_policies; + } + + /** + * Required. The map with autoscaling policies applied to the cluster. + * The key is the identifier of the policy. + * It must meet the following requirements: + * * Only contains 1-63 alphanumeric characters and hyphens + * * Begins with an alphabetical character + * * Ends with a non-hyphen character + * * Not formatted as a UUID + * * Complies with [RFC + * 1034](https://datatracker.ietf.org/doc/html/rfc1034) (section 3.5) + * Currently there map must contain only one element + * that describes the autoscaling policy for compute nodes. + * + * Generated from protobuf field map autoscaling_policies = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param array|\Google\Protobuf\Internal\MapField $var + * @return $this + */ + public function setAutoscalingPolicies($var) + { + $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\AutoscalingPolicy::class); + $this->autoscaling_policies = $arr; + + return $this; + } + + /** + * Optional. Minimum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMinClusterNodeCount() + { + return $this->min_cluster_node_count; + } + + /** + * Optional. Minimum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 min_cluster_node_count = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMinClusterNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->min_cluster_node_count = $var; + + return $this; + } + + /** + * Optional. Maximum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getMaxClusterNodeCount() + { + return $this->max_cluster_node_count; + } + + /** + * Optional. Maximum number of nodes of any type in a cluster. + * If not specified the default limits apply. + * + * Generated from protobuf field int32 max_cluster_node_count = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setMaxClusterNodeCount($var) + { + GPBUtil::checkInt32($var); + $this->max_cluster_node_count = $var; + + return $this; + } + + /** + * Optional. The minimum duration between consecutive autoscale operations. + * It starts once addition or removal of nodes is fully completed. + * Defaults to 30 minutes if not specified. Cool down period must be in whole + * minutes (for example, 30, 31, 50, 180 minutes). + * + * Generated from protobuf field .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getCoolDownPeriod() + { + return $this->cool_down_period; + } + + public function hasCoolDownPeriod() + { + return isset($this->cool_down_period); + } + + public function clearCoolDownPeriod() + { + unset($this->cool_down_period); + } + + /** + * Optional. The minimum duration between consecutive autoscale operations. + * It starts once addition or removal of nodes is fully completed. + * Defaults to 30 minutes if not specified. Cool down period must be in whole + * minutes (for example, 30, 31, 50, 180 minutes). + * + * Generated from protobuf field .google.protobuf.Duration cool_down_period = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setCoolDownPeriod($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->cool_down_period = $var; + + return $this; + } + +} + diff --git a/VmwareEngine/src/V1/AutoscalingSettings/AutoscalingPolicy.php b/VmwareEngine/src/V1/AutoscalingSettings/AutoscalingPolicy.php new file mode 100644 index 000000000000..6c5d57e5ea40 --- /dev/null +++ b/VmwareEngine/src/V1/AutoscalingSettings/AutoscalingPolicy.php @@ -0,0 +1,303 @@ +google.cloud.vmwareengine.v1.AutoscalingSettings.AutoscalingPolicy + */ +class AutoscalingPolicy extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The canonical identifier of the node type to add or remove. + * Corresponds to the `NodeType`. + * + * Generated from protobuf field string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $node_type_id = ''; + /** + * Required. Number of nodes to add to a cluster during a scale-out + * operation. Must be divisible by 2 for stretched clusters. During a + * scale-in operation only one node (or 2 for stretched clusters) are + * removed in a single iteration. + * + * Generated from protobuf field int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scale_out_size = 0; + /** + * Optional. Utilization thresholds pertaining to CPU utilization. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $cpu_thresholds = null; + /** + * Optional. Utilization thresholds pertaining to amount of granted memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $granted_memory_thresholds = null; + /** + * Optional. Utilization thresholds pertaining to amount of consumed memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $consumed_memory_thresholds = null; + /** + * Optional. Utilization thresholds pertaining to amount of consumed + * storage. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $storage_thresholds = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $node_type_id + * Required. The canonical identifier of the node type to add or remove. + * Corresponds to the `NodeType`. + * @type int $scale_out_size + * Required. Number of nodes to add to a cluster during a scale-out + * operation. Must be divisible by 2 for stretched clusters. During a + * scale-in operation only one node (or 2 for stretched clusters) are + * removed in a single iteration. + * @type \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $cpu_thresholds + * Optional. Utilization thresholds pertaining to CPU utilization. + * @type \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $granted_memory_thresholds + * Optional. Utilization thresholds pertaining to amount of granted memory. + * @type \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $consumed_memory_thresholds + * Optional. Utilization thresholds pertaining to amount of consumed memory. + * @type \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $storage_thresholds + * Optional. Utilization thresholds pertaining to amount of consumed + * storage. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Vmwareengine\V1\VmwareengineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The canonical identifier of the node type to add or remove. + * Corresponds to the `NodeType`. + * + * Generated from protobuf field string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getNodeTypeId() + { + return $this->node_type_id; + } + + /** + * Required. The canonical identifier of the node type to add or remove. + * Corresponds to the `NodeType`. + * + * Generated from protobuf field string node_type_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setNodeTypeId($var) + { + GPBUtil::checkString($var, True); + $this->node_type_id = $var; + + return $this; + } + + /** + * Required. Number of nodes to add to a cluster during a scale-out + * operation. Must be divisible by 2 for stretched clusters. During a + * scale-in operation only one node (or 2 for stretched clusters) are + * removed in a single iteration. + * + * Generated from protobuf field int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getScaleOutSize() + { + return $this->scale_out_size; + } + + /** + * Required. Number of nodes to add to a cluster during a scale-out + * operation. Must be divisible by 2 for stretched clusters. During a + * scale-in operation only one node (or 2 for stretched clusters) are + * removed in a single iteration. + * + * Generated from protobuf field int32 scale_out_size = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setScaleOutSize($var) + { + GPBUtil::checkInt32($var); + $this->scale_out_size = $var; + + return $this; + } + + /** + * Optional. Utilization thresholds pertaining to CPU utilization. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null + */ + public function getCpuThresholds() + { + return $this->cpu_thresholds; + } + + public function hasCpuThresholds() + { + return isset($this->cpu_thresholds); + } + + public function clearCpuThresholds() + { + unset($this->cpu_thresholds); + } + + /** + * Optional. Utilization thresholds pertaining to CPU utilization. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds cpu_thresholds = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $var + * @return $this + */ + public function setCpuThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds::class); + $this->cpu_thresholds = $var; + + return $this; + } + + /** + * Optional. Utilization thresholds pertaining to amount of granted memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null + */ + public function getGrantedMemoryThresholds() + { + return $this->granted_memory_thresholds; + } + + public function hasGrantedMemoryThresholds() + { + return isset($this->granted_memory_thresholds); + } + + public function clearGrantedMemoryThresholds() + { + unset($this->granted_memory_thresholds); + } + + /** + * Optional. Utilization thresholds pertaining to amount of granted memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds granted_memory_thresholds = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $var + * @return $this + */ + public function setGrantedMemoryThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds::class); + $this->granted_memory_thresholds = $var; + + return $this; + } + + /** + * Optional. Utilization thresholds pertaining to amount of consumed memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null + */ + public function getConsumedMemoryThresholds() + { + return $this->consumed_memory_thresholds; + } + + public function hasConsumedMemoryThresholds() + { + return isset($this->consumed_memory_thresholds); + } + + public function clearConsumedMemoryThresholds() + { + unset($this->consumed_memory_thresholds); + } + + /** + * Optional. Utilization thresholds pertaining to amount of consumed memory. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds consumed_memory_thresholds = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $var + * @return $this + */ + public function setConsumedMemoryThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds::class); + $this->consumed_memory_thresholds = $var; + + return $this; + } + + /** + * Optional. Utilization thresholds pertaining to amount of consumed + * storage. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds|null + */ + public function getStorageThresholds() + { + return $this->storage_thresholds; + } + + public function hasStorageThresholds() + { + return isset($this->storage_thresholds); + } + + public function clearStorageThresholds() + { + unset($this->storage_thresholds); + } + + /** + * Optional. Utilization thresholds pertaining to amount of consumed + * storage. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds storage_thresholds = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds $var + * @return $this + */ + public function setStorageThresholds($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings\Thresholds::class); + $this->storage_thresholds = $var; + + return $this; + } + +} + + diff --git a/VmwareEngine/src/V1/AutoscalingSettings/Thresholds.php b/VmwareEngine/src/V1/AutoscalingSettings/Thresholds.php new file mode 100644 index 000000000000..044f61d2e0aa --- /dev/null +++ b/VmwareEngine/src/V1/AutoscalingSettings/Thresholds.php @@ -0,0 +1,103 @@ +google.cloud.vmwareengine.v1.AutoscalingSettings.Thresholds + */ +class Thresholds extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The utilization triggering the scale-out operation in percent. + * + * Generated from protobuf field int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scale_out = 0; + /** + * Required. The utilization triggering the scale-in operation in percent. + * + * Generated from protobuf field int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $scale_in = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $scale_out + * Required. The utilization triggering the scale-out operation in percent. + * @type int $scale_in + * Required. The utilization triggering the scale-in operation in percent. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Vmwareengine\V1\VmwareengineResources::initOnce(); + parent::__construct($data); + } + + /** + * Required. The utilization triggering the scale-out operation in percent. + * + * Generated from protobuf field int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getScaleOut() + { + return $this->scale_out; + } + + /** + * Required. The utilization triggering the scale-out operation in percent. + * + * Generated from protobuf field int32 scale_out = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setScaleOut($var) + { + GPBUtil::checkInt32($var); + $this->scale_out = $var; + + return $this; + } + + /** + * Required. The utilization triggering the scale-in operation in percent. + * + * Generated from protobuf field int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getScaleIn() + { + return $this->scale_in; + } + + /** + * Required. The utilization triggering the scale-in operation in percent. + * + * Generated from protobuf field int32 scale_in = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setScaleIn($var) + { + GPBUtil::checkInt32($var); + $this->scale_in = $var; + + return $this; + } + +} + + diff --git a/VmwareEngine/src/V1/Cluster.php b/VmwareEngine/src/V1/Cluster.php index 090566a8295d..c00a5b6ae2e1 100644 --- a/VmwareEngine/src/V1/Cluster.php +++ b/VmwareEngine/src/V1/Cluster.php @@ -51,6 +51,12 @@ class Cluster extends \Google\Protobuf\Internal\Message * Generated from protobuf field bool management = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $management = false; + /** + * Optional. Configuration of the autoscaling applied to this cluster. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $autoscaling_settings = null; /** * Output only. System-generated unique identifier for the resource. * @@ -94,6 +100,8 @@ class Cluster extends \Google\Protobuf\Internal\Message * Output only. True if the cluster is a management cluster; false otherwise. * There can only be one management cluster in a private cloud * and it has to be the first one. + * @type \Google\Cloud\VmwareEngine\V1\AutoscalingSettings $autoscaling_settings + * Optional. Configuration of the autoscaling applied to this cluster. * @type string $uid * Output only. System-generated unique identifier for the resource. * @type array|\Google\Protobuf\Internal\MapField $node_type_configs @@ -271,6 +279,42 @@ public function setManagement($var) return $this; } + /** + * Optional. Configuration of the autoscaling applied to this cluster. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Cloud\VmwareEngine\V1\AutoscalingSettings|null + */ + public function getAutoscalingSettings() + { + return $this->autoscaling_settings; + } + + public function hasAutoscalingSettings() + { + return isset($this->autoscaling_settings); + } + + public function clearAutoscalingSettings() + { + unset($this->autoscaling_settings); + } + + /** + * Optional. Configuration of the autoscaling applied to this cluster. + * + * Generated from protobuf field .google.cloud.vmwareengine.v1.AutoscalingSettings autoscaling_settings = 18 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Cloud\VmwareEngine\V1\AutoscalingSettings $var + * @return $this + */ + public function setAutoscalingSettings($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\VmwareEngine\V1\AutoscalingSettings::class); + $this->autoscaling_settings = $var; + + return $this; + } + /** * Output only. System-generated unique identifier for the resource. * diff --git a/VmwareEngine/src/V1/Hcx/State.php b/VmwareEngine/src/V1/Hcx/State.php index c425c64c2e83..f25d14bcffe0 100644 --- a/VmwareEngine/src/V1/Hcx/State.php +++ b/VmwareEngine/src/V1/Hcx/State.php @@ -31,11 +31,18 @@ class State * Generated from protobuf enum CREATING = 2; */ const CREATING = 2; + /** + * The appliance is being activated. + * + * Generated from protobuf enum ACTIVATING = 3; + */ + const ACTIVATING = 3; private static $valueToName = [ self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', self::ACTIVE => 'ACTIVE', self::CREATING => 'CREATING', + self::ACTIVATING => 'ACTIVATING', ]; public static function name($value) diff --git a/VmwareEngine/src/V1/LoggingServer/Protocol.php b/VmwareEngine/src/V1/LoggingServer/Protocol.php index bfb69b0142ea..c0718dcda485 100644 --- a/VmwareEngine/src/V1/LoggingServer/Protocol.php +++ b/VmwareEngine/src/V1/LoggingServer/Protocol.php @@ -32,11 +32,32 @@ class Protocol * Generated from protobuf enum TCP = 2; */ const TCP = 2; + /** + * TLS + * + * Generated from protobuf enum TLS = 3; + */ + const TLS = 3; + /** + * SSL + * + * Generated from protobuf enum SSL = 4; + */ + const SSL = 4; + /** + * RELP + * + * Generated from protobuf enum RELP = 5; + */ + const RELP = 5; private static $valueToName = [ self::PROTOCOL_UNSPECIFIED => 'PROTOCOL_UNSPECIFIED', self::UDP => 'UDP', self::TCP => 'TCP', + self::TLS => 'TLS', + self::SSL => 'SSL', + self::RELP => 'RELP', ]; public static function name($value) diff --git a/VmwareEngine/src/V1/NetworkPeering/PeerNetworkType.php b/VmwareEngine/src/V1/NetworkPeering/PeerNetworkType.php index b93fbf396297..05b745a25e3a 100644 --- a/VmwareEngine/src/V1/NetworkPeering/PeerNetworkType.php +++ b/VmwareEngine/src/V1/NetworkPeering/PeerNetworkType.php @@ -60,6 +60,12 @@ class PeerNetworkType * Generated from protobuf enum DELL_POWERSCALE = 6; */ const DELL_POWERSCALE = 6; + /** + * Peering connection used for connecting to Google Cloud NetApp Volumes. + * + * Generated from protobuf enum GOOGLE_CLOUD_NETAPP_VOLUMES = 7; + */ + const GOOGLE_CLOUD_NETAPP_VOLUMES = 7; private static $valueToName = [ self::PEER_NETWORK_TYPE_UNSPECIFIED => 'PEER_NETWORK_TYPE_UNSPECIFIED', @@ -69,6 +75,7 @@ class PeerNetworkType self::NETAPP_CLOUD_VOLUMES => 'NETAPP_CLOUD_VOLUMES', self::THIRD_PARTY_SERVICE => 'THIRD_PARTY_SERVICE', self::DELL_POWERSCALE => 'DELL_POWERSCALE', + self::GOOGLE_CLOUD_NETAPP_VOLUMES => 'GOOGLE_CLOUD_NETAPP_VOLUMES', ]; public static function name($value)