Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ Release History

**IoT Central updates**

* Public API GA update - add support for preview and 1.0 routes
* Addition of the optional '--av' argument to specify the version of API for the requested operation.
* Public API GA update
* Remove preview tag for api-token, device, device-template, user routes. Default routes use central GA API's.
* Add support for preview and 1.0 routes.
* Addition of the optional '--av' argument to specify the version of API for the requested operation.

**IoT Hub updates**

* Removed deprecated edge offline commands and artifacts.
Expand Down
14 changes: 6 additions & 8 deletions azext_iot/central/command_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ def load_central_commands(self, _):
)

with self.command_group(
"iot central user", command_type=central_user_ops, is_preview=True,
"iot central user", command_type=central_user_ops,
) as cmd_group:
cmd_group.command("create", "add_user")
cmd_group.command("list", "list_users")
cmd_group.show_command("show", "get_user")
cmd_group.command("delete", "delete_user")

with self.command_group(
"iot central api-token", command_type=central_api_token_ops, is_preview=True,
"iot central api-token", command_type=central_api_token_ops,
) as cmd_group:
cmd_group.command("create", "add_api_token")
cmd_group.command("list", "list_api_tokens")
cmd_group.show_command("show", "get_api_token")
cmd_group.command("delete", "delete_api_token")

with self.command_group(
"iot central device", command_type=central_device_ops, is_preview=True,
"iot central device", command_type=central_device_ops,
) as cmd_group:
# cmd_group.command("list", "list_devices")
cmd_group.show_command("show", "get_device")
Expand All @@ -89,15 +89,13 @@ def load_central_commands(self, _):
cmd_group.command("manual-failback", "run_manual_failback")

with self.command_group(
"iot central device command", command_type=central_device_ops, is_preview=True,
"iot central device command", command_type=central_device_ops,
) as cmd_group:
cmd_group.command("run", "run_command")
cmd_group.command("history", "get_command_history")

with self.command_group(
"iot central device-template",
command_type=central_device_templates_ops,
is_preview=True,
"iot central device-template", command_type=central_device_templates_ops,
) as cmd_group:
# cmd_group.command("list", "list_device_templates")
# cmd_group.command("map", "map_device_templates")
Expand All @@ -106,7 +104,7 @@ def load_central_commands(self, _):
cmd_group.command("delete", "delete_device_template")

with self.command_group(
"iot central device twin", command_type=central_device_twin_ops, is_preview=True
"iot central device twin", command_type=central_device_twin_ops,
) as cmd_group:
cmd_group.show_command(
"show", "device_twin_show",
Expand Down