Skip to content

Commit 05ec043

Browse files
author
SDKAuto
committed
CodeGen from PR 12570 in Azure/azure-rest-api-specs
fixing NRP networking resource properties (Azure#12570) * fixing NRP networking resource properties * fixing natgateway and privatelinkservice references * adding custom word privatelinkservice * virtualnetwork prettier fix * added custom word natgateway * added more missing resource properties as per S360 * correct natgateway reference * revert 'Error' property casing * fix linkedpublicipaddress property * adding enum values * added prefixes and prettier check done * added prefix for 2 properties
1 parent f7062ad commit 05ec043

File tree

8 files changed

+413
-24
lines changed

8 files changed

+413
-24
lines changed

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/models/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -1200,6 +1200,7 @@
12001200
LoadDistribution,
12011201
ManagedRuleEnabledState,
12021202
NatGatewaySkuName,
1203+
NetworkInterfaceNicType,
12031204
NetworkOperationStatus,
12041205
NextHopType,
12051206
OfficeTrafficCategory,
@@ -1217,6 +1218,7 @@
12171218
Protocol,
12181219
ProtocolType,
12191220
ProvisioningState,
1221+
PublicIPAddressMigrationPhase,
12201222
PublicIPAddressSkuName,
12211223
PublicIPAddressSkuTier,
12221224
PublicIPPrefixSkuName,
@@ -1244,6 +1246,8 @@
12441246
VirtualNetworkGatewaySkuTier,
12451247
VirtualNetworkGatewayType,
12461248
VirtualNetworkPeeringState,
1249+
VirtualNetworkPrivateEndpointNetworkPolicies,
1250+
VirtualNetworkPrivateLinkServiceNetworkPolicies,
12471251
VirtualWanSecurityProviderType,
12481252
VpnAuthenticationType,
12491253
VpnClientProtocol,
@@ -1902,6 +1906,7 @@
19021906
'LoadDistribution',
19031907
'ManagedRuleEnabledState',
19041908
'NatGatewaySkuName',
1909+
'NetworkInterfaceNicType',
19051910
'NetworkOperationStatus',
19061911
'NextHopType',
19071912
'OfficeTrafficCategory',
@@ -1919,6 +1924,7 @@
19191924
'Protocol',
19201925
'ProtocolType',
19211926
'ProvisioningState',
1927+
'PublicIPAddressMigrationPhase',
19221928
'PublicIPAddressSkuName',
19231929
'PublicIPAddressSkuTier',
19241930
'PublicIPPrefixSkuName',
@@ -1946,6 +1952,8 @@
19461952
'VirtualNetworkGatewaySkuTier',
19471953
'VirtualNetworkGatewayType',
19481954
'VirtualNetworkPeeringState',
1955+
'VirtualNetworkPrivateEndpointNetworkPolicies',
1956+
'VirtualNetworkPrivateLinkServiceNetworkPolicies',
19491957
'VirtualWanSecurityProviderType',
19501958
'VpnAuthenticationType',
19511959
'VpnClientProtocol',

sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_07_01/models/_models.py

+68-6
Original file line numberDiff line numberDiff line change
@@ -3038,13 +3038,16 @@ class AvailablePrivateEndpointType(msrest.serialization.Model):
30383038
:type type: str
30393039
:param resource_name: The name of the service and resource.
30403040
:type resource_name: str
3041+
:param display_name: Display name of the resource.
3042+
:type display_name: str
30413043
"""
30423044

30433045
_attribute_map = {
30443046
'name': {'key': 'name', 'type': 'str'},
30453047
'id': {'key': 'id', 'type': 'str'},
30463048
'type': {'key': 'type', 'type': 'str'},
30473049
'resource_name': {'key': 'resourceName', 'type': 'str'},
3050+
'display_name': {'key': 'displayName', 'type': 'str'},
30483051
}
30493052

30503053
def __init__(
@@ -3056,6 +3059,7 @@ def __init__(
30563059
self.id = kwargs.get('id', None)
30573060
self.type = kwargs.get('type', None)
30583061
self.resource_name = kwargs.get('resource_name', None)
3062+
self.display_name = kwargs.get('display_name', None)
30593063

30603064

30613065
class AvailablePrivateEndpointTypesResult(msrest.serialization.Model):
@@ -11097,11 +11101,14 @@ class IPAddressAvailabilityResult(msrest.serialization.Model):
1109711101
:param available_ip_addresses: Contains other available private IP addresses if the asked for
1109811102
address is taken.
1109911103
:type available_ip_addresses: list[str]
11104+
:param is_platform_reserved: Private IP address platform reserved.
11105+
:type is_platform_reserved: bool
1110011106
"""
1110111107

1110211108
_attribute_map = {
1110311109
'available': {'key': 'available', 'type': 'bool'},
1110411110
'available_ip_addresses': {'key': 'availableIPAddresses', 'type': '[str]'},
11111+
'is_platform_reserved': {'key': 'isPlatformReserved', 'type': 'bool'},
1110511112
}
1110611113

1110711114
def __init__(
@@ -11111,6 +11118,7 @@ def __init__(
1111111118
super(IPAddressAvailabilityResult, self).__init__(**kwargs)
1111211119
self.available = kwargs.get('available', None)
1111311120
self.available_ip_addresses = kwargs.get('available_ip_addresses', None)
11121+
self.is_platform_reserved = kwargs.get('is_platform_reserved', None)
1111411122

1111511123

1111611124
class IpAllocation(Resource):
@@ -13284,6 +13292,11 @@ class NetworkInterface(Resource):
1328413292
:ivar provisioning_state: The provisioning state of the network interface resource. Possible
1328513293
values include: "Succeeded", "Updating", "Deleting", "Failed".
1328613294
:vartype provisioning_state: str or ~azure.mgmt.network.v2020_07_01.models.ProvisioningState
13295+
:param nic_type: Type of Network Interface resource. Possible values include: "Standard",
13296+
"Elastic".
13297+
:type nic_type: str or ~azure.mgmt.network.v2020_07_01.models.NetworkInterfaceNicType
13298+
:param private_link_service: Privatelinkservice of the network interface resource.
13299+
:type private_link_service: ~azure.mgmt.network.v2020_07_01.models.PrivateLinkService
1328713300
"""
1328813301

1328913302
_validation = {
@@ -13323,6 +13336,8 @@ class NetworkInterface(Resource):
1332313336
'dscp_configuration': {'key': 'properties.dscpConfiguration', 'type': 'SubResource'},
1332413337
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
1332513338
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
13339+
'nic_type': {'key': 'properties.nicType', 'type': 'str'},
13340+
'private_link_service': {'key': 'properties.privateLinkService', 'type': 'PrivateLinkService'},
1332613341
}
1332713342

1332813343
def __init__(
@@ -13346,6 +13361,8 @@ def __init__(
1334613361
self.dscp_configuration = None
1334713362
self.resource_guid = None
1334813363
self.provisioning_state = None
13364+
self.nic_type = kwargs.get('nic_type', None)
13365+
self.private_link_service = kwargs.get('private_link_service', None)
1334913366

1335013367

1335113368
class NetworkInterfaceAssociation(msrest.serialization.Model):
@@ -13440,6 +13457,8 @@ class NetworkInterfaceIPConfiguration(SubResource):
1344013457
:type name: str
1344113458
:ivar etag: A unique read-only string that changes whenever the resource is updated.
1344213459
:vartype etag: str
13460+
:param type: Resource type.
13461+
:type type: str
1344313462
:param virtual_network_taps: The reference to Virtual Network Taps.
1344413463
:type virtual_network_taps: list[~azure.mgmt.network.v2020_07_01.models.VirtualNetworkTap]
1344513464
:param application_gateway_backend_address_pools: The reference to
@@ -13491,6 +13510,7 @@ class NetworkInterfaceIPConfiguration(SubResource):
1349113510
'id': {'key': 'id', 'type': 'str'},
1349213511
'name': {'key': 'name', 'type': 'str'},
1349313512
'etag': {'key': 'etag', 'type': 'str'},
13513+
'type': {'key': 'type', 'type': 'str'},
1349413514
'virtual_network_taps': {'key': 'properties.virtualNetworkTaps', 'type': '[VirtualNetworkTap]'},
1349513515
'application_gateway_backend_address_pools': {'key': 'properties.applicationGatewayBackendAddressPools', 'type': '[ApplicationGatewayBackendAddressPool]'},
1349613516
'load_balancer_backend_address_pools': {'key': 'properties.loadBalancerBackendAddressPools', 'type': '[BackendAddressPool]'},
@@ -13513,6 +13533,7 @@ def __init__(
1351313533
super(NetworkInterfaceIPConfiguration, self).__init__(**kwargs)
1351413534
self.name = kwargs.get('name', None)
1351513535
self.etag = None
13536+
self.type = kwargs.get('type', None)
1351613537
self.virtual_network_taps = kwargs.get('virtual_network_taps', None)
1351713538
self.application_gateway_backend_address_pools = kwargs.get('application_gateway_backend_address_pools', None)
1351813539
self.load_balancer_backend_address_pools = kwargs.get('load_balancer_backend_address_pools', None)
@@ -16520,6 +16541,15 @@ class PublicIPAddress(Resource):
1652016541
:ivar provisioning_state: The provisioning state of the public IP address resource. Possible
1652116542
values include: "Succeeded", "Updating", "Deleting", "Failed".
1652216543
:vartype provisioning_state: str or ~azure.mgmt.network.v2020_07_01.models.ProvisioningState
16544+
:param nat_gateway: The NatGateway for the Public IP address.
16545+
:type nat_gateway: ~azure.mgmt.network.v2020_07_01.models.NatGateway
16546+
:param migration_phase: Migration phase of Public IP Address. Possible values include: "None",
16547+
"Prepare", "Commit", "Abort", "Committed".
16548+
:type migration_phase: str or
16549+
~azure.mgmt.network.v2020_07_01.models.PublicIPAddressMigrationPhase
16550+
:param linked_public_ip_address: The linked public IP address of the public IP address
16551+
resource.
16552+
:type linked_public_ip_address: ~azure.mgmt.network.v2020_07_01.models.PublicIPAddress
1652316553
"""
1652416554

1652516555
_validation = {
@@ -16552,6 +16582,9 @@ class PublicIPAddress(Resource):
1655216582
'idle_timeout_in_minutes': {'key': 'properties.idleTimeoutInMinutes', 'type': 'int'},
1655316583
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
1655416584
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
16585+
'nat_gateway': {'key': 'properties.natGateway', 'type': 'NatGateway'},
16586+
'migration_phase': {'key': 'properties.migrationPhase', 'type': 'str'},
16587+
'linked_public_ip_address': {'key': 'properties.linkedPublicIPAddress', 'type': 'PublicIPAddress'},
1655516588
}
1655616589

1655716590
def __init__(
@@ -16574,6 +16607,9 @@ def __init__(
1657416607
self.idle_timeout_in_minutes = kwargs.get('idle_timeout_in_minutes', None)
1657516608
self.resource_guid = None
1657616609
self.provisioning_state = None
16610+
self.nat_gateway = kwargs.get('nat_gateway', None)
16611+
self.migration_phase = kwargs.get('migration_phase', None)
16612+
self.linked_public_ip_address = kwargs.get('linked_public_ip_address', None)
1657716613

1657816614

1657916615
class PublicIPAddressDnsSettings(msrest.serialization.Model):
@@ -16702,6 +16738,8 @@ class PublicIPPrefix(Resource):
1670216738
:ivar provisioning_state: The provisioning state of the public IP prefix resource. Possible
1670316739
values include: "Succeeded", "Updating", "Deleting", "Failed".
1670416740
:vartype provisioning_state: str or ~azure.mgmt.network.v2020_07_01.models.ProvisioningState
16741+
:param nat_gateway: NatGateway of Public IP Prefix.
16742+
:type nat_gateway: ~azure.mgmt.network.v2020_07_01.models.NatGateway
1670516743
"""
1670616744

1670716745
_validation = {
@@ -16734,6 +16772,7 @@ class PublicIPPrefix(Resource):
1673416772
'custom_ip_prefix': {'key': 'properties.customIPPrefix', 'type': 'SubResource'},
1673516773
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
1673616774
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
16775+
'nat_gateway': {'key': 'properties.natGateway', 'type': 'NatGateway'},
1673716776
}
1673816777

1673916778
def __init__(
@@ -16754,6 +16793,7 @@ def __init__(
1675416793
self.custom_ip_prefix = kwargs.get('custom_ip_prefix', None)
1675516794
self.resource_guid = None
1675616795
self.provisioning_state = None
16796+
self.nat_gateway = kwargs.get('nat_gateway', None)
1675716797

1675816798

1675916799
class PublicIPPrefixListResult(msrest.serialization.Model):
@@ -18097,20 +18137,24 @@ class ServiceTagInformationPropertiesFormat(msrest.serialization.Model):
1809718137
:vartype system_service: str
1809818138
:ivar address_prefixes: The list of IP address prefixes.
1809918139
:vartype address_prefixes: list[str]
18140+
:ivar state: The state of the service tag.
18141+
:vartype state: str
1810018142
"""
1810118143

1810218144
_validation = {
1810318145
'change_number': {'readonly': True},
1810418146
'region': {'readonly': True},
1810518147
'system_service': {'readonly': True},
1810618148
'address_prefixes': {'readonly': True},
18149+
'state': {'readonly': True},
1810718150
}
1810818151

1810918152
_attribute_map = {
1811018153
'change_number': {'key': 'changeNumber', 'type': 'str'},
1811118154
'region': {'key': 'region', 'type': 'str'},
1811218155
'system_service': {'key': 'systemService', 'type': 'str'},
1811318156
'address_prefixes': {'key': 'addressPrefixes', 'type': '[str]'},
18157+
'state': {'key': 'state', 'type': 'str'},
1811418158
}
1811518159

1811618160
def __init__(
@@ -18122,6 +18166,7 @@ def __init__(
1812218166
self.region = None
1812318167
self.system_service = None
1812418168
self.address_prefixes = None
18169+
self.state = None
1812518170

1812618171

1812718172
class ServiceTagsListResult(msrest.serialization.Model):
@@ -18237,6 +18282,8 @@ class Subnet(SubResource):
1823718282
:type name: str
1823818283
:ivar etag: A unique read-only string that changes whenever the resource is updated.
1823918284
:vartype etag: str
18285+
:param type: Resource type.
18286+
:type type: str
1824018287
:param address_prefix: The address prefix for the subnet.
1824118288
:type address_prefix: str
1824218289
:param address_prefixes: List of address prefixes for the subnet.
@@ -18279,11 +18326,15 @@ class Subnet(SubResource):
1827918326
include: "Succeeded", "Updating", "Deleting", "Failed".
1828018327
:vartype provisioning_state: str or ~azure.mgmt.network.v2020_07_01.models.ProvisioningState
1828118328
:param private_endpoint_network_policies: Enable or Disable apply network policies on private
18282-
end point in the subnet.
18283-
:type private_endpoint_network_policies: str
18329+
end point in the subnet. Possible values include: "Enabled", "Disabled". Default value:
18330+
"Enabled".
18331+
:type private_endpoint_network_policies: str or
18332+
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPrivateEndpointNetworkPolicies
1828418333
:param private_link_service_network_policies: Enable or Disable apply network policies on
18285-
private link service in the subnet.
18286-
:type private_link_service_network_policies: str
18334+
private link service in the subnet. Possible values include: "Enabled", "Disabled". Default
18335+
value: "Enabled".
18336+
:type private_link_service_network_policies: str or
18337+
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPrivateLinkServiceNetworkPolicies
1828718338
"""
1828818339

1828918340
_validation = {
@@ -18301,6 +18352,7 @@ class Subnet(SubResource):
1830118352
'id': {'key': 'id', 'type': 'str'},
1830218353
'name': {'key': 'name', 'type': 'str'},
1830318354
'etag': {'key': 'etag', 'type': 'str'},
18355+
'type': {'key': 'type', 'type': 'str'},
1830418356
'address_prefix': {'key': 'properties.addressPrefix', 'type': 'str'},
1830518357
'address_prefixes': {'key': 'properties.addressPrefixes', 'type': '[str]'},
1830618358
'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'NetworkSecurityGroup'},
@@ -18328,6 +18380,7 @@ def __init__(
1832818380
super(Subnet, self).__init__(**kwargs)
1832918381
self.name = kwargs.get('name', None)
1833018382
self.etag = None
18383+
self.type = kwargs.get('type', None)
1833118384
self.address_prefix = kwargs.get('address_prefix', None)
1833218385
self.address_prefixes = kwargs.get('address_prefixes', None)
1833318386
self.network_security_group = kwargs.get('network_security_group', None)
@@ -18344,8 +18397,8 @@ def __init__(
1834418397
self.delegations = kwargs.get('delegations', None)
1834518398
self.purpose = None
1834618399
self.provisioning_state = None
18347-
self.private_endpoint_network_policies = kwargs.get('private_endpoint_network_policies', None)
18348-
self.private_link_service_network_policies = kwargs.get('private_link_service_network_policies', None)
18400+
self.private_endpoint_network_policies = kwargs.get('private_endpoint_network_policies', "Enabled")
18401+
self.private_link_service_network_policies = kwargs.get('private_link_service_network_policies', "Enabled")
1834918402

1835018403

1835118404
class SubnetAssociation(msrest.serialization.Model):
@@ -20299,6 +20352,8 @@ class VirtualNetworkPeering(SubResource):
2029920352
:type name: str
2030020353
:ivar etag: A unique read-only string that changes whenever the resource is updated.
2030120354
:vartype etag: str
20355+
:param type: Resource type.
20356+
:type type: str
2030220357
:param allow_virtual_network_access: Whether the VMs in the local virtual network space would
2030320358
be able to access the VMs in remote virtual network space.
2030420359
:type allow_virtual_network_access: bool
@@ -20329,17 +20384,21 @@ class VirtualNetworkPeering(SubResource):
2032920384
:ivar provisioning_state: The provisioning state of the virtual network peering resource.
2033020385
Possible values include: "Succeeded", "Updating", "Deleting", "Failed".
2033120386
:vartype provisioning_state: str or ~azure.mgmt.network.v2020_07_01.models.ProvisioningState
20387+
:ivar resource_guid: The resourceGuid property of the Virtual Network peering resource.
20388+
:vartype resource_guid: str
2033220389
"""
2033320390

2033420391
_validation = {
2033520392
'etag': {'readonly': True},
2033620393
'provisioning_state': {'readonly': True},
20394+
'resource_guid': {'readonly': True},
2033720395
}
2033820396

2033920397
_attribute_map = {
2034020398
'id': {'key': 'id', 'type': 'str'},
2034120399
'name': {'key': 'name', 'type': 'str'},
2034220400
'etag': {'key': 'etag', 'type': 'str'},
20401+
'type': {'key': 'type', 'type': 'str'},
2034320402
'allow_virtual_network_access': {'key': 'properties.allowVirtualNetworkAccess', 'type': 'bool'},
2034420403
'allow_forwarded_traffic': {'key': 'properties.allowForwardedTraffic', 'type': 'bool'},
2034520404
'allow_gateway_transit': {'key': 'properties.allowGatewayTransit', 'type': 'bool'},
@@ -20349,6 +20408,7 @@ class VirtualNetworkPeering(SubResource):
2034920408
'remote_bgp_communities': {'key': 'properties.remoteBgpCommunities', 'type': 'VirtualNetworkBgpCommunities'},
2035020409
'peering_state': {'key': 'properties.peeringState', 'type': 'str'},
2035120410
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
20411+
'resource_guid': {'key': 'properties.resourceGuid', 'type': 'str'},
2035220412
}
2035320413

2035420414
def __init__(
@@ -20358,6 +20418,7 @@ def __init__(
2035820418
super(VirtualNetworkPeering, self).__init__(**kwargs)
2035920419
self.name = kwargs.get('name', None)
2036020420
self.etag = None
20421+
self.type = kwargs.get('type', None)
2036120422
self.allow_virtual_network_access = kwargs.get('allow_virtual_network_access', None)
2036220423
self.allow_forwarded_traffic = kwargs.get('allow_forwarded_traffic', None)
2036320424
self.allow_gateway_transit = kwargs.get('allow_gateway_transit', None)
@@ -20367,6 +20428,7 @@ def __init__(
2036720428
self.remote_bgp_communities = kwargs.get('remote_bgp_communities', None)
2036820429
self.peering_state = kwargs.get('peering_state', None)
2036920430
self.provisioning_state = None
20431+
self.resource_guid = None
2037020432

2037120433

2037220434
class VirtualNetworkPeeringListResult(msrest.serialization.Model):

0 commit comments

Comments
 (0)