Commit f9e3c6e
Copybara import of the project:
--
88f6792 by mateo-berri <277851410+mateo-berri@users.noreply.github.com>:
fix: honor explicitly passed api_endpoint when location is "global"
get_client_options defaulted the endpoint to aiplatform.googleapis.com
whenever the configured location was "global", even when the caller had
explicitly passed an api_endpoint, because the global-location check sat
outside the api_endpoint is None guard. Gate the whole default on the
endpoint being unset so an explicit override is honored for global,
matching the behavior of regional locations.
Fixes #6958
COPYBARA_INTEGRATE_REVIEW=#6959 from mateo-berri:fix-global-location-api-endpoint-override 7d8eac3
PiperOrigin-RevId: 9441224441 parent c3c1836 commit f9e3c6e
2 files changed
Lines changed: 23 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
475 | 473 | | |
476 | 474 | | |
477 | 475 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
313 | 326 | | |
314 | 327 | | |
315 | 328 | | |
| |||
437 | 450 | | |
438 | 451 | | |
439 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
440 | 459 | | |
441 | 460 | | |
442 | 461 | | |
| |||
0 commit comments