Skip to content

Commit 0ea9003

Browse files
feat: [AiPlatform] add DeploymentStage for CreateEndpointOperationMetadata and DeployModelOperationMetadata (#8480)
feat: Added the ability to use the Model Armor service for content sanitization PiperOrigin-RevId: 788957149 Source-Link: googleapis/googleapis@2d4fbff Source-Link: googleapis/googleapis-gen@fc4a4a0 Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiZmM0YTRhMDk5NTdiOGUwODA4YmJlNzBjZWJjNGQzMGRmY2NiMTBmNCJ9 feat: add enable_datapoint_upsert_logging to google.cloud.aiplatform.v1.DeployedIndex PiperOrigin-RevId: 789091292 Source-Link: googleapis/googleapis@abf48aa Source-Link: googleapis/googleapis-gen@06f6925 Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiMDZmNjkyNWFkZTdkOGQwZWJkMjkxMzdlZTNiZTI0NTMyZWQ4OGQzNyJ9 * feat: add `DeploymentStage` for CreateEndpointOperationMetadata and DeployModelOperationMetadata docs: update MutateDeployedModel documentation PiperOrigin-RevId: 789150946 Source-Link: googleapis/googleapis@0e31cfe Source-Link: googleapis/googleapis-gen@3d4256d Copy-Tag: eyJwIjoiQWlQbGF0Zm9ybS8uT3dsQm90LnlhbWwiLCJoIjoiM2Q0MjU2ZGM5ZTNjN2VhODUyNjBmNWJjYTZlOWE2YWE4ZDM3YzU3NSJ9
1 parent 9942122 commit 0ea9003

18 files changed

Lines changed: 458 additions & 15 deletions

AiPlatform/metadata/V1/Content.php

370 Bytes
Binary file not shown.
1.1 KB
Binary file not shown.

AiPlatform/metadata/V1/EndpointService.php

Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AiPlatform/metadata/V1/IndexEndpoint.php

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
96 Bytes
Binary file not shown.

AiPlatform/samples/V1/EndpointServiceClient/mutate_deployed_model.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434

3535
/**
3636
* Updates an existing deployed model. Updatable fields include
37-
* `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`,
38-
* `disable_container_logging` (v1 only), and `enable_container_logging`
39-
* (v1beta1 only).
37+
* `min_replica_count`, `max_replica_count`, `required_replica_count`,
38+
* `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and
39+
* `enable_container_logging` (v1beta1 only).
4040
*
4141
* @param string $formattedEndpoint The name of the Endpoint resource into which to mutate a
4242
* DeployedModel. Format:

AiPlatform/src/V1/Candidate/FinishReason.php

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AiPlatform/src/V1/Client/EndpointServiceClient.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -605,9 +605,9 @@ public function listEndpoints(ListEndpointsRequest $request, array $callOptions
605605

606606
/**
607607
* Updates an existing deployed model. Updatable fields include
608-
* `min_replica_count`, `max_replica_count`, `autoscaling_metric_specs`,
609-
* `disable_container_logging` (v1 only), and `enable_container_logging`
610-
* (v1beta1 only).
608+
* `min_replica_count`, `max_replica_count`, `required_replica_count`,
609+
* `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and
610+
* `enable_container_logging` (v1beta1 only).
611611
*
612612
* The async variant is {@see EndpointServiceClient::mutateDeployedModelAsync()} .
613613
*

AiPlatform/src/V1/Client/PredictionServiceClient.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,25 @@ public static function ragCorpusName(string $project, string $location, string $
234234
]);
235235
}
236236

237+
/**
238+
* Formats a string containing the fully-qualified path to represent a template
239+
* resource.
240+
*
241+
* @param string $project
242+
* @param string $location
243+
* @param string $template
244+
*
245+
* @return string The formatted template resource.
246+
*/
247+
public static function templateName(string $project, string $location, string $template): string
248+
{
249+
return self::getPathTemplate('template')->render([
250+
'project' => $project,
251+
'location' => $location,
252+
'template' => $template,
253+
]);
254+
}
255+
237256
/**
238257
* Parses a formatted name string and returns an associative array of the components in the name.
239258
* The following name formats are supported:
@@ -243,6 +262,7 @@ public static function ragCorpusName(string $project, string $location, string $
243262
* - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint}
244263
* - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model}
245264
* - ragCorpus: projects/{project}/locations/{location}/ragCorpora/{rag_corpus}
265+
* - template: projects/{project}/locations/{location}/templates/{template}
246266
*
247267
* The optional $template argument can be supplied to specify a particular pattern,
248268
* and must match one of the templates listed above. If no $template argument is

AiPlatform/src/V1/CreateEndpointOperationMetadata.php

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)