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 @@ -136,6 +136,9 @@
from .flow_log_information_py3 import FlowLogInformation
from .connectivity_source_py3 import ConnectivitySource
from .connectivity_destination_py3 import ConnectivityDestination
from .http_header_py3 import HTTPHeader
from .http_configuration_py3 import HTTPConfiguration
from .protocol_configuration_py3 import ProtocolConfiguration
from .connectivity_parameters_py3 import ConnectivityParameters
from .connectivity_issue_py3 import ConnectivityIssue
from .connectivity_hop_py3 import ConnectivityHop
Expand Down Expand Up @@ -326,6 +329,9 @@
from .flow_log_information import FlowLogInformation
from .connectivity_source import ConnectivitySource
from .connectivity_destination import ConnectivityDestination
from .http_header import HTTPHeader
from .http_configuration import HTTPConfiguration
from .protocol_configuration import ProtocolConfiguration
from .connectivity_parameters import ConnectivityParameters
from .connectivity_issue import ConnectivityIssue
from .connectivity_hop import ConnectivityHop
Expand Down Expand Up @@ -471,15 +477,18 @@
ProvisioningState,
AssociationType,
Direction,
Protocol,
IpFlowProtocol,
NextHopType,
PcProtocol,
PcStatus,
PcError,
Protocol,
HTTPMethod,
Origin,
Severity,
IssueType,
ConnectionStatus,
ConnectionMonitorSourceStatus,
ConnectionState,
EvaluationState,
VirtualNetworkPeeringState,
Expand Down Expand Up @@ -628,6 +637,9 @@
'FlowLogInformation',
'ConnectivitySource',
'ConnectivityDestination',
'HTTPHeader',
'HTTPConfiguration',
'ProtocolConfiguration',
'ConnectivityParameters',
'ConnectivityIssue',
'ConnectivityHop',
Expand Down Expand Up @@ -772,15 +784,18 @@
'ProvisioningState',
'AssociationType',
'Direction',
'Protocol',
'IpFlowProtocol',
'NextHopType',
'PcProtocol',
'PcStatus',
'PcError',
'Protocol',
'HTTPMethod',
'Origin',
'Severity',
'IssueType',
'ConnectionStatus',
'ConnectionMonitorSourceStatus',
'ConnectionState',
'EvaluationState',
'VirtualNetworkPeeringState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
class ConnectionMonitorQueryResult(Model):
"""List of connection states snaphots.

:param source_status: Status of connection monitor source. Possible values
include: 'Uknown', 'Active', 'Inactive'
:type source_status: str or
~azure.mgmt.network.v2018_02_01.models.ConnectionMonitorSourceStatus
:param states: Information about connection states.
:type states:
list[~azure.mgmt.network.v2018_02_01.models.ConnectionStateSnapshot]
"""

_attribute_map = {
'source_status': {'key': 'sourceStatus', 'type': 'str'},
'states': {'key': 'states', 'type': '[ConnectionStateSnapshot]'},
}

def __init__(self, **kwargs):
super(ConnectionMonitorQueryResult, self).__init__(**kwargs)
self.source_status = kwargs.get('source_status', None)
self.states = kwargs.get('states', None)
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,21 @@
class ConnectionMonitorQueryResult(Model):
"""List of connection states snaphots.

:param source_status: Status of connection monitor source. Possible values
include: 'Uknown', 'Active', 'Inactive'
:type source_status: str or
~azure.mgmt.network.v2018_02_01.models.ConnectionMonitorSourceStatus
:param states: Information about connection states.
:type states:
list[~azure.mgmt.network.v2018_02_01.models.ConnectionStateSnapshot]
"""

_attribute_map = {
'source_status': {'key': 'sourceStatus', 'type': 'str'},
'states': {'key': 'states', 'type': '[ConnectionStateSnapshot]'},
}

def __init__(self, *, states=None, **kwargs) -> None:
def __init__(self, *, source_status=None, states=None, **kwargs) -> None:
super(ConnectionMonitorQueryResult, self).__init__(**kwargs)
self.source_status = source_status
self.states = states
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class ConnectivityParameters(Model):
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_02_01.models.ConnectivityDestination
:param protocol: Network protocol. Possible values include: 'Tcp', 'Http',
'Https', 'Icmp'
:type protocol: str or ~azure.mgmt.network.v2018_02_01.models.Protocol
:param protocol_configuration:
:type protocol_configuration:
~azure.mgmt.network.v2018_02_01.models.ProtocolConfiguration
"""

_validation = {
Expand All @@ -32,9 +38,13 @@ class ConnectivityParameters(Model):
_attribute_map = {
'source': {'key': 'source', 'type': 'ConnectivitySource'},
'destination': {'key': 'destination', 'type': 'ConnectivityDestination'},
'protocol': {'key': 'protocol', 'type': 'str'},
'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ProtocolConfiguration'},
}

def __init__(self, **kwargs):
super(ConnectivityParameters, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.destination = kwargs.get('destination', None)
self.protocol = kwargs.get('protocol', None)
self.protocol_configuration = kwargs.get('protocol_configuration', None)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class ConnectivityParameters(Model):
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_02_01.models.ConnectivityDestination
:param protocol: Network protocol. Possible values include: 'Tcp', 'Http',
'Https', 'Icmp'
:type protocol: str or ~azure.mgmt.network.v2018_02_01.models.Protocol
:param protocol_configuration:
:type protocol_configuration:
~azure.mgmt.network.v2018_02_01.models.ProtocolConfiguration
"""

_validation = {
Expand All @@ -32,9 +38,13 @@ class ConnectivityParameters(Model):
_attribute_map = {
'source': {'key': 'source', 'type': 'ConnectivitySource'},
'destination': {'key': 'destination', 'type': 'ConnectivityDestination'},
'protocol': {'key': 'protocol', 'type': 'str'},
'protocol_configuration': {'key': 'protocolConfiguration', 'type': 'ProtocolConfiguration'},
}

def __init__(self, *, source, destination, **kwargs) -> None:
def __init__(self, *, source, destination, protocol=None, protocol_configuration=None, **kwargs) -> None:
super(ConnectivityParameters, self).__init__(**kwargs)
self.source = source
self.destination = destination
self.protocol = protocol
self.protocol_configuration = protocol_configuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class HTTPConfiguration(Model):
"""HTTP configuration of the connectivity check.

:param method: HTTP method. Possible values include: 'Get'
:type method: str or ~azure.mgmt.network.v2018_02_01.models.HTTPMethod
:param headers: List of HTTP headers.
:type headers: list[~azure.mgmt.network.v2018_02_01.models.HTTPHeader]
:param valid_status_codes: Valid status codes.
:type valid_status_codes: list[int]
"""

_attribute_map = {
'method': {'key': 'method', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[HTTPHeader]'},
'valid_status_codes': {'key': 'validStatusCodes', 'type': '[int]'},
}

def __init__(self, **kwargs):
super(HTTPConfiguration, self).__init__(**kwargs)
self.method = kwargs.get('method', None)
self.headers = kwargs.get('headers', None)
self.valid_status_codes = kwargs.get('valid_status_codes', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class HTTPConfiguration(Model):
"""HTTP configuration of the connectivity check.

:param method: HTTP method. Possible values include: 'Get'
:type method: str or ~azure.mgmt.network.v2018_02_01.models.HTTPMethod
:param headers: List of HTTP headers.
:type headers: list[~azure.mgmt.network.v2018_02_01.models.HTTPHeader]
:param valid_status_codes: Valid status codes.
:type valid_status_codes: list[int]
"""

_attribute_map = {
'method': {'key': 'method', 'type': 'str'},
'headers': {'key': 'headers', 'type': '[HTTPHeader]'},
'valid_status_codes': {'key': 'validStatusCodes', 'type': '[int]'},
}

def __init__(self, *, method=None, headers=None, valid_status_codes=None, **kwargs) -> None:
super(HTTPConfiguration, self).__init__(**kwargs)
self.method = method
self.headers = headers
self.valid_status_codes = valid_status_codes
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class HTTPHeader(Model):
"""Describes the HTTP header.

:param name: The name in HTTP header.
:type name: str
:param value: The value in HTTP header.
:type value: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, **kwargs):
super(HTTPHeader, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class HTTPHeader(Model):
"""Describes the HTTP header.

:param name: The name in HTTP header.
:type name: str
:param value: The value in HTTP header.
:type value: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None:
super(HTTPHeader, self).__init__(**kwargs)
self.name = name
self.value = value
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ class Direction(str, Enum):
outbound = "Outbound"


class Protocol(str, Enum):
class IpFlowProtocol(str, Enum):

tcp = "TCP"
udp = "UDP"
Expand Down Expand Up @@ -352,6 +352,19 @@ class PcError(str, Enum):
storage_failed = "StorageFailed"


class Protocol(str, Enum):

tcp = "Tcp"
http = "Http"
https = "Https"
icmp = "Icmp"


class HTTPMethod(str, Enum):

get = "Get"


class Origin(str, Enum):

local = "Local"
Expand Down Expand Up @@ -386,6 +399,13 @@ class ConnectionStatus(str, Enum):
degraded = "Degraded"


class ConnectionMonitorSourceStatus(str, Enum):

uknown = "Uknown"
active = "Active"
inactive = "Inactive"


class ConnectionState(str, Enum):

reachable = "Reachable"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ProtocolConfiguration(Model):
"""Configuration of the protocol.

:param http_configuration:
:type http_configuration:
~azure.mgmt.network.v2018_02_01.models.HTTPConfiguration
"""

_attribute_map = {
'http_configuration': {'key': 'HTTPConfiguration', 'type': 'HTTPConfiguration'},
}

def __init__(self, **kwargs):
super(ProtocolConfiguration, self).__init__(**kwargs)
self.http_configuration = kwargs.get('http_configuration', None)
Loading