Skip to content

Commit 07499cc

Browse files
authored
chore: update prediction endpoint (googleapis#221)
1 parent 96ac976 commit 07499cc

11 files changed

Lines changed: 10 additions & 24 deletions

.sample_configs/process_configs.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,15 @@ deploy_model_sample:
124124
skip:
125125
- explanation_spec
126126
explain_custom_image_sample:
127-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
128127
max_depth: 1
129128
resource_name: endpoint
130129
explain_custom_tabular_sample:
131-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
132130
max_depth: 1
133131
resource_name: endpoint
134132
comments:
135133
approximation_error: This is the approximation error.
136134
attributions: Feature attributions.
137135
explain_sample:
138-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
139136
max_depth: 1
140137
resource_name: endpoint
141138
comments:
@@ -144,7 +141,6 @@ explain_sample:
144141
explain_tabular_sample:
145142
gapic_module_child: aiplatform_v1beta1
146143
namespace: null
147-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
148144
max_depth: 2
149145
resource_name: endpoint
150146
comments:
@@ -258,14 +254,12 @@ list_models_sample: {}
258254
list_specialist_pools_sample: {}
259255
list_training_pipelines_sample: {}
260256
predict_custom_trained_model_sample:
261-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
262257
max_depth: 1
263258
resource_name: endpoint
264259
comments:
265260
predictions: The predictions are a google.protobuf.Value representation of the
266261
model's predictions.
267262
predict_image_classification_sample:
268-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
269263
max_depth: 1
270264
resource_name: endpoint
271265
schema_types:
@@ -275,11 +269,9 @@ predict_image_classification_sample:
275269
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/classification.yaml
276270
for the format of the predictions.
277271
predict_image_file_sample:
278-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
279272
max_depth: 1
280273
resource_name: endpoint
281274
predict_image_object_detection_sample:
282-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
283275
max_depth: 1
284276
resource_name: endpoint
285277
schema_types:
@@ -289,29 +281,25 @@ predict_image_object_detection_sample:
289281
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/image_object_detection.yaml
290282
for the format of the predictions.
291283
predict_sample:
292-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
293284
max_depth: 1
294285
resource_name: endpoint
295286
region_tags:
296287
- aiplatform_predict_sample
297288
- aiplatform_predict_tutorial
298289
predict_tabular_classification_sample:
299-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
300290
max_depth: 1
301291
resource_name: endpoint
302292
comments:
303293
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_classification.yaml
304294
for the format of the predictions.
305295
predict_tabular_forecasting_sample: {}
306296
predict_tabular_regression_sample:
307-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
308297
max_depth: 1
309298
resource_name: endpoint
310299
comments:
311300
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_regression.yaml
312301
for the format of the predictions.
313302
predict_text_classification_single_label_sample:
314-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
315303
max_depth: 1
316304
resource_name: endpoint
317305
schema_types:
@@ -320,7 +308,6 @@ predict_text_classification_single_label_sample:
320308
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_classification.yaml
321309
for the format of the predictions.
322310
predict_text_entity_extraction_sample:
323-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
324311
max_depth: 1
325312
resource_name: endpoint
326313
schema_types:
@@ -329,7 +316,6 @@ predict_text_entity_extraction_sample:
329316
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_extraction.yaml
330317
for the format of the predictions.
331318
predict_text_sentiment_analysis_sample:
332-
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
333319
max_depth: 1
334320
resource_name: endpoint
335321
schema_types:

samples/snippets/explain_tabular_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def explain_tabular_sample(
2525
endpoint_id: str,
2626
instance_dict: Dict,
2727
location: str = "us-central1",
28-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
28+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2929
):
3030
# The AI Platform services require regional API endpoints.
3131
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_custom_trained_model_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def predict_custom_trained_model_sample(
2525
endpoint_id: str,
2626
instance_dict: Dict,
2727
location: str = "us-central1",
28-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
28+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2929
):
3030
# The AI Platform services require regional API endpoints.
3131
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_image_classification_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def predict_image_classification_sample(
2424
endpoint_id: str,
2525
filename: str,
2626
location: str = "us-central1",
27-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
27+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2828
):
2929
# The AI Platform services require regional API endpoints.
3030
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_image_object_detection_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def predict_image_object_detection_sample(
2424
endpoint_id: str,
2525
filename: str,
2626
location: str = "us-central1",
27-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
27+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2828
):
2929
# The AI Platform services require regional API endpoints.
3030
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def predict_sample(
2626
endpoint_id: str,
2727
instance_dict: Dict,
2828
location: str = "us-central1",
29-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
29+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
3030
):
3131
# The AI Platform services require regional API endpoints.
3232
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_tabular_classification_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def predict_tabular_classification_sample(
2525
endpoint_id: str,
2626
instance_dict: Dict,
2727
location: str = "us-central1",
28-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
28+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2929
):
3030
# The AI Platform services require regional API endpoints.
3131
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_tabular_regression_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def predict_tabular_regression_sample(
2525
endpoint_id: str,
2626
instance_dict: Dict,
2727
location: str = "us-central1",
28-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
28+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2929
):
3030
# The AI Platform services require regional API endpoints.
3131
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_text_classification_single_label_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def predict_text_classification_single_label_sample(
2424
endpoint_id: str,
2525
content: str,
2626
location: str = "us-central1",
27-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
27+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2828
):
2929
# The AI Platform services require regional API endpoints.
3030
client_options = {"api_endpoint": api_endpoint}

samples/snippets/predict_text_entity_extraction_sample.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def predict_text_entity_extraction_sample(
2424
endpoint_id: str,
2525
content: str,
2626
location: str = "us-central1",
27-
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
27+
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
2828
):
2929
# The AI Platform services require regional API endpoints.
3030
client_options = {"api_endpoint": api_endpoint}

0 commit comments

Comments
 (0)