Skip to content
Draft
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
4 changes: 4 additions & 0 deletions src/networkcloud/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
Release History
===============

5.0.0b2
++++++++
* This preview version supports NetworkCloud 2026-05-01-preview APIs.

5.0.0b1
++++++++
* This preview version supports NetworkCloud 2026-01-01-preview APIs.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Cordon(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/cordon", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -152,7 +152,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-05-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -130,7 +130,7 @@ def query_parameters(self):
"$top", self.ctx.args.top,
),
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -166,7 +166,9 @@ def _build_schema_on_200(cls):
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down Expand Up @@ -300,6 +302,10 @@ def _build_schema_on_200(cls):
serialized_name="machineSkuId",
flags={"required": True},
)
properties.monitoring_configuration_status = AAZObjectType(
serialized_name="monitoringConfigurationStatus",
flags={"read_only": True},
)
properties.oam_ipv4_address = AAZStrType(
serialized_name="oamIpv4Address",
flags={"read_only": True},
Expand Down Expand Up @@ -507,6 +513,14 @@ def _build_schema_on_200(cls):
machine_roles = cls._schema_on_200.value.Element.properties.machine_roles
machine_roles.Element = AAZStrType()

monitoring_configuration_status = cls._schema_on_200.value.Element.properties.monitoring_configuration_status
monitoring_configuration_status.log_level = AAZStrType(
serialized_name="logLevel",
)
monitoring_configuration_status.metrics_level = AAZStrType(
serialized_name="metricsLevel",
)

runtime_protection_status = cls._schema_on_200.value.Element.properties.runtime_protection_status
runtime_protection_status.agent_health_status = AAZStrType(
serialized_name="agentHealthStatus",
Expand Down Expand Up @@ -673,7 +687,7 @@ def query_parameters(self):
"$top", self.ctx.args.top,
),
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down Expand Up @@ -709,7 +723,9 @@ def _build_schema_on_200(cls):
_schema_on_200.next_link = AAZStrType(
serialized_name="nextLink",
)
_schema_on_200.value = AAZListType()
_schema_on_200.value = AAZListType(
flags={"required": True},
)

value = cls._schema_on_200.value
value.Element = AAZObjectType()
Expand Down Expand Up @@ -843,6 +859,10 @@ def _build_schema_on_200(cls):
serialized_name="machineSkuId",
flags={"required": True},
)
properties.monitoring_configuration_status = AAZObjectType(
serialized_name="monitoringConfigurationStatus",
flags={"read_only": True},
)
properties.oam_ipv4_address = AAZStrType(
serialized_name="oamIpv4Address",
flags={"read_only": True},
Expand Down Expand Up @@ -1050,6 +1070,14 @@ def _build_schema_on_200(cls):
machine_roles = cls._schema_on_200.value.Element.properties.machine_roles
machine_roles.Element = AAZStrType()

monitoring_configuration_status = cls._schema_on_200.value.Element.properties.monitoring_configuration_status
monitoring_configuration_status.log_level = AAZStrType(
serialized_name="logLevel",
)
monitoring_configuration_status.metrics_level = AAZStrType(
serialized_name="metricsLevel",
)

runtime_protection_status = cls._schema_on_200.value.Element.properties.runtime_protection_status
runtime_protection_status.agent_health_status = AAZStrType(
serialized_name="agentHealthStatus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class PowerOff(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/poweroff", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -152,7 +152,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Reimage(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/reimage", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/reimage", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -58,6 +58,16 @@ def _build_arguments_schema(cls, *args, **kwargs):
_args_schema.resource_group = AAZResourceGroupNameArg(
required=True,
)

# define Arg Group "Body"

_args_schema = cls._args_schema
_args_schema.safeguard_mode = AAZStrArg(
options=["--safeguard-mode"],
arg_group="Body",
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.",
enum={"All": "All", "None": "None"},
)
return cls._args_schema

def _execute_operations(self):
Expand Down Expand Up @@ -141,7 +151,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand All @@ -150,12 +160,26 @@ def query_parameters(self):
@property
def header_parameters(self):
parameters = {
**self.serialize_header_param(
"Content-Type", "application/json",
),
**self.serialize_header_param(
"Accept", "application/json",
),
}
return parameters

@property
def content(self):
_content_value, _builder = self.new_content_builder(
self.ctx.args,
typ=AAZObjectType,
typ_kwargs={"flags": {"client_flatten": True}}
)
_builder.set_prop("safeguardMode", AAZStrType, ".safeguard_mode")

return self.serialize_content(_content_value)

def on_200_201(self, session):
data = self.deserialize_http_content(session)
self.ctx.set_var(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Replace(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/replace", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/replace", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -116,14 +116,14 @@ def _build_arguments_schema(cls, *args, **kwargs):
)

bmc_credentials = cls._args_schema.bmc_credentials
bmc_credentials.password = AAZStrArg(
bmc_credentials.password = AAZPasswordArg(
options=["password"],
help="The password of the administrator of the device used during initialization.",
required=True,
fmt=AAZStrArgFormat(
min_length=1,
),
blank=AAZPromptInput(
blank=AAZPromptPasswordInput(
msg="Administrator password of device:",
),
)
Expand Down Expand Up @@ -218,7 +218,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class Restart(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/restart", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/restart", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -141,7 +141,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class RunCommand(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runcommand", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runcommand", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -169,7 +169,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class RunDataExtract(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextracts", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextracts", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -181,7 +181,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class RunDataExtractsRestricted(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextractsrestricted", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/rundataextractsrestricted", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -181,7 +181,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class RunReadCommand(AAZCommand):
"""

_aaz_info = {
"version": "2026-01-01-preview",
"version": "2026-05-01-preview",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runreadcommands", "2026-01-01-preview"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.networkcloud/baremetalmachines/{}/runreadcommands", "2026-05-01-preview"],
]
}

Expand Down Expand Up @@ -181,7 +181,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2026-01-01-preview",
"api-version", "2026-05-01-preview",
required=True,
),
}
Expand Down
Loading
Loading