Skip to content

Commit

Permalink
CodeGen from PR 12278 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Network august release (Azure#12278)

* Adds base for updating Microsoft.Network from version stable/2020-07-01 to version 2020-08-01

* Updates readme

* Updates API version in new specs and examples

* add patch operation for express route gateway (Azure#11553)

* add patch

* fix example

* Added new cloud service NIC and PIP APIs (Azure#11650)

Co-authored-by: Richa Jain <ricjain@microsoft.com>

* Adding support for Vpn Link Connection Mode (Azure#11574)

Co-authored-by: Abhishek Shah <shabhis@microsoft.com>

* Reverting the changes made for address space update as the changes in service code are not in yet (Azure#11754)

Co-authored-by: Hari Prasad Perabattula <haperaba@microsoft.com>

* VPN NAT for Virtual WAN feature changes (Azure#11815)

* VPN NAT for Virtual WAN feature changes

* PrettierCheck fixes

* Incorporate review comments and update examples

* Add edge zone parameters for networking resources and add extendedLocation property to customIpPrefix (Azure#11933)

* Add extendedLocation property to customIpPrefix

* Fix the directory

* Address linting errors

* Fix another linting error

* Add edge zone parameter for network interfaces

* Looks like edgeZone parameter is working when creating network interfaces

* EdgeZone parameter for load balancer

* Add edge zone parameter for public IP address

* Add edge zone parameter for public IP prefix

* Add edgeZone parameter for virtual networks

* Add edge zone parameter for custom IP prefix

Co-authored-by: Will Ehrich <william.ehrich@microsoft.com>

* Add location parameter to Loadbalancer Backend Address Pool Properties Format (Azure#11919)

* adding location parameter to backendaddresspoolpropertiesformat

* ran prettier

* Support for Listing IKE Security Associations for Virtual Network Gateway Connections (Azure#11572)

* Support to List IKE SAs on VNG Connection

* Updating GetIkeSas

* Update virtualNetworkGateway.json

* Added location headers

* Update virtualNetworkGateway.json

* Prettier fix

* Update custom-words.txt

* Update virtualNetworkGateway.json

* Update custom-words.txt

* Update virtualNetworkGateway.json

* Update virtualNetworkGateway.json

* Update virtualNetworkGateway.json

Co-authored-by: Abhishek Shah <shabhis@microsoft.com>

* [Fix] GetIkeSas returns result as string (Azure#12225)

* Removing IkeSaParameters

* Update custom-words.txt

* Update virtualNetworkGateway.json

* Update virtualNetworkGateway.json

* Update VirtualNetworkGatewayConnectionGetIkeSas.json

* Update virtualNetworkGateway.json

* Update VirtualNetworkGatewayConnectionGetIkeSas.json

Co-authored-by: Abhishek Shah <shabhis@microsoft.com>

* Add extended location properties for private link service and private endpoints and remove edge zone properties (Azure#12039)

* Remove edge zone parameter

* Add extended location for private endpoint and private link service

* Add examples

* Capitalization

* Prettier

Co-authored-by: Will Ehrich <william.ehrich@microsoft.com>

* Add missing properties of SecurityRule, Route and RouteTable (Azure#12215)

* Add missing properties of SecurityRule Route and RouteTable

* Set resourceGuid field to be read only

Co-authored-by: Xu Wang <wax@microsoft.com>

* Added placeholder instead of password (Azure#12299)

Co-authored-by: nimaller <71352534+nimaller@users.noreply.github.com>
Co-authored-by: Richa Jain <richa.jain1912@gmail.com>
Co-authored-by: Richa Jain <ricjain@microsoft.com>
Co-authored-by: Abhishek Shah <shah.abhi7860@gmail.com>
Co-authored-by: Abhishek Shah <shabhis@microsoft.com>
Co-authored-by: Hari Prasad Perabattula <harics24@users.noreply.github.com>
Co-authored-by: Hari Prasad Perabattula <haperaba@microsoft.com>
Co-authored-by: Nilambari <nilamd@microsoft.com>
Co-authored-by: William Ehrich <wdehrich@gmail.com>
Co-authored-by: Will Ehrich <william.ehrich@microsoft.com>
Co-authored-by: Kayden Wilkinson <69224099+Kawilki-M@users.noreply.github.com>
Co-authored-by: Xu Wang <wangxu724@gmail.com>
Co-authored-by: Xu Wang <wax@microsoft.com>
  • Loading branch information
14 people committed Jan 6, 2021
1 parent e188de6 commit 7c0c7d1
Show file tree
Hide file tree
Showing 6 changed files with 469 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,6 @@
SecurityProviderName,
SecurityPartnerProviderConnectionStatus,
VirtualNetworkPeeringState,
VirtualNetworkPeeringLevel,
VirtualNetworkGatewayType,
VpnType,
VpnGatewayGeneration,
Expand Down Expand Up @@ -1812,7 +1811,6 @@
'SecurityProviderName',
'SecurityPartnerProviderConnectionStatus',
'VirtualNetworkPeeringState',
'VirtualNetworkPeeringLevel',
'VirtualNetworkGatewayType',
'VpnType',
'VpnGatewayGeneration',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7714,8 +7714,6 @@ class ExpressRouteConnection(SubResource):
:type routing_weight: int
:param enable_internet_security: Enable internet security.
:type enable_internet_security: bool
:param express_route_gateway_bypass: Enable FastPath to vWan Firewall hub.
:type express_route_gateway_bypass: bool
:param routing_configuration: The Routing Configuration indicating the
associated and propagated route tables on this connection.
:type routing_configuration:
Expand All @@ -7737,7 +7735,6 @@ class ExpressRouteConnection(SubResource):
'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'},
'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'},
'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'},
'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'},
'routing_configuration': {'key': 'properties.routingConfiguration', 'type': 'RoutingConfiguration'},
'name': {'key': 'name', 'type': 'str'},
}
Expand All @@ -7749,7 +7746,6 @@ def __init__(self, **kwargs):
self.authorization_key = kwargs.get('authorization_key', None)
self.routing_weight = kwargs.get('routing_weight', None)
self.enable_internet_security = kwargs.get('enable_internet_security', None)
self.express_route_gateway_bypass = kwargs.get('express_route_gateway_bypass', None)
self.routing_configuration = kwargs.get('routing_configuration', None)
self.name = kwargs.get('name', None)

Expand Down Expand Up @@ -18125,14 +18121,10 @@ class VirtualNetworkPeering(SubResource):
(https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).
:type remote_virtual_network:
~azure.mgmt.network.v2020_07_01.models.SubResource
:param remote_address_space: The reference to the address space peered
with the remote virtual network.
:param remote_address_space: The reference to the remote virtual network
address space.
:type remote_address_space:
~azure.mgmt.network.v2020_07_01.models.AddressSpace
:param remote_virtual_network_address_space: The reference to the current
address space of the remote virtual network.
:type remote_virtual_network_address_space:
~azure.mgmt.network.v2020_07_01.models.AddressSpace
:param remote_bgp_communities: The reference to the remote virtual
network's Bgp Communities.
:type remote_bgp_communities:
Expand All @@ -18141,15 +18133,6 @@ class VirtualNetworkPeering(SubResource):
values include: 'Initiated', 'Connected', 'Disconnected'
:type peering_state: str or
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPeeringState
:param peering_sync_level: The peering sync status of the virtual network
peering. Possible values include: 'FullySynced', 'RemoteUnsynced',
'LocalUnsynced', 'LocalAndRemoteUnsynced'
:type peering_sync_level: str or
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPeeringLevel
:param sync_remote_address_space: Provided when user wants to sync the
peering with address space on the remote virtual network after the address
space is updated. Default value: False .
:type sync_remote_address_space: bool
:ivar provisioning_state: The provisioning state of the virtual network
peering resource. Possible values include: 'Succeeded', 'Updating',
'Deleting', 'Failed'
Expand All @@ -18176,11 +18159,8 @@ class VirtualNetworkPeering(SubResource):
'use_remote_gateways': {'key': 'properties.useRemoteGateways', 'type': 'bool'},
'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'},
'remote_address_space': {'key': 'properties.remoteAddressSpace', 'type': 'AddressSpace'},
'remote_virtual_network_address_space': {'key': 'properties.remoteVirtualNetworkAddressSpace', 'type': 'AddressSpace'},
'remote_bgp_communities': {'key': 'properties.remoteBgpCommunities', 'type': 'VirtualNetworkBgpCommunities'},
'peering_state': {'key': 'properties.peeringState', 'type': 'str'},
'peering_sync_level': {'key': 'properties.peeringSyncLevel', 'type': 'str'},
'sync_remote_address_space': {'key': 'properties.syncRemoteAddressSpace', 'type': 'bool'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
Expand All @@ -18194,11 +18174,8 @@ def __init__(self, **kwargs):
self.use_remote_gateways = kwargs.get('use_remote_gateways', None)
self.remote_virtual_network = kwargs.get('remote_virtual_network', None)
self.remote_address_space = kwargs.get('remote_address_space', None)
self.remote_virtual_network_address_space = kwargs.get('remote_virtual_network_address_space', None)
self.remote_bgp_communities = kwargs.get('remote_bgp_communities', None)
self.peering_state = kwargs.get('peering_state', None)
self.peering_sync_level = kwargs.get('peering_sync_level', None)
self.sync_remote_address_space = kwargs.get('sync_remote_address_space', False)
self.provisioning_state = None
self.name = kwargs.get('name', None)
self.etag = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7714,8 +7714,6 @@ class ExpressRouteConnection(SubResource):
:type routing_weight: int
:param enable_internet_security: Enable internet security.
:type enable_internet_security: bool
:param express_route_gateway_bypass: Enable FastPath to vWan Firewall hub.
:type express_route_gateway_bypass: bool
:param routing_configuration: The Routing Configuration indicating the
associated and propagated route tables on this connection.
:type routing_configuration:
Expand All @@ -7737,19 +7735,17 @@ class ExpressRouteConnection(SubResource):
'authorization_key': {'key': 'properties.authorizationKey', 'type': 'str'},
'routing_weight': {'key': 'properties.routingWeight', 'type': 'int'},
'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'},
'express_route_gateway_bypass': {'key': 'properties.expressRouteGatewayBypass', 'type': 'bool'},
'routing_configuration': {'key': 'properties.routingConfiguration', 'type': 'RoutingConfiguration'},
'name': {'key': 'name', 'type': 'str'},
}

def __init__(self, *, express_route_circuit_peering, name: str, id: str=None, authorization_key: str=None, routing_weight: int=None, enable_internet_security: bool=None, express_route_gateway_bypass: bool=None, routing_configuration=None, **kwargs) -> None:
def __init__(self, *, express_route_circuit_peering, name: str, id: str=None, authorization_key: str=None, routing_weight: int=None, enable_internet_security: bool=None, routing_configuration=None, **kwargs) -> None:
super(ExpressRouteConnection, self).__init__(id=id, **kwargs)
self.provisioning_state = None
self.express_route_circuit_peering = express_route_circuit_peering
self.authorization_key = authorization_key
self.routing_weight = routing_weight
self.enable_internet_security = enable_internet_security
self.express_route_gateway_bypass = express_route_gateway_bypass
self.routing_configuration = routing_configuration
self.name = name

Expand Down Expand Up @@ -18125,14 +18121,10 @@ class VirtualNetworkPeering(SubResource):
(https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering).
:type remote_virtual_network:
~azure.mgmt.network.v2020_07_01.models.SubResource
:param remote_address_space: The reference to the address space peered
with the remote virtual network.
:param remote_address_space: The reference to the remote virtual network
address space.
:type remote_address_space:
~azure.mgmt.network.v2020_07_01.models.AddressSpace
:param remote_virtual_network_address_space: The reference to the current
address space of the remote virtual network.
:type remote_virtual_network_address_space:
~azure.mgmt.network.v2020_07_01.models.AddressSpace
:param remote_bgp_communities: The reference to the remote virtual
network's Bgp Communities.
:type remote_bgp_communities:
Expand All @@ -18141,15 +18133,6 @@ class VirtualNetworkPeering(SubResource):
values include: 'Initiated', 'Connected', 'Disconnected'
:type peering_state: str or
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPeeringState
:param peering_sync_level: The peering sync status of the virtual network
peering. Possible values include: 'FullySynced', 'RemoteUnsynced',
'LocalUnsynced', 'LocalAndRemoteUnsynced'
:type peering_sync_level: str or
~azure.mgmt.network.v2020_07_01.models.VirtualNetworkPeeringLevel
:param sync_remote_address_space: Provided when user wants to sync the
peering with address space on the remote virtual network after the address
space is updated. Default value: False .
:type sync_remote_address_space: bool
:ivar provisioning_state: The provisioning state of the virtual network
peering resource. Possible values include: 'Succeeded', 'Updating',
'Deleting', 'Failed'
Expand All @@ -18176,29 +18159,23 @@ class VirtualNetworkPeering(SubResource):
'use_remote_gateways': {'key': 'properties.useRemoteGateways', 'type': 'bool'},
'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'},
'remote_address_space': {'key': 'properties.remoteAddressSpace', 'type': 'AddressSpace'},
'remote_virtual_network_address_space': {'key': 'properties.remoteVirtualNetworkAddressSpace', 'type': 'AddressSpace'},
'remote_bgp_communities': {'key': 'properties.remoteBgpCommunities', 'type': 'VirtualNetworkBgpCommunities'},
'peering_state': {'key': 'properties.peeringState', 'type': 'str'},
'peering_sync_level': {'key': 'properties.peeringSyncLevel', 'type': 'str'},
'sync_remote_address_space': {'key': 'properties.syncRemoteAddressSpace', 'type': 'bool'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, allow_virtual_network_access: bool=None, allow_forwarded_traffic: bool=None, allow_gateway_transit: bool=None, use_remote_gateways: bool=None, remote_virtual_network=None, remote_address_space=None, remote_virtual_network_address_space=None, remote_bgp_communities=None, peering_state=None, peering_sync_level=None, sync_remote_address_space: bool=False, name: str=None, **kwargs) -> None:
def __init__(self, *, id: str=None, allow_virtual_network_access: bool=None, allow_forwarded_traffic: bool=None, allow_gateway_transit: bool=None, use_remote_gateways: bool=None, remote_virtual_network=None, remote_address_space=None, remote_bgp_communities=None, peering_state=None, name: str=None, **kwargs) -> None:
super(VirtualNetworkPeering, self).__init__(id=id, **kwargs)
self.allow_virtual_network_access = allow_virtual_network_access
self.allow_forwarded_traffic = allow_forwarded_traffic
self.allow_gateway_transit = allow_gateway_transit
self.use_remote_gateways = use_remote_gateways
self.remote_virtual_network = remote_virtual_network
self.remote_address_space = remote_address_space
self.remote_virtual_network_address_space = remote_virtual_network_address_space
self.remote_bgp_communities = remote_bgp_communities
self.peering_state = peering_state
self.peering_sync_level = peering_sync_level
self.sync_remote_address_space = sync_remote_address_space
self.provisioning_state = None
self.name = name
self.etag = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -779,14 +779,6 @@ class VirtualNetworkPeeringState(str, Enum):
disconnected = "Disconnected"


class VirtualNetworkPeeringLevel(str, Enum):

fully_synced = "FullySynced"
remote_unsynced = "RemoteUnsynced"
local_unsynced = "LocalUnsynced"
local_and_remote_unsynced = "LocalAndRemoteUnsynced"


class VirtualNetworkGatewayType(str, Enum):

vpn = "Vpn"
Expand Down
Loading

0 comments on commit 7c0c7d1

Please sign in to comment.