Skip to content

Commit 72ddb7f

Browse files
NetworkCloud CLI for the 2026-05-01-preview API (#9867)
* Managed Network Fabric CLI updates for new 2026-01-15-preview API * Managed Network Fabric CLI updates for new 2026-01-15-preview API * NetworkCloud CLI for the 2026-05-01-preview API * NetworkCloud CLI for the 2026-05-01-preview API * retrigger checks
1 parent 3ef114b commit 72ddb7f

206 files changed

Lines changed: 4162 additions & 3217 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/networkcloud/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
5.0.0b2
7+
++++++++
8+
* This preview version supports NetworkCloud 2026-05-01-preview APIs.
9+
610
5.0.0b1
711
++++++++
812
* This preview version supports NetworkCloud 2026-01-01-preview APIs.

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_cordon.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Cordon(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -152,7 +152,7 @@ def url_parameters(self):
152152
def query_parameters(self):
153153
parameters = {
154154
**self.serialize_query_param(
155-
"api-version", "2026-01-01-preview",
155+
"api-version", "2026-05-01-preview",
156156
required=True,
157157
),
158158
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_list.py

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ class List(AAZCommand):
2626
"""
2727

2828
_aaz_info = {
29-
"version": "2026-01-01-preview",
29+
"version": "2026-05-01-preview",
3030
"resources": [
31-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-01-01-preview"],
32-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-01-01-preview"],
31+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-05-01-preview"],
32+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-05-01-preview"],
3333
]
3434
}
3535

@@ -130,7 +130,7 @@ def query_parameters(self):
130130
"$top", self.ctx.args.top,
131131
),
132132
**self.serialize_query_param(
133-
"api-version", "2026-01-01-preview",
133+
"api-version", "2026-05-01-preview",
134134
required=True,
135135
),
136136
}
@@ -166,7 +166,9 @@ def _build_schema_on_200(cls):
166166
_schema_on_200.next_link = AAZStrType(
167167
serialized_name="nextLink",
168168
)
169-
_schema_on_200.value = AAZListType()
169+
_schema_on_200.value = AAZListType(
170+
flags={"required": True},
171+
)
170172

171173
value = cls._schema_on_200.value
172174
value.Element = AAZObjectType()
@@ -300,6 +302,10 @@ def _build_schema_on_200(cls):
300302
serialized_name="machineSkuId",
301303
flags={"required": True},
302304
)
305+
properties.monitoring_configuration_status = AAZObjectType(
306+
serialized_name="monitoringConfigurationStatus",
307+
flags={"read_only": True},
308+
)
303309
properties.oam_ipv4_address = AAZStrType(
304310
serialized_name="oamIpv4Address",
305311
flags={"read_only": True},
@@ -507,6 +513,14 @@ def _build_schema_on_200(cls):
507513
machine_roles = cls._schema_on_200.value.Element.properties.machine_roles
508514
machine_roles.Element = AAZStrType()
509515

516+
monitoring_configuration_status = cls._schema_on_200.value.Element.properties.monitoring_configuration_status
517+
monitoring_configuration_status.log_level = AAZStrType(
518+
serialized_name="logLevel",
519+
)
520+
monitoring_configuration_status.metrics_level = AAZStrType(
521+
serialized_name="metricsLevel",
522+
)
523+
510524
runtime_protection_status = cls._schema_on_200.value.Element.properties.runtime_protection_status
511525
runtime_protection_status.agent_health_status = AAZStrType(
512526
serialized_name="agentHealthStatus",
@@ -673,7 +687,7 @@ def query_parameters(self):
673687
"$top", self.ctx.args.top,
674688
),
675689
**self.serialize_query_param(
676-
"api-version", "2026-01-01-preview",
690+
"api-version", "2026-05-01-preview",
677691
required=True,
678692
),
679693
}
@@ -709,7 +723,9 @@ def _build_schema_on_200(cls):
709723
_schema_on_200.next_link = AAZStrType(
710724
serialized_name="nextLink",
711725
)
712-
_schema_on_200.value = AAZListType()
726+
_schema_on_200.value = AAZListType(
727+
flags={"required": True},
728+
)
713729

714730
value = cls._schema_on_200.value
715731
value.Element = AAZObjectType()
@@ -843,6 +859,10 @@ def _build_schema_on_200(cls):
843859
serialized_name="machineSkuId",
844860
flags={"required": True},
845861
)
862+
properties.monitoring_configuration_status = AAZObjectType(
863+
serialized_name="monitoringConfigurationStatus",
864+
flags={"read_only": True},
865+
)
846866
properties.oam_ipv4_address = AAZStrType(
847867
serialized_name="oamIpv4Address",
848868
flags={"read_only": True},
@@ -1050,6 +1070,14 @@ def _build_schema_on_200(cls):
10501070
machine_roles = cls._schema_on_200.value.Element.properties.machine_roles
10511071
machine_roles.Element = AAZStrType()
10521072

1073+
monitoring_configuration_status = cls._schema_on_200.value.Element.properties.monitoring_configuration_status
1074+
monitoring_configuration_status.log_level = AAZStrType(
1075+
serialized_name="logLevel",
1076+
)
1077+
monitoring_configuration_status.metrics_level = AAZStrType(
1078+
serialized_name="metricsLevel",
1079+
)
1080+
10531081
runtime_protection_status = cls._schema_on_200.value.Element.properties.runtime_protection_status
10541082
runtime_protection_status.agent_health_status = AAZStrType(
10551083
serialized_name="agentHealthStatus",

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_power_off.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class PowerOff(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -152,7 +152,7 @@ def url_parameters(self):
152152
def query_parameters(self):
153153
parameters = {
154154
**self.serialize_query_param(
155-
"api-version", "2026-01-01-preview",
155+
"api-version", "2026-05-01-preview",
156156
required=True,
157157
),
158158
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_reimage.py

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Reimage(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/reimage", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/reimage", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -58,6 +58,16 @@ def _build_arguments_schema(cls, *args, **kwargs):
5858
_args_schema.resource_group = AAZResourceGroupNameArg(
5959
required=True,
6060
)
61+
62+
# define Arg Group "Body"
63+
64+
_args_schema = cls._args_schema
65+
_args_schema.safeguard_mode = AAZStrArg(
66+
options=["--safeguard-mode"],
67+
arg_group="Body",
68+
help="The safeguard mode to use for the reimage action, where None indicates to bypass safeguards and All indicates to utilize all safeguards. If not specified, the default is All.",
69+
enum={"All": "All", "None": "None"},
70+
)
6171
return cls._args_schema
6272

6373
def _execute_operations(self):
@@ -141,7 +151,7 @@ def url_parameters(self):
141151
def query_parameters(self):
142152
parameters = {
143153
**self.serialize_query_param(
144-
"api-version", "2026-01-01-preview",
154+
"api-version", "2026-05-01-preview",
145155
required=True,
146156
),
147157
}
@@ -150,12 +160,26 @@ def query_parameters(self):
150160
@property
151161
def header_parameters(self):
152162
parameters = {
163+
**self.serialize_header_param(
164+
"Content-Type", "application/json",
165+
),
153166
**self.serialize_header_param(
154167
"Accept", "application/json",
155168
),
156169
}
157170
return parameters
158171

172+
@property
173+
def content(self):
174+
_content_value, _builder = self.new_content_builder(
175+
self.ctx.args,
176+
typ=AAZObjectType,
177+
typ_kwargs={"flags": {"client_flatten": True}}
178+
)
179+
_builder.set_prop("safeguardMode", AAZStrType, ".safeguard_mode")
180+
181+
return self.serialize_content(_content_value)
182+
159183
def on_200_201(self, session):
160184
data = self.deserialize_http_content(session)
161185
self.ctx.set_var(

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_replace.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Replace(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/replace", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/replace", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -116,14 +116,14 @@ def _build_arguments_schema(cls, *args, **kwargs):
116116
)
117117

118118
bmc_credentials = cls._args_schema.bmc_credentials
119-
bmc_credentials.password = AAZStrArg(
119+
bmc_credentials.password = AAZPasswordArg(
120120
options=["password"],
121121
help="The password of the administrator of the device used during initialization.",
122122
required=True,
123123
fmt=AAZStrArgFormat(
124124
min_length=1,
125125
),
126-
blank=AAZPromptInput(
126+
blank=AAZPromptPasswordInput(
127127
msg="Administrator password of device:",
128128
),
129129
)
@@ -218,7 +218,7 @@ def url_parameters(self):
218218
def query_parameters(self):
219219
parameters = {
220220
**self.serialize_query_param(
221-
"api-version", "2026-01-01-preview",
221+
"api-version", "2026-05-01-preview",
222222
required=True,
223223
),
224224
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_restart.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Restart(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/restart", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/restart", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -141,7 +141,7 @@ def url_parameters(self):
141141
def query_parameters(self):
142142
parameters = {
143143
**self.serialize_query_param(
144-
"api-version", "2026-01-01-preview",
144+
"api-version", "2026-05-01-preview",
145145
required=True,
146146
),
147147
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_run_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class RunCommand(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runcommand", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runcommand", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -169,7 +169,7 @@ def url_parameters(self):
169169
def query_parameters(self):
170170
parameters = {
171171
**self.serialize_query_param(
172-
"api-version", "2026-01-01-preview",
172+
"api-version", "2026-05-01-preview",
173173
required=True,
174174
),
175175
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_run_data_extract.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class RunDataExtract(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextracts", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextracts", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -181,7 +181,7 @@ def url_parameters(self):
181181
def query_parameters(self):
182182
parameters = {
183183
**self.serialize_query_param(
184-
"api-version", "2026-01-01-preview",
184+
"api-version", "2026-05-01-preview",
185185
required=True,
186186
),
187187
}

src/networkcloud/azext_networkcloud/aaz/latest/networkcloud/baremetalmachine/_run_data_extracts_restricted.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class RunDataExtractsRestricted(AAZCommand):
2323
"""
2424

2525
_aaz_info = {
26-
"version": "2026-01-01-preview",
26+
"version": "2026-05-01-preview",
2727
"resources": [
28-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextractsrestricted", "2026-01-01-preview"],
28+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextractsrestricted", "2026-05-01-preview"],
2929
]
3030
}
3131

@@ -181,7 +181,7 @@ def url_parameters(self):
181181
def query_parameters(self):
182182
parameters = {
183183
**self.serialize_query_param(
184-
"api-version", "2026-01-01-preview",
184+
"api-version", "2026-05-01-preview",
185185
required=True,
186186
),
187187
}

0 commit comments

Comments
 (0)