Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR network/resource-manager] Swagger changes #3313

Merged
merged 2 commits into from
Sep 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -254,16 +254,28 @@
from .virtual_network_connection_gateway_reference_py3 import VirtualNetworkConnectionGatewayReference
from .virtual_network_gateway_connection_list_entity_py3 import VirtualNetworkGatewayConnectionListEntity
from .vpn_device_script_parameters_py3 import VpnDeviceScriptParameters
from .p2_svpn_server_config_vpn_client_root_certificate_py3 import P2SVpnServerConfigVpnClientRootCertificate
from .p2_svpn_server_config_vpn_client_revoked_certificate_py3 import P2SVpnServerConfigVpnClientRevokedCertificate
from .p2_svpn_server_config_radius_server_root_certificate_py3 import P2SVpnServerConfigRadiusServerRootCertificate
from .p2_svpn_server_config_radius_client_root_certificate_py3 import P2SVpnServerConfigRadiusClientRootCertificate
from .p2_svpn_server_configuration_py3 import P2SVpnServerConfiguration
from .virtual_wan_py3 import VirtualWAN
from .device_properties_py3 import DeviceProperties
from .vpn_site_py3 import VpnSite
from .get_vpn_sites_configuration_request_py3 import GetVpnSitesConfigurationRequest
from .hub_virtual_network_connection_py3 import HubVirtualNetworkConnection
from .virtual_hub_route_py3 import VirtualHubRoute
from .virtual_hub_route_table_py3 import VirtualHubRouteTable
from .virtual_hub_py3 import VirtualHub
from .vpn_connection_py3 import VpnConnection
from .policies_py3 import Policies
from .vpn_gateway_py3 import VpnGateway
from .vpn_site_id_py3 import VpnSiteId
from .virtual_wan_security_provider_py3 import VirtualWanSecurityProvider
from .virtual_wan_security_providers_py3 import VirtualWanSecurityProviders
from .vpn_client_connection_health_py3 import VpnClientConnectionHealth
from .p2_svpn_gateway_py3 import P2SVpnGateway
from .p2_svpn_profile_parameters_py3 import P2SVpnProfileParameters
from .vpn_profile_response_py3 import VpnProfileResponse
except (SyntaxError, ImportError):
from .network_interface_tap_configuration import NetworkInterfaceTapConfiguration
from .sub_resource import SubResource
Expand Down Expand Up @@ -509,16 +521,28 @@
from .virtual_network_connection_gateway_reference import VirtualNetworkConnectionGatewayReference
from .virtual_network_gateway_connection_list_entity import VirtualNetworkGatewayConnectionListEntity
from .vpn_device_script_parameters import VpnDeviceScriptParameters
from .p2_svpn_server_config_vpn_client_root_certificate import P2SVpnServerConfigVpnClientRootCertificate
from .p2_svpn_server_config_vpn_client_revoked_certificate import P2SVpnServerConfigVpnClientRevokedCertificate
from .p2_svpn_server_config_radius_server_root_certificate import P2SVpnServerConfigRadiusServerRootCertificate
from .p2_svpn_server_config_radius_client_root_certificate import P2SVpnServerConfigRadiusClientRootCertificate
from .p2_svpn_server_configuration import P2SVpnServerConfiguration
from .virtual_wan import VirtualWAN
from .device_properties import DeviceProperties
from .vpn_site import VpnSite
from .get_vpn_sites_configuration_request import GetVpnSitesConfigurationRequest
from .hub_virtual_network_connection import HubVirtualNetworkConnection
from .virtual_hub_route import VirtualHubRoute
from .virtual_hub_route_table import VirtualHubRouteTable
from .virtual_hub import VirtualHub
from .vpn_connection import VpnConnection
from .policies import Policies
from .vpn_gateway import VpnGateway
from .vpn_site_id import VpnSiteId
from .virtual_wan_security_provider import VirtualWanSecurityProvider
from .virtual_wan_security_providers import VirtualWanSecurityProviders
from .vpn_client_connection_health import VpnClientConnectionHealth
from .p2_svpn_gateway import P2SVpnGateway
from .p2_svpn_profile_parameters import P2SVpnProfileParameters
from .vpn_profile_response import VpnProfileResponse
from .application_gateway_paged import ApplicationGatewayPaged
from .application_gateway_ssl_predefined_policy_paged import ApplicationGatewaySslPredefinedPolicyPaged
from .application_security_group_paged import ApplicationSecurityGroupPaged
Expand Down Expand Up @@ -575,6 +599,8 @@
from .hub_virtual_network_connection_paged import HubVirtualNetworkConnectionPaged
from .vpn_gateway_paged import VpnGatewayPaged
from .vpn_connection_paged import VpnConnectionPaged
from .p2_svpn_server_configuration_paged import P2SVpnServerConfigurationPaged
from .p2_svpn_gateway_paged import P2SVpnGatewayPaged
from .network_management_client_enums import (
IPAllocationMethod,
SecurityRuleProtocol,
Expand Down Expand Up @@ -653,7 +679,11 @@
AuthenticationMethod,
VirtualNetworkGatewayConnectionStatus,
VirtualNetworkGatewayConnectionType,
VirtualNetworkGatewayConnectionProtocol,
OfficeTrafficCategory,
VpnGatewayTunnelingProtocol,
VpnConnectionStatus,
VirtualWanSecurityProviderType,
TunnelConnectionStatus,
HubVirtualNetworkConnectionStatus,
)
Expand Down Expand Up @@ -903,16 +933,28 @@
'VirtualNetworkConnectionGatewayReference',
'VirtualNetworkGatewayConnectionListEntity',
'VpnDeviceScriptParameters',
'P2SVpnServerConfigVpnClientRootCertificate',
'P2SVpnServerConfigVpnClientRevokedCertificate',
'P2SVpnServerConfigRadiusServerRootCertificate',
'P2SVpnServerConfigRadiusClientRootCertificate',
'P2SVpnServerConfiguration',
'VirtualWAN',
'DeviceProperties',
'VpnSite',
'GetVpnSitesConfigurationRequest',
'HubVirtualNetworkConnection',
'VirtualHubRoute',
'VirtualHubRouteTable',
'VirtualHub',
'VpnConnection',
'Policies',
'VpnGateway',
'VpnSiteId',
'VirtualWanSecurityProvider',
'VirtualWanSecurityProviders',
'VpnClientConnectionHealth',
'P2SVpnGateway',
'P2SVpnProfileParameters',
'VpnProfileResponse',
'ApplicationGatewayPaged',
'ApplicationGatewaySslPredefinedPolicyPaged',
'ApplicationSecurityGroupPaged',
Expand Down Expand Up @@ -969,6 +1011,8 @@
'HubVirtualNetworkConnectionPaged',
'VpnGatewayPaged',
'VpnConnectionPaged',
'P2SVpnServerConfigurationPaged',
'P2SVpnGatewayPaged',
'IPAllocationMethod',
'SecurityRuleProtocol',
'SecurityRuleAccess',
Expand Down Expand Up @@ -1046,7 +1090,11 @@
'AuthenticationMethod',
'VirtualNetworkGatewayConnectionStatus',
'VirtualNetworkGatewayConnectionType',
'VirtualNetworkGatewayConnectionProtocol',
'OfficeTrafficCategory',
'VpnGatewayTunnelingProtocol',
'VpnConnectionStatus',
'VirtualWanSecurityProviderType',
'TunnelConnectionStatus',
'HubVirtualNetworkConnectionStatus',
]
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class GetVpnSitesConfigurationRequest(Model):

:param vpn_sites: List of resource-ids of the vpn-sites for which config
is to be downloaded.
:type vpn_sites: list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:type vpn_sites: list[str]
:param output_blob_sas_url: The sas-url to download the configurations for
vpn-sites
:type output_blob_sas_url: str
"""

_attribute_map = {
'vpn_sites': {'key': 'vpnSites', 'type': '[SubResource]'},
'vpn_sites': {'key': 'vpnSites', 'type': '[str]'},
'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class GetVpnSitesConfigurationRequest(Model):

:param vpn_sites: List of resource-ids of the vpn-sites for which config
is to be downloaded.
:type vpn_sites: list[~azure.mgmt.network.v2018_08_01.models.SubResource]
:type vpn_sites: list[str]
:param output_blob_sas_url: The sas-url to download the configurations for
vpn-sites
:type output_blob_sas_url: str
"""

_attribute_map = {
'vpn_sites': {'key': 'vpnSites', 'type': '[SubResource]'},
'vpn_sites': {'key': 'vpnSites', 'type': '[str]'},
'output_blob_sas_url': {'key': 'outputBlobSasUrl', 'type': 'str'},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .sub_resource import SubResource


class HubVirtualNetworkConnection(Resource):
class HubVirtualNetworkConnection(SubResource):
"""HubVirtualNetworkConnection Resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param remote_virtual_network: Reference to the remote virtual network.
:type remote_virtual_network:
~azure.mgmt.network.v2018_08_01.models.SubResource
Expand All @@ -37,31 +29,32 @@ class HubVirtualNetworkConnection(Resource):
:param allow_remote_vnet_to_use_hub_vnet_gateways: Allow RemoteVnet to use
Virtual Hub's gateways.
:type allow_remote_vnet_to_use_hub_vnet_gateways: bool
:param enable_internet_security: Enable internet security
:type enable_internet_security: bool
:param provisioning_state: The provisioning state of the resource.
Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
:type provisioning_state: str or
~azure.mgmt.network.v2018_08_01.models.ProvisioningState
:param name: The name of the resource that is unique within a resource
group. This name can be used to access the resource.
:type name: str
:ivar etag: Gets a unique read-only string that changes whenever the
resource is updated.
:vartype etag: str
"""

_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'},
'allow_hub_to_remote_vnet_transit': {'key': 'properties.allowHubToRemoteVnetTransit', 'type': 'bool'},
'allow_remote_vnet_to_use_hub_vnet_gateways': {'key': 'properties.allowRemoteVnetToUseHubVnetGateways', 'type': 'bool'},
'enable_internet_security': {'key': 'properties.enableInternetSecurity', 'type': 'bool'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

Expand All @@ -70,5 +63,7 @@ def __init__(self, **kwargs):
self.remote_virtual_network = kwargs.get('remote_virtual_network', None)
self.allow_hub_to_remote_vnet_transit = kwargs.get('allow_hub_to_remote_vnet_transit', None)
self.allow_remote_vnet_to_use_hub_vnet_gateways = kwargs.get('allow_remote_vnet_to_use_hub_vnet_gateways', None)
self.enable_internet_security = kwargs.get('enable_internet_security', None)
self.provisioning_state = kwargs.get('provisioning_state', None)
self.name = kwargs.get('name', None)
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource_py3 import Resource
from .sub_resource_py3 import SubResource


class HubVirtualNetworkConnection(Resource):
class HubVirtualNetworkConnection(SubResource):
"""HubVirtualNetworkConnection Resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:param id: Resource ID.
:type id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
:vartype type: str
:param location: Resource location.
:type location: str
:param tags: Resource tags.
:type tags: dict[str, str]
:param remote_virtual_network: Reference to the remote virtual network.
:type remote_virtual_network:
~azure.mgmt.network.v2018_08_01.models.SubResource
Expand All @@ -37,38 +29,41 @@ class HubVirtualNetworkConnection(Resource):
:param allow_remote_vnet_to_use_hub_vnet_gateways: Allow RemoteVnet to use
Virtual Hub's gateways.
:type allow_remote_vnet_to_use_hub_vnet_gateways: bool
:param enable_internet_security: Enable internet security
:type enable_internet_security: bool
:param provisioning_state: The provisioning state of the resource.
Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
:type provisioning_state: str or
~azure.mgmt.network.v2018_08_01.models.ProvisioningState
:param name: The name of the resource that is unique within a resource
group. This name can be used to access the resource.
:type name: str
:ivar etag: Gets a unique read-only string that changes whenever the
resource is updated.
:vartype etag: str
"""

_validation = {
'name': {'readonly': True},
'type': {'readonly': True},
'etag': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'remote_virtual_network': {'key': 'properties.remoteVirtualNetwork', 'type': 'SubResource'},
'allow_hub_to_remote_vnet_transit': {'key': 'properties.allowHubToRemoteVnetTransit', 'type': 'bool'},
'allow_remote_vnet_to_use_hub_vnet_gateways': {'key': 'properties.allowRemoteVnetToUseHubVnetGateways', 'type': 'bool'},
'enable_internet_security': {'key': 'properties.enableInternetSecurity', '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, location: str=None, tags=None, remote_virtual_network=None, allow_hub_to_remote_vnet_transit: bool=None, allow_remote_vnet_to_use_hub_vnet_gateways: bool=None, provisioning_state=None, **kwargs) -> None:
super(HubVirtualNetworkConnection, self).__init__(id=id, location=location, tags=tags, **kwargs)
def __init__(self, *, id: str=None, remote_virtual_network=None, allow_hub_to_remote_vnet_transit: bool=None, allow_remote_vnet_to_use_hub_vnet_gateways: bool=None, enable_internet_security: bool=None, provisioning_state=None, name: str=None, **kwargs) -> None:
super(HubVirtualNetworkConnection, self).__init__(id=id, **kwargs)
self.remote_virtual_network = remote_virtual_network
self.allow_hub_to_remote_vnet_transit = allow_hub_to_remote_vnet_transit
self.allow_remote_vnet_to_use_hub_vnet_gateways = allow_remote_vnet_to_use_hub_vnet_gateways
self.enable_internet_security = enable_internet_security
self.provisioning_state = provisioning_state
self.name = name
self.etag = None
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class InterfaceEndpoint(Resource):
:ivar owner: A read-only property that identifies who created this
interface endpoint.
:vartype owner: str
:ivar provisioning_state: The provisioning state of the interface
endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:vartype provisioning_state: str
:param etag: Gets a unique read-only string that changes whenever the
resource is updated.
:type etag: str
Expand All @@ -54,6 +57,7 @@ class InterfaceEndpoint(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'owner': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -67,6 +71,7 @@ class InterfaceEndpoint(Resource):
'subnet': {'key': 'properties.subnet', 'type': 'SubResource'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[SubResource]'},
'owner': {'key': 'properties.owner', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

Expand All @@ -77,4 +82,5 @@ def __init__(self, **kwargs):
self.subnet = kwargs.get('subnet', None)
self.network_interfaces = kwargs.get('network_interfaces', None)
self.owner = None
self.provisioning_state = None
self.etag = kwargs.get('etag', None)
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ class InterfaceEndpoint(Resource):
:ivar owner: A read-only property that identifies who created this
interface endpoint.
:vartype owner: str
:ivar provisioning_state: The provisioning state of the interface
endpoint. Possible values are: 'Updating', 'Deleting', and 'Failed'.
:vartype provisioning_state: str
:param etag: Gets a unique read-only string that changes whenever the
resource is updated.
:type etag: str
Expand All @@ -54,6 +57,7 @@ class InterfaceEndpoint(Resource):
'name': {'readonly': True},
'type': {'readonly': True},
'owner': {'readonly': True},
'provisioning_state': {'readonly': True},
}

_attribute_map = {
Expand All @@ -67,6 +71,7 @@ class InterfaceEndpoint(Resource):
'subnet': {'key': 'properties.subnet', 'type': 'SubResource'},
'network_interfaces': {'key': 'properties.networkInterfaces', 'type': '[SubResource]'},
'owner': {'key': 'properties.owner', 'type': 'str'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'etag': {'key': 'etag', 'type': 'str'},
}

Expand All @@ -77,4 +82,5 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, fqdn: str=Non
self.subnet = subnet
self.network_interfaces = network_interfaces
self.owner = None
self.provisioning_state = None
self.etag = etag
Loading