azext_iot/sdk/iothub/device/models/scope_result_py3.py (12 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 ScopeResult(Model): """The query result. :param devices: The scope result items, as a collection. :type devices: list[~device.models.DeviceModel] :param modules: The scope result items, as a collection. :type modules: list[~device.models.Module] :param continuation_link: Request continuation token. :type continuation_link: str """ _attribute_map = { 'devices': {'key': 'devices', 'type': '[DeviceModel]'}, 'modules': {'key': 'modules', 'type': '[Module]'}, 'continuation_link': {'key': 'continuationLink', 'type': 'str'}, } def __init__(self, *, devices=None, modules=None, continuation_link: str=None, **kwargs) -> None: super(ScopeResult, self).__init__(**kwargs) self.devices = devices self.modules = modules self.continuation_link = continuation_link