|
19 | 19 | def load_command_table(self, _): |
20 | 20 |
|
21 | 21 | fleets_sdk = CliCommandType( |
22 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._fleets_operations#FleetsOperations.{}", |
| 22 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._fleets_operations#FleetsOperations.{}", |
23 | 23 | operation_group="fleets", |
24 | 24 | client_factory=cf_fleets |
25 | 25 | ) |
26 | 26 |
|
27 | 27 | fleet_members_sdk = CliCommandType( |
28 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._fleet_members_operations#FleetMembersOperations.{}", |
| 28 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._fleet_members_operations#FleetMembersOperations.{}", |
29 | 29 | operation_group="fleet_members", |
30 | 30 | client_factory=cf_fleet_members |
31 | 31 | ) |
32 | 32 |
|
33 | 33 | update_runs_sdk = CliCommandType( |
34 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._update_runs_operations#UpdateRunsOperations.{}", |
| 34 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._update_runs_operations#UpdateRunsOperations.{}", |
35 | 35 | operation_group="update_runs", |
36 | 36 | client_factory=cf_update_runs |
37 | 37 | ) |
38 | 38 |
|
39 | 39 | fleet_update_strategy_sdk = CliCommandType( |
40 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._fleet_update_strategies_operations#FleetUpdateStrategiesOperations.{}", |
| 40 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._fleet_update_strategies_operations#FleetUpdateStrategiesOperations.{}", |
41 | 41 | operation_group="fleet_update_strategies", |
42 | 42 | client_factory=cf_fleet_update_strategies |
43 | 43 | ) |
44 | 44 |
|
45 | 45 | auto_upgrade_profiles_sdk = CliCommandType( |
46 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._auto_upgrade_profiles_operations#AutoUpgradeProfilesOperations.{}", |
| 46 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._auto_upgrade_profiles_operations#AutoUpgradeProfilesOperations.{}", |
47 | 47 | operation_group="auto_upgrade_profiles", |
48 | 48 | client_factory=cf_auto_upgrade_profiles |
49 | 49 | ) |
50 | 50 |
|
51 | 51 | auto_upgrade_profile_operations_sdk = CliCommandType( |
52 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._auto_upgrade_profile_operations_operations#AutoUpgradeProfileOperationsOperations.{}", |
| 52 | + operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._auto_upgrade_profile_operations_operations#AutoUpgradeProfileOperationsOperations.{}", |
53 | 53 | operation_group="auto_upgrade_profile_operations", |
54 | 54 | client_factory=cf_auto_upgrade_profile_operations |
55 | 55 | ) |
56 | 56 |
|
57 | | - gates_sdk = CliCommandType( |
58 | | - operations_tmpl="azext_fleet.vendored_sdks.operations._gates_operations#GatesOperations.{}", |
59 | | - operation_group="gates", |
60 | | - client_factory=cf_gates |
61 | | - ) |
| 57 | + # Note: Gates operations not available in v2025_04_01_preview API version |
| 58 | + # gates_sdk = CliCommandType( |
| 59 | + # operations_tmpl="azext_fleet.vendored_sdks.v2025_04_01_preview.operations._gates_operations#GatesOperations.{}", |
| 60 | + # operation_group="gates", |
| 61 | + # client_factory=cf_gates |
| 62 | + # ) |
62 | 63 |
|
63 | 64 | # fleets command group |
64 | 65 | with self.command_group("fleet", fleets_sdk, client_factory=cf_fleets) as g: |
@@ -112,9 +113,9 @@ def load_command_table(self, _): |
112 | 113 | with self.command_group("fleet autoupgradeprofile", auto_upgrade_profile_operations_sdk, client_factory=cf_auto_upgrade_profile_operations) as g: |
113 | 114 | g.custom_command("generate-update-run", "generate_update_run", supports_no_wait=True) |
114 | 115 |
|
115 | | - # fleet gates command group |
116 | | - with self.command_group("fleet gate", gates_sdk, client_factory=cf_gates) as g: |
117 | | - g.custom_command("list", "list_gates_by_fleet") |
118 | | - g.custom_show_command("show", "show_gate") |
119 | | - g.custom_command("update", "update_gate") |
120 | | - g.custom_command("approve", "approve_gate") |
| 116 | + # fleet gates command group - commented out until GatesOperations is available |
| 117 | + # with self.command_group("fleet gate", gates_sdk, client_factory=cf_gates) as g: |
| 118 | + # g.custom_command("list", "list_gates_by_fleet") |
| 119 | + # g.custom_show_command("show", "show_gate") |
| 120 | + # g.custom_command("update", "update_gate") |
| 121 | + # g.custom_command("approve", "approve_gate") |
0 commit comments