Skip to content

Commit 031b161

Browse files
committed
ip-config
1 parent e1a34cc commit 031b161

Some content is hidden

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

43 files changed

+8956
-3495
lines changed

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7-
# swagger change: https://github.com/Azure/azure-rest-api-specs/pull/24526
87

98
# pylint: skip-file
109
# flake8: noqa

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/application_gateway/waf_policy/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7-
# swagger change: https://github.com/Azure/azure-rest-api-specs/pull/24526
87

98
# pylint: skip-file
109
# flake8: noqa

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7-
# swagger change: https://github.com/Azure/azure-rest-api-specs/pull/24526
87

98
# pylint: skip-file
109
# flake8: noqa

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nic/__cmd_group.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#
55
# Code generated by aaz-dev-tools
66
# --------------------------------------------------------------------------------------------
7-
# swagger change: https://github.com/Azure/azure-rest-api-specs/pull/24526
87

98
# pylint: skip-file
109
# flake8: noqa

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

Lines changed: 85 additions & 10 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nic/_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-11-01",
25+
"version": "2023-11-01",
2626
"resources": [
27-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkinterfaces/{}", "2022-11-01"],
27+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkinterfaces/{}", "2023-11-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-11-01",
145+
"api-version", "2023-11-01",
146146
required=True,
147147
),
148148
}

src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/nic/_list.py

Lines changed: 43 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class List(AAZCommand):
2424
"""
2525

2626
_aaz_info = {
27-
"version": "2022-11-01",
27+
"version": "2023-11-01",
2828
"resources": [
29-
["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/networkinterfaces", "2022-11-01"],
30-
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkinterfaces", "2022-11-01"],
29+
["mgmt-plane", "/subscriptions/{}/providers/microsoft.network/networkinterfaces", "2023-11-01"],
30+
["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.network/networkinterfaces", "2023-11-01"],
3131
]
3232
}
3333

@@ -53,12 +53,12 @@ def _build_arguments_schema(cls, *args, **kwargs):
5353

5454
def _execute_operations(self):
5555
self.pre_operations()
56-
condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id)
57-
condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True
56+
condition_0 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True
57+
condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id)
5858
if condition_0:
59-
self.NetworkInterfacesList(ctx=self.ctx)()
60-
if condition_1:
6159
self.NetworkInterfacesListAll(ctx=self.ctx)()
60+
if condition_1:
61+
self.NetworkInterfacesList(ctx=self.ctx)()
6262
self.post_operations()
6363

6464
@register_callback
@@ -74,7 +74,7 @@ def _output(self, *args, **kwargs):
7474
next_link = self.deserialize_output(self.ctx.vars.instance.next_link)
7575
return result, next_link
7676

77-
class NetworkInterfacesList(AAZHttpOperation):
77+
class NetworkInterfacesListAll(AAZHttpOperation):
7878
CLIENT_TYPE = "MgmtClient"
7979

8080
def __call__(self, *args, **kwargs):
@@ -88,7 +88,7 @@ def __call__(self, *args, **kwargs):
8888
@property
8989
def url(self):
9090
return self.client.format_url(
91-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces",
91+
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces",
9292
**self.url_parameters
9393
)
9494

@@ -103,10 +103,6 @@ def error_format(self):
103103
@property
104104
def url_parameters(self):
105105
parameters = {
106-
**self.serialize_url_param(
107-
"resourceGroupName", self.ctx.args.resource_group,
108-
required=True,
109-
),
110106
**self.serialize_url_param(
111107
"subscriptionId", self.ctx.subscription_id,
112108
required=True,
@@ -118,7 +114,7 @@ def url_parameters(self):
118114
def query_parameters(self):
119115
parameters = {
120116
**self.serialize_query_param(
121-
"api-version", "2022-11-01",
117+
"api-version", "2023-11-01",
122118
required=True,
123119
),
124120
}
@@ -163,7 +159,7 @@ def _build_schema_on_200(cls):
163159

164160
return cls._schema_on_200
165161

166-
class NetworkInterfacesListAll(AAZHttpOperation):
162+
class NetworkInterfacesList(AAZHttpOperation):
167163
CLIENT_TYPE = "MgmtClient"
168164

169165
def __call__(self, *args, **kwargs):
@@ -177,7 +173,7 @@ def __call__(self, *args, **kwargs):
177173
@property
178174
def url(self):
179175
return self.client.format_url(
180-
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkInterfaces",
176+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces",
181177
**self.url_parameters
182178
)
183179

@@ -192,6 +188,10 @@ def error_format(self):
192188
@property
193189
def url_parameters(self):
194190
parameters = {
191+
**self.serialize_url_param(
192+
"resourceGroupName", self.ctx.args.resource_group,
193+
required=True,
194+
),
195195
**self.serialize_url_param(
196196
"subscriptionId", self.ctx.subscription_id,
197197
required=True,
@@ -203,7 +203,7 @@ def url_parameters(self):
203203
def query_parameters(self):
204204
parameters = {
205205
**self.serialize_query_param(
206-
"api-version", "2022-11-01",
206+
"api-version", "2023-11-01",
207207
required=True,
208208
),
209209
}
@@ -516,6 +516,10 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
516516
properties.private_ip_address = AAZStrType(
517517
serialized_name="privateIPAddress",
518518
)
519+
properties.private_ip_address_prefix_length = AAZIntType(
520+
serialized_name="privateIPAddressPrefixLength",
521+
nullable=True,
522+
)
519523
properties.private_ip_address_version = AAZStrType(
520524
serialized_name="privateIPAddressVersion",
521525
)
@@ -524,6 +528,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
524528
)
525529
properties.private_link_connection_properties = AAZObjectType(
526530
serialized_name="privateLinkConnectionProperties",
531+
flags={"read_only": True},
527532
)
528533
properties.provisioning_state = AAZStrType(
529534
serialized_name="provisioningState",
@@ -623,6 +628,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
623628
properties.location = AAZStrType()
624629
properties.outbound_rule = AAZObjectType(
625630
serialized_name="outboundRule",
631+
flags={"read_only": True},
626632
)
627633
cls._build_schema_sub_resource_read(properties.outbound_rule)
628634
properties.outbound_rules = AAZListType(
@@ -633,6 +639,9 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
633639
serialized_name="provisioningState",
634640
flags={"read_only": True},
635641
)
642+
properties.sync_mode = AAZStrType(
643+
serialized_name="syncMode",
644+
)
636645
properties.tunnel_interfaces = AAZListType(
637646
serialized_name="tunnelInterfaces",
638647
)
@@ -675,6 +684,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
675684
cls._build_schema_sub_resource_read(properties.load_balancer_frontend_ip_configuration)
676685
properties.network_interface_ip_configuration = AAZObjectType(
677686
serialized_name="networkInterfaceIPConfiguration",
687+
flags={"read_only": True},
678688
)
679689
cls._build_schema_sub_resource_read(properties.network_interface_ip_configuration)
680690
properties.subnet = AAZObjectType()
@@ -738,6 +748,7 @@ def _build_schema_network_interface_ip_configuration_read(cls, _schema):
738748
cls._build_schema_sub_resource_read(properties.backend_address_pool)
739749
properties.backend_ip_configuration = AAZObjectType(
740750
serialized_name="backendIPConfiguration",
751+
flags={"read_only": True},
741752
)
742753
cls._build_schema_network_interface_ip_configuration_read(properties.backend_ip_configuration)
743754
properties.backend_port = AAZIntType(
@@ -893,6 +904,7 @@ def _build_schema_network_interface_read(cls, _schema):
893904
)
894905
properties.dscp_configuration = AAZObjectType(
895906
serialized_name="dscpConfiguration",
907+
flags={"read_only": True},
896908
)
897909
cls._build_schema_sub_resource_read(properties.dscp_configuration)
898910
properties.enable_accelerated_networking = AAZBoolType(
@@ -927,6 +939,7 @@ def _build_schema_network_interface_read(cls, _schema):
927939
)
928940
properties.private_endpoint = AAZObjectType(
929941
serialized_name="privateEndpoint",
942+
flags={"read_only": True},
930943
)
931944
cls._build_schema_private_endpoint_read(properties.private_endpoint)
932945
properties.private_link_service = AAZObjectType(
@@ -946,6 +959,7 @@ def _build_schema_network_interface_read(cls, _schema):
946959
)
947960
properties.virtual_machine = AAZObjectType(
948961
serialized_name="virtualMachine",
962+
flags={"read_only": True},
949963
)
950964
cls._build_schema_sub_resource_read(properties.virtual_machine)
951965
properties.vnet_encryption_supported = AAZBoolType(
@@ -1115,6 +1129,7 @@ def _build_schema_network_interface_read(cls, _schema):
11151129
)
11161130
properties.private_endpoint = AAZObjectType(
11171131
serialized_name="privateEndpoint",
1132+
flags={"read_only": True},
11181133
)
11191134
cls._build_schema_private_endpoint_read(properties.private_endpoint)
11201135
properties.private_endpoint_location = AAZStrType(
@@ -1595,6 +1610,7 @@ def _build_schema_public_ip_address_read(cls, _schema):
15951610
)
15961611
properties.ip_configuration = AAZObjectType(
15971612
serialized_name="ipConfiguration",
1613+
flags={"read_only": True},
15981614
)
15991615
cls._build_schema_ip_configuration_read(properties.ip_configuration)
16001616
properties.ip_tags = AAZListType(
@@ -1854,7 +1870,9 @@ def _build_schema_sub_resource_read(cls, _schema):
18541870
_schema.id = cls._schema_sub_resource_read.id
18551871
return
18561872

1857-
cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType()
1873+
cls._schema_sub_resource_read = _schema_sub_resource_read = AAZObjectType(
1874+
flags={"read_only": True}
1875+
)
18581876

18591877
sub_resource_read = _schema_sub_resource_read
18601878
sub_resource_read.id = AAZStrType()
@@ -1896,6 +1914,9 @@ def _build_schema_subnet_read(cls, _schema):
18961914
properties.application_gateway_ip_configurations = AAZListType(
18971915
serialized_name="applicationGatewayIPConfigurations",
18981916
)
1917+
properties.default_outbound_access = AAZBoolType(
1918+
serialized_name="defaultOutboundAccess",
1919+
)
18991920
properties.delegations = AAZListType()
19001921
properties.ip_allocations = AAZListType(
19011922
serialized_name="ipAllocations",
@@ -1950,6 +1971,9 @@ def _build_schema_subnet_read(cls, _schema):
19501971
properties.service_endpoints = AAZListType(
19511972
serialized_name="serviceEndpoints",
19521973
)
1974+
properties.sharing_scope = AAZStrType(
1975+
serialized_name="sharingScope",
1976+
)
19531977

19541978
address_prefixes = _schema_subnet_read.properties.address_prefixes
19551979
address_prefixes.Element = AAZStrType()
@@ -2125,6 +2149,7 @@ def _build_schema_subnet_read(cls, _schema):
21252149
)
21262150
properties.has_bgp_override = AAZBoolType(
21272151
serialized_name="hasBgpOverride",
2152+
flags={"read_only": True},
21282153
)
21292154
properties.next_hop_ip_address = AAZStrType(
21302155
serialized_name="nextHopIpAddress",

0 commit comments

Comments
 (0)