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 @@ -23,6 +23,7 @@
from .service_endpoint_properties_format_py3 import ServiceEndpointPropertiesFormat
from .public_ip_address_sku_py3 import PublicIPAddressSku
from .public_ip_address_dns_settings_py3 import PublicIPAddressDnsSettings
from .ip_tag_py3 import IpTag
from .public_ip_address_py3 import PublicIPAddress
from .ip_configuration_py3 import IPConfiguration
from .resource_navigation_link_py3 import ResourceNavigationLink
Expand Down Expand Up @@ -142,6 +143,13 @@
from .available_providers_list_state_py3 import AvailableProvidersListState
from .available_providers_list_country_py3 import AvailableProvidersListCountry
from .available_providers_list_py3 import AvailableProvidersList
from .connection_monitor_source_py3 import ConnectionMonitorSource
from .connection_monitor_destination_py3 import ConnectionMonitorDestination
from .connection_monitor_parameters_py3 import ConnectionMonitorParameters
from .connection_monitor_py3 import ConnectionMonitor
from .connection_monitor_result_py3 import ConnectionMonitorResult
from .connection_state_snapshot_py3 import ConnectionStateSnapshot
from .connection_monitor_query_result_py3 import ConnectionMonitorQueryResult
from .operation_display_py3 import OperationDisplay
from .availability_py3 import Availability
from .dimension_py3 import Dimension
Expand Down Expand Up @@ -197,6 +205,7 @@
from .service_endpoint_properties_format import ServiceEndpointPropertiesFormat
from .public_ip_address_sku import PublicIPAddressSku
from .public_ip_address_dns_settings import PublicIPAddressDnsSettings
from .ip_tag import IpTag
from .public_ip_address import PublicIPAddress
from .ip_configuration import IPConfiguration
from .resource_navigation_link import ResourceNavigationLink
Expand Down Expand Up @@ -316,6 +325,13 @@
from .available_providers_list_state import AvailableProvidersListState
from .available_providers_list_country import AvailableProvidersListCountry
from .available_providers_list import AvailableProvidersList
from .connection_monitor_source import ConnectionMonitorSource
from .connection_monitor_destination import ConnectionMonitorDestination
from .connection_monitor_parameters import ConnectionMonitorParameters
from .connection_monitor import ConnectionMonitor
from .connection_monitor_result import ConnectionMonitorResult
from .connection_state_snapshot import ConnectionStateSnapshot
from .connection_monitor_query_result import ConnectionMonitorQueryResult
from .operation_display import OperationDisplay
from .availability import Availability
from .dimension import Dimension
Expand Down Expand Up @@ -377,6 +393,7 @@
from .security_rule_paged import SecurityRulePaged
from .network_watcher_paged import NetworkWatcherPaged
from .packet_capture_result_paged import PacketCaptureResultPaged
from .connection_monitor_result_paged import ConnectionMonitorResultPaged
from .operation_paged import OperationPaged
from .public_ip_address_paged import PublicIPAddressPaged
from .route_filter_paged import RouteFilterPaged
Expand Down Expand Up @@ -442,6 +459,8 @@
Severity,
IssueType,
ConnectionStatus,
ConnectionState,
EvaluationState,
VirtualNetworkPeeringState,
VirtualNetworkGatewayType,
VpnType,
Expand Down Expand Up @@ -475,6 +494,7 @@
'ServiceEndpointPropertiesFormat',
'PublicIPAddressSku',
'PublicIPAddressDnsSettings',
'IpTag',
'PublicIPAddress',
'IPConfiguration',
'ResourceNavigationLink',
Expand Down Expand Up @@ -594,6 +614,13 @@
'AvailableProvidersListState',
'AvailableProvidersListCountry',
'AvailableProvidersList',
'ConnectionMonitorSource',
'ConnectionMonitorDestination',
'ConnectionMonitorParameters',
'ConnectionMonitor',
'ConnectionMonitorResult',
'ConnectionStateSnapshot',
'ConnectionMonitorQueryResult',
'OperationDisplay',
'Availability',
'Dimension',
Expand Down Expand Up @@ -655,6 +682,7 @@
'SecurityRulePaged',
'NetworkWatcherPaged',
'PacketCaptureResultPaged',
'ConnectionMonitorResultPaged',
'OperationPaged',
'PublicIPAddressPaged',
'RouteFilterPaged',
Expand Down Expand Up @@ -719,6 +747,8 @@
'Severity',
'IssueType',
'ConnectionStatus',
'ConnectionState',
'EvaluationState',
'VirtualNetworkPeeringState',
'VirtualNetworkGatewayType',
'VpnType',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 ConnectionMonitor(Model):
"""Parameters that define the operation to create a connection monitor.

All required parameters must be populated in order to send to Azure.

:param location: Connection monitor location.
:type location: str
:param tags: Connection monitor tags.
:type tags: dict[str, str]
:param source: Required.
:type source:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorSource
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorDestination
:param auto_start: Determines if the connection monitor will start
automatically once created. Default value: True .
:type auto_start: bool
:param monitoring_interval_in_seconds: Monitoring interval in seconds.
Default value: 60 .
:type monitoring_interval_in_seconds: int
"""

_validation = {
'source': {'required': True},
'destination': {'required': True},
}

_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'source': {'key': 'properties.source', 'type': 'ConnectionMonitorSource'},
'destination': {'key': 'properties.destination', 'type': 'ConnectionMonitorDestination'},
'auto_start': {'key': 'properties.autoStart', 'type': 'bool'},
'monitoring_interval_in_seconds': {'key': 'properties.monitoringIntervalInSeconds', 'type': 'int'},
}

def __init__(self, **kwargs):
super(ConnectionMonitor, self).__init__(**kwargs)
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.source = kwargs.get('source', None)
self.destination = kwargs.get('destination', None)
self.auto_start = kwargs.get('auto_start', True)
self.monitoring_interval_in_seconds = kwargs.get('monitoring_interval_in_seconds', 60)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 ConnectionMonitorDestination(Model):
"""Describes the destination of connection monitor.

:param resource_id: The ID of the resource used as the destination by
connection monitor.
:type resource_id: str
:param address: Address of the connection monitor destination (IP or
domain name).
:type address: str
:param port: The destination port used by connection monitor.
:type port: int
"""

_attribute_map = {
'resource_id': {'key': 'resourceId', 'type': 'str'},
'address': {'key': 'address', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
}

def __init__(self, **kwargs):
super(ConnectionMonitorDestination, self).__init__(**kwargs)
self.resource_id = kwargs.get('resource_id', None)
self.address = kwargs.get('address', None)
self.port = kwargs.get('port', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# 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 ConnectionMonitorDestination(Model):
"""Describes the destination of connection monitor.

:param resource_id: The ID of the resource used as the destination by
connection monitor.
:type resource_id: str
:param address: Address of the connection monitor destination (IP or
domain name).
:type address: str
:param port: The destination port used by connection monitor.
:type port: int
"""

_attribute_map = {
'resource_id': {'key': 'resourceId', 'type': 'str'},
'address': {'key': 'address', 'type': 'str'},
'port': {'key': 'port', 'type': 'int'},
}

def __init__(self, *, resource_id: str=None, address: str=None, port: int=None, **kwargs) -> None:
super(ConnectionMonitorDestination, self).__init__(**kwargs)
self.resource_id = resource_id
self.address = address
self.port = port
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 ConnectionMonitorParameters(Model):
"""Parameters that define the operation to create a connection monitor.

All required parameters must be populated in order to send to Azure.

:param source: Required.
:type source:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorSource
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorDestination
:param auto_start: Determines if the connection monitor will start
automatically once created. Default value: True .
:type auto_start: bool
:param monitoring_interval_in_seconds: Monitoring interval in seconds.
Default value: 60 .
:type monitoring_interval_in_seconds: int
"""

_validation = {
'source': {'required': True},
'destination': {'required': True},
}

_attribute_map = {
'source': {'key': 'source', 'type': 'ConnectionMonitorSource'},
'destination': {'key': 'destination', 'type': 'ConnectionMonitorDestination'},
'auto_start': {'key': 'autoStart', 'type': 'bool'},
'monitoring_interval_in_seconds': {'key': 'monitoringIntervalInSeconds', 'type': 'int'},
}

def __init__(self, **kwargs):
super(ConnectionMonitorParameters, self).__init__(**kwargs)
self.source = kwargs.get('source', None)
self.destination = kwargs.get('destination', None)
self.auto_start = kwargs.get('auto_start', True)
self.monitoring_interval_in_seconds = kwargs.get('monitoring_interval_in_seconds', 60)
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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 ConnectionMonitorParameters(Model):
"""Parameters that define the operation to create a connection monitor.

All required parameters must be populated in order to send to Azure.

:param source: Required.
:type source:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorSource
:param destination: Required.
:type destination:
~azure.mgmt.network.v2018_01_01.models.ConnectionMonitorDestination
:param auto_start: Determines if the connection monitor will start
automatically once created. Default value: True .
:type auto_start: bool
:param monitoring_interval_in_seconds: Monitoring interval in seconds.
Default value: 60 .
:type monitoring_interval_in_seconds: int
"""

_validation = {
'source': {'required': True},
'destination': {'required': True},
}

_attribute_map = {
'source': {'key': 'source', 'type': 'ConnectionMonitorSource'},
'destination': {'key': 'destination', 'type': 'ConnectionMonitorDestination'},
'auto_start': {'key': 'autoStart', 'type': 'bool'},
'monitoring_interval_in_seconds': {'key': 'monitoringIntervalInSeconds', 'type': 'int'},
}

def __init__(self, *, source, destination, auto_start: bool=True, monitoring_interval_in_seconds: int=60, **kwargs) -> None:
super(ConnectionMonitorParameters, self).__init__(**kwargs)
self.source = source
self.destination = destination
self.auto_start = auto_start
self.monitoring_interval_in_seconds = monitoring_interval_in_seconds
Loading