# 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
[docs]class NetworkStatusContractByLocation(Model):
"""Network Status in the Location.
:param location: Location of service
:type location: str
:param network_status: Network status in Location
:type network_status:
~azure.mgmt.apimanagement.models.NetworkStatusContract
"""
_validation = {
'location': {'min_length': 1},
}
_attribute_map = {
'location': {'key': 'location', 'type': 'str'},
'network_status': {'key': 'networkStatus', 'type': 'NetworkStatusContract'},
}
def __init__(self, *, location: str=None, network_status=None, **kwargs) -> None:
super(NetworkStatusContractByLocation, self).__init__(**kwargs)
self.location = location
self.network_status = network_status