Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
22 changes: 22 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@
Release History
===============

0.10.8
+++++++++++++++

**IoT Hub updates**

The following commands support an explicit etag parameter. If no etag arg is passed the value "*" is used.

* az iot hub device-identity update
* az iot hub device-identity delete
* az iot hub device-identity renew-key
* az iot hub device-twin update
* az iot hub device-twin delete
* az iot hub module-identity update
* az iot hub module-identity delete
* az iot hub module-twin update
* az iot hub module-twin delete
* az iot hub configuration update
* az iot hub configuration delete
* az iot edge deployment update
* az iot edge deployment update


0.10.7
+++++++++++++++

Expand Down
15 changes: 4 additions & 11 deletions azext_iot/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ def load_arguments(self, _):
help="Valid token duration in seconds.",
)
context.argument(
"etag", options_list=["--etag", "-e"], help="Entity tag value."
"etag",
options_list=["--etag", "-e"],
help="Etag or entity tag corresponding to the last state of the resource. "
"If no etag is provided the value '*' is used."
)
context.argument(
"top",
Expand Down Expand Up @@ -180,16 +183,6 @@ def load_arguments(self, _):
arg_type=get_three_state_flag(),
help="Reinstall uamqp dependency compatible with extension version. Default: false",
)
context.argument(
"repo_endpoint",
options_list=["--endpoint", "-e"],
help="IoT Plug and Play endpoint.",
)
context.argument(
"repo_id",
options_list=["--repo-id", "-r"],
help="IoT Plug and Play repository Id.",
)
context.argument(
"consumer_group",
options_list=["--consumer-group", "--cg", "-c"],
Expand Down
65 changes: 0 additions & 65 deletions azext_iot/common/digitaltwin_sas_token_auth.py

This file was deleted.

16 changes: 0 additions & 16 deletions azext_iot/common/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,22 +380,6 @@ def init_monitoring(cmd, timeout, properties, enqueued_time, repair, yes):
return (enqueued_time, properties, timeout, output)


def get_sas_token(target):
from azext_iot.common.digitaltwin_sas_token_auth import (
DigitalTwinSasTokenAuthentication,
)

token = ""
if target.get("repository_id"):
token = DigitalTwinSasTokenAuthentication(
target["repository_id"],
target["entity"],
target["policy"],
target["primarykey"],
).generate_sas_token()
return {"Authorization": "{}".format(token)}


def dict_clean(d):
""" Remove None from dictionary """
if not isinstance(d, dict):
Expand Down
3 changes: 1 addition & 2 deletions azext_iot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

import os

VERSION = "0.10.7"
VERSION = "0.10.8"
EXTENSION_NAME = "azure-iot"
EXTENSION_ROOT = os.path.dirname(os.path.abspath(__file__))
EXTENSION_CONFIG_ROOT_KEY = "iotext"
EDGE_DEPLOYMENT_SCHEMA_2_PATH = os.path.join(
EXTENSION_ROOT, "assets", "edge-deploy-2.0.schema.json"
)
BASE_API_VERSION = "2018-08-30-preview"
BASE_MQTT_API_VERSION = "2018-06-30"
MESSAGING_HTTP_C2D_SYSTEM_PROPERTIES = [
"iothub-messageid",
Expand Down
Loading