Skip to content

Commit

Permalink
{Compute} az vmss: Bump API version to 2023-09-01 (Azure#28122)
Browse files Browse the repository at this point in the history
* vmss

* test

* update

* update
  • Loading branch information
Jing-song authored and MaxHorstmann committed Jan 19, 2024
1 parent a6a4cc7 commit 360dc71
Show file tree
Hide file tree
Showing 33 changed files with 14,821 additions and 9,274 deletions.
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

0 comments on commit 360dc71

Please sign in to comment.