Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{Compute} az vmss: Bump API version to 2023-09-01 #28122

Merged
merged 4 commits into from
Jan 12, 2024
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 @@ -855,7 +855,7 @@ interactions:
User-Agent:
- AZURECLI/2.54.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-6.2.0-1016-azure-x86_64-with-glibc2.29)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-03-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-09-01
response:
body:
string: "{\r\n \"value\": [\r\n {\r\n \"name\": \"aks-nodepool1-39882998-vmss\",\r\n
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class Delete(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}", "2023-09-01"],
]
}

Expand Down Expand Up @@ -146,7 +146,7 @@ def query_parameters(self):
"forceDeletion", self.ctx.args.force_deletion,
),
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class GetOsUpgradeHistory(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/osupgradehistory", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/osupgradehistory", "2023-09-01"],
]
}

Expand Down Expand Up @@ -118,7 +118,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down
134 changes: 129 additions & 5 deletions src/azure-cli/azure/cli/command_modules/vm/aaz/latest/vmss/_list.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ class ListInstances(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines", "2023-09-01"],
]
}

Expand Down Expand Up @@ -141,7 +141,7 @@ def query_parameters(self):
"$select", self.ctx.args.select,
),
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down Expand Up @@ -185,6 +185,9 @@ def _build_schema_on_200(cls):
value.Element = AAZObjectType()

_element = cls._schema_on_200.value.Element
_element.etag = AAZStrType(
flags={"read_only": True},
)
_element.id = AAZStrType(
flags={"read_only": True},
)
Expand Down Expand Up @@ -300,6 +303,10 @@ def _build_schema_on_200(cls):
properties.storage_profile = AAZObjectType(
serialized_name="storageProfile",
)
properties.time_created = AAZStrType(
serialized_name="timeCreated",
flags={"read_only": True},
)
properties.user_data = AAZStrType(
serialized_name="userData",
)
Expand Down Expand Up @@ -500,6 +507,12 @@ def _build_schema_on_200(cls):
)

properties = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties
properties.auxiliary_mode = AAZStrType(
serialized_name="auxiliaryMode",
)
properties.auxiliary_sku = AAZStrType(
serialized_name="auxiliarySku",
)
properties.delete_option = AAZStrType(
serialized_name="deleteOption",
)
Expand Down Expand Up @@ -622,6 +635,9 @@ def _build_schema_on_200(cls):
serialized_name="domainNameLabel",
flags={"required": True},
)
dns_settings.domain_name_label_scope = AAZStrType(
serialized_name="domainNameLabelScope",
)

ip_tags = cls._schema_on_200.value.Element.properties.network_profile.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags
ip_tags.Element = AAZObjectType()
Expand Down Expand Up @@ -664,6 +680,12 @@ def _build_schema_on_200(cls):
)

properties = cls._schema_on_200.value.Element.properties.network_profile_configuration.network_interface_configurations.Element.properties
properties.auxiliary_mode = AAZStrType(
serialized_name="auxiliaryMode",
)
properties.auxiliary_sku = AAZStrType(
serialized_name="auxiliarySku",
)
properties.delete_option = AAZStrType(
serialized_name="deleteOption",
)
Expand Down Expand Up @@ -785,6 +807,9 @@ def _build_schema_on_200(cls):
serialized_name="domainNameLabel",
flags={"required": True},
)
dns_settings.domain_name_label_scope = AAZStrType(
serialized_name="domainNameLabelScope",
)

ip_tags = cls._schema_on_200.value.Element.properties.network_profile_configuration.network_interface_configurations.Element.properties.ip_configurations.Element.properties.public_ip_address_configuration.properties.ip_tags
ip_tags.Element = AAZObjectType()
Expand Down Expand Up @@ -981,13 +1006,31 @@ def _build_schema_on_200(cls):
security_profile.encryption_at_host = AAZBoolType(
serialized_name="encryptionAtHost",
)
security_profile.encryption_identity = AAZObjectType(
serialized_name="encryptionIdentity",
)
security_profile.proxy_agent_settings = AAZObjectType(
serialized_name="proxyAgentSettings",
)
security_profile.security_type = AAZStrType(
serialized_name="securityType",
)
security_profile.uefi_settings = AAZObjectType(
serialized_name="uefiSettings",
)

encryption_identity = cls._schema_on_200.value.Element.properties.security_profile.encryption_identity
encryption_identity.user_assigned_identity_resource_id = AAZStrType(
serialized_name="userAssignedIdentityResourceId",
)

proxy_agent_settings = cls._schema_on_200.value.Element.properties.security_profile.proxy_agent_settings
proxy_agent_settings.enabled = AAZBoolType()
proxy_agent_settings.key_incarnation_id = AAZIntType(
serialized_name="keyIncarnationId",
)
proxy_agent_settings.mode = AAZStrType()

uefi_settings = cls._schema_on_200.value.Element.properties.security_profile.uefi_settings
uefi_settings.secure_boot_enabled = AAZBoolType(
serialized_name="secureBootEnabled",
Expand Down Expand Up @@ -1144,6 +1187,9 @@ def _build_schema_on_200(cls):
serialized_name="instanceView",
)
_ListInstancesHelper._build_schema_virtual_machine_extension_instance_view_read(properties.instance_view)
properties.protected_settings = AAZObjectType(
serialized_name="protectedSettings",
)
properties.protected_settings_from_key_vault = AAZObjectType(
serialized_name="protectedSettingsFromKeyVault",
)
Expand All @@ -1156,6 +1202,7 @@ def _build_schema_on_200(cls):
flags={"read_only": True},
)
properties.publisher = AAZStrType()
properties.settings = AAZObjectType()
properties.suppress_failures = AAZBoolType(
serialized_name="suppressFailures",
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ListSkus(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/skus", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/skus", "2023-09-01"],
]
}

Expand Down Expand Up @@ -118,7 +118,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class PerformMaintenance(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/performmaintenance", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/performmaintenance", "2023-09-01"],
]
}

Expand Down Expand Up @@ -142,7 +142,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class SimulateEviction(AAZCommand):
"""

_aaz_info = {
"version": "2023-03-01",
"version": "2023-09-01",
"resources": [
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}/simulateeviction", "2023-03-01"],
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.compute/virtualmachinescalesets/{}/virtualmachines/{}/simulateeviction", "2023-09-01"],
]
}

Expand Down Expand Up @@ -126,7 +126,7 @@ def url_parameters(self):
def query_parameters(self):
parameters = {
**self.serialize_query_param(
"api-version", "2023-03-01",
"api-version", "2023-09-01",
required=True,
),
}
Expand Down
Loading