azext_iot/sdk/iothub/service/models/regenerate_key_result_py3.py (14 lines of code) (raw):
# 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 RegenerateKeyResult(Model):
"""RegenerateKeyResult.
:param id: The unique identifier of the device.
:type id: str
:param module_id: The unique identifier of the module.
:type module_id: str
:param primary_key: The base64 encoded primary key of the device.
:type primary_key: str
:param secondary_key: The base64 encoded secondary key of the device.
:type secondary_key: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'module_id': {'key': 'moduleId', 'type': 'str'},
'primary_key': {'key': 'primaryKey', 'type': 'str'},
'secondary_key': {'key': 'secondaryKey', 'type': 'str'},
}
def __init__(self, *, id: str=None, module_id: str=None, primary_key: str=None, secondary_key: str=None, **kwargs) -> None:
super(RegenerateKeyResult, self).__init__(**kwargs)
self.id = id
self.module_id = module_id
self.primary_key = primary_key
self.secondary_key = secondary_key