Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01",
"version": "2025-04-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets/{}", "2024-07-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets/{}", "2025-04-01"],
]
}

Expand Down Expand Up @@ -118,7 +118,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01",
"api-version", "2025-04-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ class List(AAZCommand):
"""

_aaz_info = {
"version": "2024-07-01",
"version": "2025-04-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "2024-07-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "2024-07-01"],
["mgmt-plane", "/subscriptions/{}/providers/microsoft.compute/availabilitysets", "2025-04-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/availabilitysets", "2025-04-01"],
]
}

Expand Down Expand Up @@ -116,7 +116,7 @@ def query_parameters(self):
"$expand", self.ctx.args.expand,
),
**self.serialize_query_param(
"api-version", "2024-07-01",
"api-version", "2025-04-01",
required=True,
),
}
Expand Down Expand Up @@ -173,6 +173,10 @@ def _build_schema_on_200(cls):
flags={"client_flatten": True},
)
_element.sku = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
Expand All @@ -195,11 +199,18 @@ def _build_schema_on_200(cls):
properties.statuses = AAZListType(
flags={"read_only": True},
)
properties.virtual_machine_scale_set_migration_info = AAZObjectType(
serialized_name="virtualMachineScaleSetMigrationInfo",
flags={"read_only": True},
)
properties.virtual_machines = AAZListType(
serialized_name="virtualMachines",
)

scheduled_events_policy = cls._schema_on_200.value.Element.properties.scheduled_events_policy
scheduled_events_policy.all_instances_down = AAZObjectType(
serialized_name="allInstancesDown",
)
scheduled_events_policy.scheduled_events_additional_publishing_targets = AAZObjectType(
serialized_name="scheduledEventsAdditionalPublishingTargets",
)
Expand All @@ -210,13 +221,21 @@ def _build_schema_on_200(cls):
serialized_name="userInitiatedRedeploy",
)

all_instances_down = cls._schema_on_200.value.Element.properties.scheduled_events_policy.all_instances_down
all_instances_down.automatically_approve = AAZBoolType(
serialized_name="automaticallyApprove",
)

scheduled_events_additional_publishing_targets = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets
scheduled_events_additional_publishing_targets.event_grid_and_resource_graph = AAZObjectType(
serialized_name="eventGridAndResourceGraph",
)

event_grid_and_resource_graph = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets.event_grid_and_resource_graph
event_grid_and_resource_graph.enable = AAZBoolType()
event_grid_and_resource_graph.scheduled_events_api_version = AAZStrType(
serialized_name="scheduledEventsApiVersion",
)

user_initiated_reboot = cls._schema_on_200.value.Element.properties.scheduled_events_policy.user_initiated_reboot
user_initiated_reboot.automatically_approve = AAZBoolType(
Expand All @@ -240,6 +259,28 @@ def _build_schema_on_200(cls):
_element.message = AAZStrType()
_element.time = AAZStrType()

virtual_machine_scale_set_migration_info = cls._schema_on_200.value.Element.properties.virtual_machine_scale_set_migration_info
virtual_machine_scale_set_migration_info.default_virtual_machine_scale_set_info = AAZObjectType(
serialized_name="defaultVirtualMachineScaleSetInfo",
flags={"read_only": True},
)
virtual_machine_scale_set_migration_info.migrate_to_virtual_machine_scale_set = AAZObjectType(
serialized_name="migrateToVirtualMachineScaleSet",
flags={"read_only": True},
)
_ListHelper._build_schema_sub_resource_read(virtual_machine_scale_set_migration_info.migrate_to_virtual_machine_scale_set)

default_virtual_machine_scale_set_info = cls._schema_on_200.value.Element.properties.virtual_machine_scale_set_migration_info.default_virtual_machine_scale_set_info
default_virtual_machine_scale_set_info.constrained_maximum_capacity = AAZBoolType(
serialized_name="constrainedMaximumCapacity",
flags={"read_only": True},
)
default_virtual_machine_scale_set_info.default_virtual_machine_scale_set = AAZObjectType(
serialized_name="defaultVirtualMachineScaleSet",
flags={"read_only": True},
)
_ListHelper._build_schema_sub_resource_read(default_virtual_machine_scale_set_info.default_virtual_machine_scale_set)

virtual_machines = cls._schema_on_200.value.Element.properties.virtual_machines
virtual_machines.Element = AAZObjectType()
_ListHelper._build_schema_sub_resource_read(virtual_machines.Element)
Expand All @@ -249,6 +290,26 @@ def _build_schema_on_200(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)

tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()

Expand Down Expand Up @@ -298,7 +359,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2024-07-01",
"api-version", "2025-04-01",
required=True,
),
}
Expand Down Expand Up @@ -355,6 +416,10 @@ def _build_schema_on_200(cls):
flags={"client_flatten": True},
)
_element.sku = AAZObjectType()
_element.system_data = AAZObjectType(
serialized_name="systemData",
flags={"read_only": True},
)
_element.tags = AAZDictType()
_element.type = AAZStrType(
flags={"read_only": True},
Expand All @@ -377,11 +442,18 @@ def _build_schema_on_200(cls):
properties.statuses = AAZListType(
flags={"read_only": True},
)
properties.virtual_machine_scale_set_migration_info = AAZObjectType(
serialized_name="virtualMachineScaleSetMigrationInfo",
flags={"read_only": True},
)
properties.virtual_machines = AAZListType(
serialized_name="virtualMachines",
)

scheduled_events_policy = cls._schema_on_200.value.Element.properties.scheduled_events_policy
scheduled_events_policy.all_instances_down = AAZObjectType(
serialized_name="allInstancesDown",
)
scheduled_events_policy.scheduled_events_additional_publishing_targets = AAZObjectType(
serialized_name="scheduledEventsAdditionalPublishingTargets",
)
Expand All @@ -392,13 +464,21 @@ def _build_schema_on_200(cls):
serialized_name="userInitiatedRedeploy",
)

all_instances_down = cls._schema_on_200.value.Element.properties.scheduled_events_policy.all_instances_down
all_instances_down.automatically_approve = AAZBoolType(
serialized_name="automaticallyApprove",
)

scheduled_events_additional_publishing_targets = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets
scheduled_events_additional_publishing_targets.event_grid_and_resource_graph = AAZObjectType(
serialized_name="eventGridAndResourceGraph",
)

event_grid_and_resource_graph = cls._schema_on_200.value.Element.properties.scheduled_events_policy.scheduled_events_additional_publishing_targets.event_grid_and_resource_graph
event_grid_and_resource_graph.enable = AAZBoolType()
event_grid_and_resource_graph.scheduled_events_api_version = AAZStrType(
serialized_name="scheduledEventsApiVersion",
)

user_initiated_reboot = cls._schema_on_200.value.Element.properties.scheduled_events_policy.user_initiated_reboot
user_initiated_reboot.automatically_approve = AAZBoolType(
Expand All @@ -422,6 +502,28 @@ def _build_schema_on_200(cls):
_element.message = AAZStrType()
_element.time = AAZStrType()

virtual_machine_scale_set_migration_info = cls._schema_on_200.value.Element.properties.virtual_machine_scale_set_migration_info
virtual_machine_scale_set_migration_info.default_virtual_machine_scale_set_info = AAZObjectType(
serialized_name="defaultVirtualMachineScaleSetInfo",
flags={"read_only": True},
)
virtual_machine_scale_set_migration_info.migrate_to_virtual_machine_scale_set = AAZObjectType(
serialized_name="migrateToVirtualMachineScaleSet",
flags={"read_only": True},
)
_ListHelper._build_schema_sub_resource_read(virtual_machine_scale_set_migration_info.migrate_to_virtual_machine_scale_set)

default_virtual_machine_scale_set_info = cls._schema_on_200.value.Element.properties.virtual_machine_scale_set_migration_info.default_virtual_machine_scale_set_info
default_virtual_machine_scale_set_info.constrained_maximum_capacity = AAZBoolType(
serialized_name="constrainedMaximumCapacity",
flags={"read_only": True},
)
default_virtual_machine_scale_set_info.default_virtual_machine_scale_set = AAZObjectType(
serialized_name="defaultVirtualMachineScaleSet",
flags={"read_only": True},
)
_ListHelper._build_schema_sub_resource_read(default_virtual_machine_scale_set_info.default_virtual_machine_scale_set)

virtual_machines = cls._schema_on_200.value.Element.properties.virtual_machines
virtual_machines.Element = AAZObjectType()
_ListHelper._build_schema_sub_resource_read(virtual_machines.Element)
Expand All @@ -431,6 +533,26 @@ def _build_schema_on_200(cls):
sku.name = AAZStrType()
sku.tier = AAZStrType()

system_data = cls._schema_on_200.value.Element.system_data
system_data.created_at = AAZStrType(
serialized_name="createdAt",
)
system_data.created_by = AAZStrType(
serialized_name="createdBy",
)
system_data.created_by_type = AAZStrType(
serialized_name="createdByType",
)
system_data.last_modified_at = AAZStrType(
serialized_name="lastModifiedAt",
)
system_data.last_modified_by = AAZStrType(
serialized_name="lastModifiedBy",
)
system_data.last_modified_by_type = AAZStrType(
serialized_name="lastModifiedByType",
)

tags = cls._schema_on_200.value.Element.tags
tags.Element = AAZStrType()

Expand Down
Loading