Skip to content

Commit 11e52d6

Browse files
networkfabric - cli and sdk updates to fix issues found in the netwokfabric api that caused failures - swagger discrepancies. (#8888)
* networkfabric - cli and sdk updates to fix issues found in the networkfabric api that caused failures - swagger discrepencies. * updating history file * updating metadata file * fixing history file from internal repo.
1 parent 6871e79 commit 11e52d6

File tree

9 files changed

+26
-16
lines changed

9 files changed

+26
-16
lines changed

src/managednetworkfabric/HISTORY.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
8.0.0b5
7+
* Fixes 'taprule create' command as the API cannot support float values for 'polling-interval-in-seconds' option, i.e. - '30.0'.
8+
* Fixes the response object model for validate-configuration operations that cause response of the operation to not show any output.
9+
* az core cli updated to version 2.70, aaz_dev updated to version 4.2.0, and azdev to version 0.2.4.
10+
611
8.0.0b4
712
++++++
813
* Fixes 'device run-ro' command for missing fields in the response.
@@ -29,7 +34,7 @@ Release History
2934

3035
7.0.0
3136
++++++
32-
* This version requires a minimum of 2.66 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/Latest-version/release-notes-azure-cli.md
37+
* This version requires a minimum of 2.66 Azure core CLI. See release notes for more details: https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-conceptual/release-notes-azure-cli.md
3338
* This version upgrades the internal generation tool aaz-dev-tools to 3.1.0. Refer to the release notes for more details: https://github.com/Azure/aaz-dev-tools/releases/tag/v3.1.0.
3439

3540
6.4.0

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/fabric/_validate_configuration.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,18 @@ def _build_schema_on_200(cls):
197197
cls._schema_on_200 = AAZObjectType()
198198

199199
_schema_on_200 = cls._schema_on_200
200-
_schema_on_200.configuration_state = AAZStrType(
200+
_schema_on_200.error = AAZObjectType()
201+
_ValidateConfigurationHelper._build_schema_error_detail_read(_schema_on_200.error)
202+
_schema_on_200.properties = AAZObjectType(
203+
flags={"read_only": True},
204+
)
205+
206+
properties = cls._schema_on_200.properties
207+
properties.configuration_state = AAZStrType(
201208
serialized_name="configurationState",
202209
flags={"read_only": True},
203210
)
204-
_schema_on_200.error = AAZObjectType()
205-
_ValidateConfigurationHelper._build_schema_error_detail_read(_schema_on_200.error)
206-
_schema_on_200.url = AAZStrType()
211+
properties.url = AAZStrType()
207212

208213
return cls._schema_on_200
209214

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_create.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ def _build_arguments_schema(cls, *args, **kwargs):
9999
min_length=1,
100100
),
101101
)
102-
_args_schema.polling_interval_in_seconds = AAZFloatArg(
102+
_args_schema.polling_interval_in_seconds = AAZIntArg(
103103
options=["--polling-interval-in-seconds"],
104104
arg_group="Properties",
105105
help="Polling interval in seconds.",
106-
default=30.0,
106+
default=30,
107107
enum={"120": 120, "30": 30, "60": 60, "90": 90},
108108
)
109109
_args_schema.tap_rules_url = AAZStrArg(
@@ -534,7 +534,7 @@ def content(self):
534534
properties.set_prop("dynamicMatchConfigurations", AAZListType, ".dynamic_match_configurations")
535535
properties.set_prop("globalNetworkTapRuleActions", AAZObjectType, ".global_network_tap_rule_actions")
536536
properties.set_prop("matchConfigurations", AAZListType, ".match_configurations")
537-
properties.set_prop("pollingIntervalInSeconds", AAZFloatType, ".polling_interval_in_seconds")
537+
properties.set_prop("pollingIntervalInSeconds", AAZIntType, ".polling_interval_in_seconds")
538538
properties.set_prop("tapRulesUrl", AAZStrType, ".tap_rules_url")
539539

540540
dynamic_match_configurations = _builder.get(".properties.dynamicMatchConfigurations")
@@ -760,7 +760,7 @@ def _build_schema_on_200_201(cls):
760760
serialized_name="networkTapId",
761761
flags={"read_only": True},
762762
)
763-
properties.polling_interval_in_seconds = AAZFloatType(
763+
properties.polling_interval_in_seconds = AAZIntType(
764764
serialized_name="pollingIntervalInSeconds",
765765
)
766766
properties.provisioning_state = AAZStrType(

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def _build_schema_on_200(cls):
215215
serialized_name="networkTapId",
216216
flags={"read_only": True},
217217
)
218-
properties.polling_interval_in_seconds = AAZFloatType(
218+
properties.polling_interval_in_seconds = AAZIntType(
219219
serialized_name="pollingIntervalInSeconds",
220220
)
221221
properties.provisioning_state = AAZStrType(
@@ -567,7 +567,7 @@ def _build_schema_on_200(cls):
567567
serialized_name="networkTapId",
568568
flags={"read_only": True},
569569
)
570-
properties.polling_interval_in_seconds = AAZFloatType(
570+
properties.polling_interval_in_seconds = AAZIntType(
571571
serialized_name="pollingIntervalInSeconds",
572572
)
573573
properties.provisioning_state = AAZStrType(

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _build_schema_on_200(cls):
212212
serialized_name="networkTapId",
213213
flags={"read_only": True},
214214
)
215-
properties.polling_interval_in_seconds = AAZFloatType(
215+
properties.polling_interval_in_seconds = AAZIntType(
216216
serialized_name="pollingIntervalInSeconds",
217217
)
218218
properties.provisioning_state = AAZStrType(

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def _build_schema_on_200(cls):
739739
serialized_name="networkTapId",
740740
flags={"read_only": True},
741741
)
742-
properties.polling_interval_in_seconds = AAZFloatType(
742+
properties.polling_interval_in_seconds = AAZIntType(
743743
serialized_name="pollingIntervalInSeconds",
744744
)
745745
properties.provisioning_state = AAZStrType(

src/managednetworkfabric/azext_managednetworkfabric/aaz/latest/networkfabric/taprule/_wait.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _build_schema_on_200(cls):
208208
serialized_name="networkTapId",
209209
flags={"read_only": True},
210210
)
211-
properties.polling_interval_in_seconds = AAZFloatType(
211+
properties.polling_interval_in_seconds = AAZIntType(
212212
serialized_name="pollingIntervalInSeconds",
213213
)
214214
properties.provisioning_state = AAZStrType(
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"azext.isPreview": true,
3-
"azext.minCliCoreVersion": "2.67.0"
3+
"azext.minCliCoreVersion": "2.70.0"
44
}

src/managednetworkfabric/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
# HISTORY.rst entry.
13-
VERSION = '8.0.0b4'
13+
VERSION = '8.0.0b5'
1414

1515
# The full list of classifiers is available at
1616
# https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)