Skip to content

Commit 1f27224

Browse files
authored
{Network} StandardV2 for NAT Gateway and Public IP (#31532)
1 parent 485f49f commit 1f27224

File tree

141 files changed

+34855
-25350
lines changed

Some content is hidden

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

141 files changed

+34855
-25350
lines changed

src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_node_public_ip.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interactions:
2020
User-Agent:
2121
- AZURECLI/2.49.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29)
2222
method: PUT
23-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003?api-version=2022-09-01
23+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003?api-version=2024-07-01
2424
response:
2525
body:
2626
string: "{\r\n \"name\": \"cliaksipprefix000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003\",\r\n
@@ -176,7 +176,7 @@ interactions:
176176
User-Agent:
177177
- AZURECLI/2.49.0 (AAZ) azsdk-python-core/1.26.0 Python/3.8.10 (Linux-5.15.0-1039-azure-x86_64-with-glibc2.29)
178178
method: GET
179-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003?api-version=2022-09-01
179+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003?api-version=2024-07-01
180180
response:
181181
body:
182182
string: "{\r\n \"name\": \"cliaksipprefix000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksipprefix000003\",\r\n

src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_slb_vmss_with_outbound_ip_prefixes_then_update_msi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interactions:
2020
User-Agent:
2121
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
2222
method: PUT
23-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002?api-version=2022-09-01
23+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002?api-version=2024-07-01
2424
response:
2525
body:
2626
string: "{\r\n \"name\": \"cliaksslbipp1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002\",\r\n
@@ -171,7 +171,7 @@ interactions:
171171
User-Agent:
172172
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
173173
method: GET
174-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002?api-version=2022-09-01
174+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002?api-version=2024-07-01
175175
response:
176176
body:
177177
string: "{\r\n \"name\": \"cliaksslbipp1000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp1000002\",\r\n
@@ -231,7 +231,7 @@ interactions:
231231
User-Agent:
232232
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
233233
method: PUT
234-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003?api-version=2022-09-01
234+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003?api-version=2024-07-01
235235
response:
236236
body:
237237
string: "{\r\n \"name\": \"cliaksslbipp2000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003\",\r\n
@@ -382,7 +382,7 @@ interactions:
382382
User-Agent:
383383
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
384384
method: GET
385-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003?api-version=2022-09-01
385+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003?api-version=2024-07-01
386386
response:
387387
body:
388388
string: "{\r\n \"name\": \"cliaksslbipp2000003\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPPrefixes/cliaksslbipp2000003\",\r\n

src/azure-cli/azure/cli/command_modules/acs/tests/latest/recordings/test_aks_create_slb_vmss_with_outbound_ip_then_update_msi.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ interactions:
2020
User-Agent:
2121
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
2222
method: PUT
23-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002?api-version=2022-11-01
23+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002?api-version=2024-07-01
2424
response:
2525
body:
2626
string: '{"name":"cliaksslbip1000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002","etag":"W/\"1bdf3cc2-cfbb-4a00-bd2c-63711609f90e\"","location":"westcentralus","properties":{"provisioningState":"Updating","resourceGuid":"f7003fc8-c164-47de-bc14-7462b71dc77b","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -164,7 +164,7 @@ interactions:
164164
User-Agent:
165165
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
166166
method: GET
167-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002?api-version=2022-11-01
167+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002?api-version=2024-07-01
168168
response:
169169
body:
170170
string: '{"name":"cliaksslbip1000002","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip1000002","etag":"W/\"24abb0fc-8ab8-4ec1-81a5-0eb7dca10da2\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","resourceGuid":"f7003fc8-c164-47de-bc14-7462b71dc77b","ipAddress":"52.161.142.141","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -217,7 +217,7 @@ interactions:
217217
User-Agent:
218218
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
219219
method: PUT
220-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003?api-version=2022-11-01
220+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003?api-version=2024-07-01
221221
response:
222222
body:
223223
string: '{"name":"cliaksslbip2000003","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003","etag":"W/\"9b9dc802-e163-4bff-a3ed-c0c34b3a452d\"","location":"westcentralus","properties":{"provisioningState":"Updating","resourceGuid":"234c2eaa-30b9-440b-9867-7b8d2e36d10e","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -361,7 +361,7 @@ interactions:
361361
User-Agent:
362362
- AZURECLI/2.59.0 azsdk-python-core/1.28.0 Python/3.8.10 (Linux-6.5.0-1017-azure-x86_64-with-glibc2.29)
363363
method: GET
364-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003?api-version=2022-11-01
364+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003?api-version=2024-07-01
365365
response:
366366
body:
367367
string: '{"name":"cliaksslbip2000003","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliaksslbip2000003","etag":"W/\"62213989-1dad-4eb5-bb25-61ce63e92fbd\"","location":"westcentralus","properties":{"provisioningState":"Succeeded","resourceGuid":"234c2eaa-30b9-440b-9867-7b8d2e36d10e","ipAddress":"52.161.165.48","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'

src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_public_ip_metric_alerts_scenario.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ interactions:
6666
User-Agent:
6767
- AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0)
6868
method: PUT
69-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2022-11-01
69+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2024-07-01
7070
response:
7171
body:
7272
string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"b9f4efce-4514-48fc-a8fc-3a362cbfc498\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"42c64e85-9808-48a8-b36a-7d431d0067cf","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -172,7 +172,7 @@ interactions:
172172
User-Agent:
173173
- AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0)
174174
method: GET
175-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2022-11-01
175+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2024-07-01
176176
response:
177177
body:
178178
string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"e8e99c66-d090-473b-b9a7-25b6537230fe\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"42c64e85-9808-48a8-b36a-7d431d0067cf","ipAddress":"172.184.104.24","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -273,7 +273,7 @@ interactions:
273273
User-Agent:
274274
- AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0)
275275
method: PUT
276-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2022-11-01
276+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2024-07-01
277277
response:
278278
body:
279279
string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"fa561cba-dcf6-488c-96e9-2004e5a1a3fe\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"1553726b-fdb2-4a05-9a4b-514f07e6b901","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'
@@ -379,7 +379,7 @@ interactions:
379379
User-Agent:
380380
- AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0)
381381
method: GET
382-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2022-11-01
382+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2024-07-01
383383
response:
384384
body:
385385
string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"76689714-674c-4b53-9349-b1f1eafd809b\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"1553726b-fdb2-4a05-9a4b-514f07e6b901","ipAddress":"172.184.176.98","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}'

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_create.py

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Create(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2022-01-01",
25+
"version": "2024-07-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{}", "2022-01-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{}", "2024-07-01"],
2828
]
2929
}
3030

@@ -117,10 +117,28 @@ def _build_arguments_schema(cls, *args, **kwargs):
117117
sku.name = AAZStrArg(
118118
options=["name"],
119119
help="Name of Nat Gateway SKU.",
120-
enum={"Standard": "Standard"},
120+
enum={"Standard": "Standard", "StandardV2": "StandardV2"},
121121
)
122122
return cls._args_schema
123123

124+
_args_sub_resource_create = None
125+
126+
@classmethod
127+
def _build_args_sub_resource_create(cls, _schema):
128+
if cls._args_sub_resource_create is not None:
129+
_schema.id = cls._args_sub_resource_create.id
130+
return
131+
132+
cls._args_sub_resource_create = AAZObjectArg()
133+
134+
sub_resource_create = cls._args_sub_resource_create
135+
sub_resource_create.id = AAZStrArg(
136+
options=["id"],
137+
help="Resource ID.",
138+
)
139+
140+
_schema.id = cls._args_sub_resource_create.id
141+
124142
def _execute_operations(self):
125143
self.pre_operations()
126144
yield self.NatGatewaysCreateOrUpdate(ctx=self.ctx)()
@@ -202,7 +220,7 @@ def url_parameters(self):
202220
def query_parameters(self):
203221
parameters = {
204222
**self.serialize_query_param(
205-
"api-version", "2022-01-01",
223+
"api-version", "2024-07-01",
206224
required=True,
207225
),
208226
}
@@ -316,13 +334,23 @@ def _build_schema_on_200_201(cls):
316334
properties.public_ip_addresses = AAZListType(
317335
serialized_name="publicIpAddresses",
318336
)
337+
properties.public_ip_addresses_v6 = AAZListType(
338+
serialized_name="publicIpAddressesV6",
339+
)
319340
properties.public_ip_prefixes = AAZListType(
320341
serialized_name="publicIpPrefixes",
321342
)
343+
properties.public_ip_prefixes_v6 = AAZListType(
344+
serialized_name="publicIpPrefixesV6",
345+
)
322346
properties.resource_guid = AAZStrType(
323347
serialized_name="resourceGuid",
324348
flags={"read_only": True},
325349
)
350+
properties.source_virtual_network = AAZObjectType(
351+
serialized_name="sourceVirtualNetwork",
352+
)
353+
_CreateHelper._build_schema_sub_resource_read(properties.source_virtual_network)
326354
properties.subnets = AAZListType(
327355
flags={"read_only": True},
328356
)
@@ -331,10 +359,18 @@ def _build_schema_on_200_201(cls):
331359
public_ip_addresses.Element = AAZObjectType()
332360
_CreateHelper._build_schema_sub_resource_read(public_ip_addresses.Element)
333361

362+
public_ip_addresses_v6 = cls._schema_on_200_201.properties.public_ip_addresses_v6
363+
public_ip_addresses_v6.Element = AAZObjectType()
364+
_CreateHelper._build_schema_sub_resource_read(public_ip_addresses_v6.Element)
365+
334366
public_ip_prefixes = cls._schema_on_200_201.properties.public_ip_prefixes
335367
public_ip_prefixes.Element = AAZObjectType()
336368
_CreateHelper._build_schema_sub_resource_read(public_ip_prefixes.Element)
337369

370+
public_ip_prefixes_v6 = cls._schema_on_200_201.properties.public_ip_prefixes_v6
371+
public_ip_prefixes_v6.Element = AAZObjectType()
372+
_CreateHelper._build_schema_sub_resource_read(public_ip_prefixes_v6.Element)
373+
338374
subnets = cls._schema_on_200_201.properties.subnets
339375
subnets.Element = AAZObjectType()
340376
_CreateHelper._build_schema_sub_resource_read(subnets.Element)
@@ -354,6 +390,12 @@ def _build_schema_on_200_201(cls):
354390
class _CreateHelper:
355391
"""Helper class for Create"""
356392

393+
@classmethod
394+
def _build_schema_sub_resource_create(cls, _builder):
395+
if _builder is None:
396+
return
397+
_builder.set_prop("id", AAZStrType, ".id")
398+
357399
_schema_sub_resource_read = None
358400

359401
@classmethod

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nat/gateway/_delete.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ class Delete(AAZCommand):
2222
"""
2323

2424
_aaz_info = {
25-
"version": "2022-01-01",
25+
"version": "2024-07-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{}", "2022-01-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/natgateways/{}", "2024-07-01"],
2828
]
2929
}
3030

@@ -142,7 +142,7 @@ def url_parameters(self):
142142
def query_parameters(self):
143143
parameters = {
144144
**self.serialize_query_param(
145-
"api-version", "2022-01-01",
145+
"api-version", "2024-07-01",
146146
required=True,
147147
),
148148
}

0 commit comments

Comments
 (0)