Source code for azure.mgmt.network.v2018_02_01.models.http_configuration_py3

# 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 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