Skip to content

Commit

Permalink
CodeGen from PR 12903 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3c90ff8ccb6c1e46c0480643906d6b5c5388e8c8 into a1ce8e031b1a6f616839d5f9bc07cbd07e0deadb
  • Loading branch information
SDKAuto committed Feb 18, 2021
1 parent 14eb6f7 commit 90ca74a
Show file tree
Hide file tree
Showing 126 changed files with 92,413 additions and 78 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
overrides<msrest:optionsforoperations>`.
:return: DnsNameAvailabilityResult or ClientRawResponse if raw=true
:rtype:
~azure.mgmt.network.v2020_07_01.models.DnsNameAvailabilityResult or
~azure.mgmt.network.v2020_08_01.models.DnsNameAvailabilityResult or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
Expand Down Expand Up @@ -99,6 +99,8 @@ def check_dns_name_availability(self, location, domain_name_label, custom_header
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -119,7 +121,7 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_08_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand Down Expand Up @@ -149,6 +151,8 @@ def delete_bastion_shareable_link(self, resource_group_name, bastion_host_name,
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -175,7 +179,7 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of BastionSessionState
:rtype:
~azure.mgmt.network.v2020_07_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_07_01.models.BastionSessionState]
~azure.mgmt.network.v2020_08_01.models.BastionSessionStatePaged[~azure.mgmt.network.v2020_08_01.models.BastionSessionState]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -196,6 +200,8 @@ def disconnect_active_sessions(self, resource_group_name, bastion_host_name, ses
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -222,7 +228,7 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
:param authentication_method: VPN client authentication method.
Possible values include: 'EAPTLS', 'EAPMSCHAPv2'
:type authentication_method: str or
~azure.mgmt.network.v2020_07_01.models.AuthenticationMethod
~azure.mgmt.network.v2020_08_01.models.AuthenticationMethod
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -231,9 +237,9 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
:return: An instance of LROPoller that returns VpnProfileResponse or
ClientRawResponse<VpnProfileResponse> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.VpnProfileResponse]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_08_01.models.VpnProfileResponse]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.VpnProfileResponse]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_08_01.models.VpnProfileResponse]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -256,6 +262,8 @@ def generatevirtualwanvpnserverconfigurationvpnprofile(self, resource_group_name
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -282,9 +290,9 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
BastionActiveSessionListResult or
ClientRawResponse<BastionActiveSessionListResult> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.BastionActiveSessionListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_08_01.models.BastionActiveSessionListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.BastionActiveSessionListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_08_01.models.BastionActiveSessionListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -305,6 +313,8 @@ def get_active_sessions(self, resource_group_name, bastion_host_name, custom_hea
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -325,15 +335,15 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_08_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
deserialized response
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
:return: An iterator like instance of BastionShareableLink
:rtype:
~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkPaged[~azure.mgmt.network.v2020_08_01.models.BastionShareableLink]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -354,6 +364,8 @@ def get_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -374,7 +386,7 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
:type bastion_host_name: str
:param vms: List of VM references.
:type vms:
list[~azure.mgmt.network.v2020_07_01.models.BastionShareableLink]
list[~azure.mgmt.network.v2020_08_01.models.BastionShareableLink]
:param dict custom_headers: headers that will be added to the request
:param bool raw: The poller return type is ClientRawResponse, the
direct response alongside the deserialized response
Expand All @@ -384,9 +396,9 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
BastionShareableLinkListResult or
ClientRawResponse<BastionShareableLinkListResult> if raw==True
:rtype:
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkListResult]
~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListResult]
or
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_07_01.models.BastionShareableLinkListResult]]
~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.network.v2020_08_01.models.BastionShareableLinkListResult]]
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
"""
Expand All @@ -407,6 +419,8 @@ def put_bastion_shareable_link(self, resource_group_name, bastion_host_name, vms
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand All @@ -432,7 +446,7 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
overrides<msrest:optionsforoperations>`.
:return: VirtualWanSecurityProviders or ClientRawResponse if raw=true
:rtype:
~azure.mgmt.network.v2020_07_01.models.VirtualWanSecurityProviders or
~azure.mgmt.network.v2020_08_01.models.VirtualWanSecurityProviders or
~msrest.pipeline.ClientRawResponse
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
Expand Down Expand Up @@ -472,6 +486,8 @@ def supported_security_providers(self, resource_group_name, virtual_wan_name, cu
from .v2020_06_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-07-01':
from .v2020_07_01.operations import NetworkManagementClientOperationsMixin as OperationClass
elif api_version == '2020-08-01':
from .v2020_08_01.operations import NetworkManagementClientOperationsMixin as OperationClass
else:
raise NotImplementedError("APIVersion {} is not available".format(api_version))
mixin_instance = OperationClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
from .v2019_02_01.models import *
from .v2019_07_01.models import *
from .v2020_04_01.models import *
from .v2020_07_01.models import *
from .v2020_08_01.models import *
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
Loading

0 comments on commit 90ca74a

Please sign in to comment.