Skip to content
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 @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -73,7 +73,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -130,7 +130,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2015-06-15'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -76,7 +76,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -139,7 +139,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-09-01'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -148,7 +148,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-12-01'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -79,7 +79,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -148,7 +148,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -89,7 +89,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -178,7 +178,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -89,7 +89,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -178,7 +178,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -91,7 +91,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -184,7 +184,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -187,7 +187,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -187,7 +187,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
Expand Down Expand Up @@ -92,7 +92,7 @@ def __init__(
self.subscription_id = subscription_id


class NetworkManagementClient(object):
class NetworkManagementClient(SDKClient):
"""Network Client

:ivar config: Configuration for client.
Expand Down Expand Up @@ -187,7 +187,7 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = NetworkManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(NetworkManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from msrest.serialization import Model


class DdosProtectionPlan(Resource):
class DdosProtectionPlan(Model):
"""A DDoS protection plan in a resource group.

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

:param id: Resource ID.
:type id: str
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
Expand Down Expand Up @@ -47,6 +47,7 @@ class DdosProtectionPlan(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'resource_guid': {'readonly': True},
Expand All @@ -69,6 +70,11 @@ class DdosProtectionPlan(Resource):

def __init__(self, **kwargs):
super(DdosProtectionPlan, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.resource_guid = None
self.provisioning_state = None
self.virtual_networks = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from msrest.serialization import Model


class DdosProtectionPlan(Resource):
class DdosProtectionPlan(Model):
"""A DDoS protection plan in a resource group.

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

:param id: Resource ID.
:type id: str
:ivar id: Resource ID.
:vartype id: str
:ivar name: Resource name.
:vartype name: str
:ivar type: Resource type.
Expand Down Expand Up @@ -47,6 +47,7 @@ class DdosProtectionPlan(Resource):
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'resource_guid': {'readonly': True},
Expand All @@ -67,8 +68,13 @@ class DdosProtectionPlan(Resource):
'etag': {'key': 'etag', 'type': 'str'},
}

def __init__(self, *, id: str=None, location: str=None, tags=None, **kwargs) -> None:
super(DdosProtectionPlan, self).__init__(id=id, location=location, tags=tags, **kwargs)
def __init__(self, *, location: str=None, tags=None, **kwargs) -> None:
super(DdosProtectionPlan, self).__init__(**kwargs)
self.id = None
self.name = None
self.type = None
self.location = location
self.tags = tags
self.resource_guid = None
self.provisioning_state = None
self.virtual_networks = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ class ExpressRouteCrossConnection(Resource):
:vartype secondary_azure_port: str
:ivar s_tag: The identifier of the circuit traffic.
:vartype s_tag: int
:param peering_location: The peering location of the ExpressRoute circuit.
:type peering_location: str
:param bandwidth_in_mbps: The circuit bandwidth In Mbps.
:type bandwidth_in_mbps: int
:param express_route_circuit: The ExpressRouteCircuit
:type express_route_circuit:
:ivar peering_location: The peering location of the ExpressRoute circuit.
:vartype peering_location: str
:ivar bandwidth_in_mbps: The circuit bandwidth In Mbps.
:vartype bandwidth_in_mbps: int
:ivar express_route_circuit: The ExpressRouteCircuit
:vartype express_route_circuit:
~azure.mgmt.network.v2018_02_01.models.ExpressRouteCircuitReference
:param service_provider_provisioning_state: The provisioning state of the
circuit in the connectivity provider system. Possible values are
Expand Down Expand Up @@ -67,6 +67,9 @@ class ExpressRouteCrossConnection(Resource):
'primary_azure_port': {'readonly': True},
'secondary_azure_port': {'readonly': True},
's_tag': {'readonly': True},
'peering_location': {'readonly': True},
'bandwidth_in_mbps': {'readonly': True},
'express_route_circuit': {'readonly': True},
'provisioning_state': {'readonly': True},
'etag': {'readonly': True},
}
Expand Down Expand Up @@ -95,9 +98,9 @@ def __init__(self, **kwargs):
self.primary_azure_port = None
self.secondary_azure_port = None
self.s_tag = None
self.peering_location = kwargs.get('peering_location', None)
self.bandwidth_in_mbps = kwargs.get('bandwidth_in_mbps', None)
self.express_route_circuit = kwargs.get('express_route_circuit', None)
self.peering_location = None
self.bandwidth_in_mbps = None
self.express_route_circuit = None
self.service_provider_provisioning_state = kwargs.get('service_provider_provisioning_state', None)
self.service_provider_notes = kwargs.get('service_provider_notes', None)
self.provisioning_state = None
Expand Down
Loading