Skip to content

Commit 54236ee

Browse files
Google APIscopybara-github
authored andcommitted
feat: add option EndpointUserId and ModelUserId fields
feat: migrate dedicated endpoint to be enabled by default docs: A comment for field `dedicated_endpoint_enabled` in message `.google.cloud.aiplatform.v1.DeployRequest` is changed PiperOrigin-RevId: 793795027
1 parent 6d24fdd commit 54236ee

File tree

1 file changed

+49
-5
lines changed

1 file changed

+49
-5
lines changed

google/cloud/aiplatform/v1/model_garden_service.proto

Lines changed: 49 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ message DeployRequest {
133133
// deploying. If not set, the default container spec will be used.
134134
ModelContainerSpec container_spec = 5
135135
[(google.api.field_behavior) = OPTIONAL];
136+
137+
// Optional. The ID to use for the uploaded Model, which will become the
138+
// final component of the model resource name. When not provided, Vertex AI
139+
// will generate a value for this ID. When Model Registry model is provided,
140+
// this field will be ignored.
141+
//
142+
// This value may be up to 63 characters, and valid characters are
143+
// `[a-z0-9_-]`. The first character cannot be a number or hyphen.
144+
string model_user_id = 6 [(google.api.field_behavior) = OPTIONAL];
136145
}
137146

138147
// The endpoint config to use for the deployment.
@@ -141,14 +150,49 @@ message DeployRequest {
141150
// default name will be used.
142151
string endpoint_display_name = 1 [(google.api.field_behavior) = OPTIONAL];
143152

144-
// Optional. If true, the endpoint will be exposed through a dedicated
145-
// DNS [Endpoint.dedicated_endpoint_dns]. Your request to the dedicated DNS
146-
// will be isolated from other users' traffic and will have better
147-
// performance and reliability. Note: Once you enabled dedicated endpoint,
148-
// you won't be able to send request to the shared DNS
153+
// Optional. Deprecated. Use dedicated_endpoint_disabled instead.
154+
// If true, the endpoint will be exposed through a
155+
// dedicated DNS [Endpoint.dedicated_endpoint_dns]. Your request to the
156+
// dedicated DNS will be isolated from other users' traffic and will have
157+
// better performance and reliability. Note: Once you enabled dedicated
158+
// endpoint, you won't be able to send request to the shared DNS
149159
// {region}-aiplatform.googleapis.com. The limitations will be removed soon.
150160
bool dedicated_endpoint_enabled = 2
161+
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
162+
163+
// Optional. By default, if dedicated endpoint is enabled, the endpoint will
164+
// be exposed through a dedicated DNS [Endpoint.dedicated_endpoint_dns].
165+
// Your request to the dedicated DNS will be isolated from other users'
166+
// traffic and will have better performance and reliability. Note: Once you
167+
// enabled dedicated endpoint, you won't be able to send request to the
168+
// shared DNS {region}-aiplatform.googleapis.com. The limitations will be
169+
// removed soon.
170+
//
171+
// If this field is set to true, the dedicated endpoint will be disabled
172+
// and the deployed model will be exposed through the shared DNS
173+
// {region}-aiplatform.googleapis.com.
174+
bool dedicated_endpoint_disabled = 4
151175
[(google.api.field_behavior) = OPTIONAL];
176+
177+
// Optional. Immutable. The ID to use for endpoint, which will become the
178+
// final component of the endpoint resource name. If not provided, Vertex AI
179+
// will generate a value for this ID.
180+
//
181+
// If the first character is a letter, this value may be up to 63
182+
// characters, and valid characters are `[a-z0-9-]`. The last character must
183+
// be a letter or number.
184+
//
185+
// If the first character is a number, this value may be up to 9 characters,
186+
// and valid characters are `[0-9]` with no leading zeros.
187+
//
188+
// When using HTTP/JSON, this field is populated
189+
// based on a query string argument, such as `?endpoint_id=12345`. This is
190+
// the fallback for fields that are not included in either the URI or the
191+
// body.
192+
string endpoint_user_id = 3 [
193+
(google.api.field_behavior) = IMMUTABLE,
194+
(google.api.field_behavior) = OPTIONAL
195+
];
152196
}
153197

154198
// The deploy config to use for the deployment.

0 commit comments

Comments
 (0)