Source code for azure.mgmt.apimanagement.models.access_information_contract_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 AccessInformationContract(Model): """Tenant access information contract of the API Management service. :param id: Identifier. :type id: str :param primary_key: Primary access key. :type primary_key: str :param secondary_key: Secondary access key. :type secondary_key: str :param enabled: Determines whether direct access is enabled. :type enabled: bool """ _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'primary_key': {'key': 'primaryKey', 'type': 'str'}, 'secondary_key': {'key': 'secondaryKey', 'type': 'str'}, 'enabled': {'key': 'enabled', 'type': 'bool'}, } def __init__(self, *, id: str=None, primary_key: str=None, secondary_key: str=None, enabled: bool=None, **kwargs) -> None: super(AccessInformationContract, self).__init__(**kwargs) self.id = id self.primary_key = primary_key self.secondary_key = secondary_key self.enabled = enabled