Commit e215490
committed
Remove unified flag usage, rely on host metadata
Port of Python SDK PR #1331. HostType() no longer returns UnifiedHost;
host type is determined solely by URL pattern. EnsureResolved() now
always resolves host metadata when a host is configured (not gated
behind Experimental_IsUnifiedHost). IsAccountClient() no longer panics
on unified hosts. ConfigType() returns WorkspaceConfig for account
hosts with WorkspaceID. buildHostCommand() no longer has a UnifiedHost
case. getOidcEndpoints() and getOAuthArgument() remove UnifiedHost
cases, relying on DiscoveryURL from metadata.
The Experimental_IsUnifiedHost field and UnifiedHost const remain in
the codebase for backward compatibility but are no longer checked.
Note: codegen templates in service/ files still check for UnifiedHost
and need to be updated in the codegen repo to use cfg.WorkspaceID
directly.
Co-authored-by: Isaac1 parent fc86ca0 commit e215490
File tree
8 files changed
+158
-262
lines changed- config
- internal
8 files changed
+158
-262
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | 73 | | |
82 | 74 | | |
83 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
| 162 | + | |
199 | 163 | | |
200 | 164 | | |
201 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
383 | 382 | | |
384 | 383 | | |
385 | 384 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | 385 | | |
391 | 386 | | |
392 | 387 | | |
| |||
413 | 408 | | |
414 | 409 | | |
415 | 410 | | |
| 411 | + | |
| 412 | + | |
416 | 413 | | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | 414 | | |
422 | 415 | | |
423 | 416 | | |
| |||
449 | 442 | | |
450 | 443 | | |
451 | 444 | | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | 445 | | |
461 | 446 | | |
462 | 447 | | |
463 | 448 | | |
| 449 | + | |
| 450 | + | |
464 | 451 | | |
465 | 452 | | |
466 | 453 | | |
| |||
520 | 507 | | |
521 | 508 | | |
522 | 509 | | |
523 | | - | |
524 | | - | |
525 | | - | |
| 510 | + | |
526 | 511 | | |
527 | 512 | | |
528 | 513 | | |
| |||
653 | 638 | | |
654 | 639 | | |
655 | 640 | | |
656 | | - | |
657 | | - | |
658 | 641 | | |
659 | 642 | | |
660 | 643 | | |
| |||
733 | 716 | | |
734 | 717 | | |
735 | 718 | | |
736 | | - | |
737 | | - | |
738 | 719 | | |
739 | 720 | | |
740 | 721 | | |
| |||
0 commit comments