From cfe659405e3f6c860f6c3a7d2041dd79486ddf32 Mon Sep 17 00:00:00 2001 From: Paymaun Heidari Date: Mon, 6 Jan 2025 11:02:06 -0800 Subject: [PATCH 1/3] WIP --- azext_iot/sdk/dps/service/models/twin_collection_py3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azext_iot/sdk/dps/service/models/twin_collection_py3.py b/azext_iot/sdk/dps/service/models/twin_collection_py3.py index 232f7dedd..2833a5154 100644 --- a/azext_iot/sdk/dps/service/models/twin_collection_py3.py +++ b/azext_iot/sdk/dps/service/models/twin_collection_py3.py @@ -28,7 +28,7 @@ class TwinCollection(Model): _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, - 'version': {'key': 'version', 'type': 'long'}, + 'version': {'key': 'version', 'type': 'object'}, # 'long' -> 'object': rest API spec is not accurate. More than int is supported. 'count': {'key': 'count', 'type': 'int'}, 'metadata': {'key': 'metadata', 'type': 'Metadata'}, } From f25239e624b4934c50954c97143ea3a11f0f00f1 Mon Sep 17 00:00:00 2001 From: Paymaun Heidari Date: Mon, 6 Jan 2025 11:07:02 -0800 Subject: [PATCH 2/3] WIP --- azext_iot/sdk/dps/service/models/twin_collection_py3.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azext_iot/sdk/dps/service/models/twin_collection_py3.py b/azext_iot/sdk/dps/service/models/twin_collection_py3.py index 2833a5154..b0a1bfa2d 100644 --- a/azext_iot/sdk/dps/service/models/twin_collection_py3.py +++ b/azext_iot/sdk/dps/service/models/twin_collection_py3.py @@ -28,7 +28,7 @@ class TwinCollection(Model): _attribute_map = { 'additional_properties': {'key': '', 'type': '{object}'}, - 'version': {'key': 'version', 'type': 'object'}, # 'long' -> 'object': rest API spec is not accurate. More than int is supported. + 'version': {'key': 'version', 'type': 'object'}, # TODO 'long' -> 'object': rest API spec is not accurate. More than int is supported. 'count': {'key': 'count', 'type': 'int'}, 'metadata': {'key': 'metadata', 'type': 'Metadata'}, } From 6efd2f901aadebc3963cf808b273c5c0969d7101 Mon Sep 17 00:00:00 2001 From: Paymaun Heidari Date: Mon, 6 Jan 2025 11:47:03 -0800 Subject: [PATCH 3/3] cmd lint --- azext_iot/assets/user_messages.py | 6 +++--- azext_iot/deviceupdate/params.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/azext_iot/assets/user_messages.py b/azext_iot/assets/user_messages.py index 22c854f0c..b5c4b83e5 100644 --- a/azext_iot/assets/user_messages.py +++ b/azext_iot/assets/user_messages.py @@ -26,14 +26,14 @@ def error_param_top_out_of_bounds(upper_limit=None): def info_param_properties_device(include_mqtt=True, include_http=False): http_content = ( - "For http messaging - application properties are sent using iothub-app-=value, for instance " - "iothub-app-myprop=myvalue. System properties are generally prefixed with iothub- like iothub-correlationid " + "For http messaging - application properties are sent using iothub-app-{name}=value, for instance " + "iothub-app-myprop=myvalue. System properties are generally prefixed with iothub-{name} like iothub-correlationid " "but there are exceptions such as content-type and content-encoding. " ) mqtt_content = ( "For mqtt messaging - you are able to send system properties using " - "$.=value. For instance $.cid=12345 sets the system correlation Id property. " + "$.{name}=value. For instance $.cid=12345 sets the system correlation Id property. " "Other system property identifier examples include $.ct for content type, " "$.mid for message Id and $.ce for content encoding. " ) diff --git a/azext_iot/deviceupdate/params.py b/azext_iot/deviceupdate/params.py index 22c85482c..553164991 100644 --- a/azext_iot/deviceupdate/params.py +++ b/azext_iot/deviceupdate/params.py @@ -343,7 +343,7 @@ def load_deviceupdate_arguments(self, _): "deployment_id", options_list=["--deployment-id", "--did"], help="The caller-provided deployment Id. This cannot be longer than 73 characters, " - "must be all lower-case, and cannot contain '&', '^', '[', ']', '{', '}', '|', '<', '>', " + "must be all lower-case, and cannot contain `&`, `^`, `[`, `]`, `{`, `}`, `|`, `<`, `>`, " "forward slash, backslash, or double quote.", ) context.argument(