diff --git a/AiPlatform/metadata/V1/Endpoint.php b/AiPlatform/metadata/V1/Endpoint.php index 7656844790d..cbcb49763cf 100644 Binary files a/AiPlatform/metadata/V1/Endpoint.php and b/AiPlatform/metadata/V1/Endpoint.php differ diff --git a/AiPlatform/metadata/V1/MachineResources.php b/AiPlatform/metadata/V1/MachineResources.php index 30228054f73..6d83334475a 100644 --- a/AiPlatform/metadata/V1/MachineResources.php +++ b/AiPlatform/metadata/V1/MachineResources.php @@ -19,18 +19,19 @@ public static function initOnce() { \GPBMetadata\Google\Cloud\Aiplatform\V1\ReservationAffinity::initOnce(); $pool->internalAddGeneratedFile( ' - + 2google/cloud/aiplatform/v1/machine_resources.protogoogle.cloud.aiplatform.v11google/cloud/aiplatform/v1/accelerator_type.proto5google/cloud/aiplatform/v1/reservation_affinity.proto" MachineSpec machine_type ( BAJ accelerator_type (2+.google.cloud.aiplatform.v1.AcceleratorTypeBA accelerator_count ( tpu_topology ( BAU -reservation_affinity ( 2/.google.cloud.aiplatform.v1.ReservationAffinityBAA" +reservation_affinity ( 2/.google.cloud.aiplatform.v1.ReservationAffinityBAA" DedicatedResourcesE machine_spec ( 2\'.google.cloud.aiplatform.v1.MachineSpecBAA! min_replica_count (BAA -max_replica_count (BAX +max_replica_count (BA# +required_replica_count (BAX autoscaling_metric_specs ( 21.google.cloud.aiplatform.v1.AutoscalingMetricSpecBA spot (BA"T AutomaticResources diff --git a/AiPlatform/src/V1/DedicatedResources.php b/AiPlatform/src/V1/DedicatedResources.php index 9e4bbc97a1f..8dc7bf51244 100644 --- a/AiPlatform/src/V1/DedicatedResources.php +++ b/AiPlatform/src/V1/DedicatedResources.php @@ -52,6 +52,17 @@ class DedicatedResources extends \Google\Protobuf\Internal\Message * Generated from protobuf field int32 max_replica_count = 3 [(.google.api.field_behavior) = IMMUTABLE]; */ protected $max_replica_count = 0; + /** + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + * + * Generated from protobuf field int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $required_replica_count = 0; /** * Immutable. The metric specifications that overrides a resource * utilization metric (CPU utilization, accelerator's duty cycle, and so on) @@ -115,6 +126,13 @@ class DedicatedResources extends \Google\Protobuf\Internal\Message * quotas. Specifically, you will be charged for (max_replica_count * * number of cores in the selected machine type) and (max_replica_count * * number of GPUs per replica in the selected machine type). + * @type int $required_replica_count + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. * @type array<\Google\Cloud\AIPlatform\V1\AutoscalingMetricSpec>|\Google\Protobuf\Internal\RepeatedField $autoscaling_metric_specs * Immutable. The metric specifications that overrides a resource * utilization metric (CPU utilization, accelerator's duty cycle, and so on) @@ -270,6 +288,42 @@ public function setMaxReplicaCount($var) return $this; } + /** + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + * + * Generated from protobuf field int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getRequiredReplicaCount() + { + return $this->required_replica_count; + } + + /** + * Optional. Number of required available replicas for the deployment to + * succeed. This field is only needed when partial model deployment/mutation + * is desired. If set, the model deploy/mutate operation will succeed once + * available_replica_count reaches required_replica_count, and the rest of + * the replicas will be retried. If not set, the default + * required_replica_count will be min_replica_count. + * + * Generated from protobuf field int32 required_replica_count = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setRequiredReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->required_replica_count = $var; + + return $this; + } + /** * Immutable. The metric specifications that overrides a resource * utilization metric (CPU utilization, accelerator's duty cycle, and so on) diff --git a/AiPlatform/src/V1/DeployedModel.php b/AiPlatform/src/V1/DeployedModel.php index 2d30eb47c1b..3f33119f03f 100644 --- a/AiPlatform/src/V1/DeployedModel.php +++ b/AiPlatform/src/V1/DeployedModel.php @@ -136,6 +136,12 @@ class DeployedModel extends \Google\Protobuf\Internal\Message * Generated from protobuf field .google.cloud.aiplatform.v1.FasterDeploymentConfig faster_deployment_config = 23; */ protected $faster_deployment_config = null; + /** + * Output only. Runtime status of the deployed model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; /** * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. @@ -234,6 +240,8 @@ class DeployedModel extends \Google\Protobuf\Internal\Message * [network][google.cloud.aiplatform.v1.Endpoint.network] is configured. * @type \Google\Cloud\AIPlatform\V1\FasterDeploymentConfig $faster_deployment_config * Configuration for faster model deployment. + * @type \Google\Cloud\AIPlatform\V1\DeployedModel\Status $status + * Output only. Runtime status of the deployed model. * @type array|\Google\Protobuf\Internal\MapField $system_labels * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. @@ -795,6 +803,42 @@ public function setFasterDeploymentConfig($var) return $this; } + /** + * Output only. Runtime status of the deployed model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Cloud\AIPlatform\V1\DeployedModel\Status|null + */ + public function getStatus() + { + return $this->status; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. Runtime status of the deployed model. + * + * Generated from protobuf field .google.cloud.aiplatform.v1.DeployedModel.Status status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Cloud\AIPlatform\V1\DeployedModel\Status $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkMessage($var, \Google\Cloud\AIPlatform\V1\DeployedModel\Status::class); + $this->status = $var; + + return $this; + } + /** * System labels to apply to Model Garden deployments. * System labels are managed by Google for internal use only. diff --git a/AiPlatform/src/V1/DeployedModel/Status.php b/AiPlatform/src/V1/DeployedModel/Status.php new file mode 100644 index 00000000000..67ad644fe40 --- /dev/null +++ b/AiPlatform/src/V1/DeployedModel/Status.php @@ -0,0 +1,146 @@ +google.cloud.aiplatform.v1.DeployedModel.Status + */ +class Status extends \Google\Protobuf\Internal\Message +{ + /** + * Output only. The latest deployed model's status message (if any). + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $message = ''; + /** + * Output only. The time at which the status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $last_update_time = null; + /** + * Output only. The number of available replicas of the deployed model. + * + * Generated from protobuf field int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $available_replica_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * Output only. The latest deployed model's status message (if any). + * @type \Google\Protobuf\Timestamp $last_update_time + * Output only. The time at which the status was last updated. + * @type int $available_replica_count + * Output only. The number of available replicas of the deployed model. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Cloud\Aiplatform\V1\Endpoint::initOnce(); + parent::__construct($data); + } + + /** + * Output only. The latest deployed model's status message (if any). + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Output only. The latest deployed model's status message (if any). + * + * Generated from protobuf field string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Output only. The time at which the status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getLastUpdateTime() + { + return $this->last_update_time; + } + + public function hasLastUpdateTime() + { + return isset($this->last_update_time); + } + + public function clearLastUpdateTime() + { + unset($this->last_update_time); + } + + /** + * Output only. The time at which the status was last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp last_update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setLastUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->last_update_time = $var; + + return $this; + } + + /** + * Output only. The number of available replicas of the deployed model. + * + * Generated from protobuf field int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAvailableReplicaCount() + { + return $this->available_replica_count; + } + + /** + * Output only. The number of available replicas of the deployed model. + * + * Generated from protobuf field int32 available_replica_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAvailableReplicaCount($var) + { + GPBUtil::checkInt32($var); + $this->available_replica_count = $var; + + return $this; + } + +} + +