# 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 2.3.33.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class EndpointRegistrationQueryApiModel(Model):
    """Endpoint query.

    :param url: Endoint url for direct server access
    :type url: str
    :param certificate: Certificate of the endpoint
    :type certificate: bytearray
    :param security_mode: Possible values include: 'Best', 'Sign',
     'SignAndEncrypt', 'None'
    :type security_mode: str or ~azure-iiot-opc-registry.models.SecurityMode
    :param security_policy: Security policy uri
    :type security_policy: str
    :param activated: Whether the endpoint was activated
    :type activated: bool
    :param connected: Whether the endpoint is connected on supervisor.
    :type connected: bool
    :param endpoint_state: Possible values include: 'Connecting',
     'NotReachable', 'Busy', 'NoTrust', 'CertificateInvalid', 'Ready', 'Error'
    :type endpoint_state: str or
     ~azure-iiot-opc-registry.models.EndpointConnectivityState
    :param include_not_seen_since: Whether to include endpoints that were soft
     deleted
    :type include_not_seen_since: bool
    :param discoverer_id: Discoverer id to filter with
    :type discoverer_id: str
    :param application_id: Application id to filter
    :type application_id: str
    :param supervisor_id: Supervisor id to filter with
    :type supervisor_id: str
    :param site_or_gateway_id: Site or gateway id to filter with
    :type site_or_gateway_id: str
    """

    _attribute_map = {
        'url': {'key': 'url', 'type': 'str'},
        'certificate': {'key': 'certificate', 'type': 'bytearray'},
        'security_mode': {'key': 'securityMode', 'type': 'SecurityMode'},
        'security_policy': {'key': 'securityPolicy', 'type': 'str'},
        'activated': {'key': 'activated', 'type': 'bool'},
        'connected': {'key': 'connected', 'type': 'bool'},
        'endpoint_state': {'key': 'endpointState', 'type': 'EndpointConnectivityState'},
        'include_not_seen_since': {'key': 'includeNotSeenSince', 'type': 'bool'},
        'discoverer_id': {'key': 'discovererId', 'type': 'str'},
        'application_id': {'key': 'applicationId', 'type': 'str'},
        'supervisor_id': {'key': 'supervisorId', 'type': 'str'},
        'site_or_gateway_id': {'key': 'siteOrGatewayId', 'type': 'str'},
    }

    def __init__(self, url=None, certificate=None, security_mode=None, security_policy=None, activated=None, connected=None, endpoint_state=None, include_not_seen_since=None, discoverer_id=None, application_id=None, supervisor_id=None, site_or_gateway_id=None):
        super(EndpointRegistrationQueryApiModel, self).__init__()
        self.url = url
        self.certificate = certificate
        self.security_mode = security_mode
        self.security_policy = security_policy
        self.activated = activated
        self.connected = connected
        self.endpoint_state = endpoint_state
        self.include_not_seen_since = include_not_seen_since
        self.discoverer_id = discoverer_id
        self.application_id = application_id
        self.supervisor_id = supervisor_id
        self.site_or_gateway_id = site_or_gateway_id

# 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 2.3.33.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class EndpointRegistrationQueryApiModel(Model):
    """Endpoint query.

    :param url: Endoint url for direct server access
    :type url: str
    :param certificate: Certificate of the endpoint
    :type certificate: bytearray
    :param security_mode: Possible values include: 'Best', 'Sign',
     'SignAndEncrypt', 'None'
    :type security_mode: str or ~azure-iiot-opc-registry.models.SecurityMode
    :param security_policy: Security policy uri
    :type security_policy: str
    :param activated: Whether the endpoint was activated
    :type activated: bool
    :param connected: Whether the endpoint is connected on supervisor.
    :type connected: bool
    :param endpoint_state: Possible values include: 'Connecting',
     'NotReachable', 'Busy', 'NoTrust', 'CertificateInvalid', 'Ready', 'Error'
    :type endpoint_state: str or
     ~azure-iiot-opc-registry.models.EndpointConnectivityState
    :param include_not_seen_since: Whether to include endpoints that were soft
     deleted
    :type include_not_seen_since: bool
    :param discoverer_id: Discoverer id to filter with
    :type discoverer_id: str
    :param application_id: Application id to filter
    :type application_id: str
    :param supervisor_id: Supervisor id to filter with
    :type supervisor_id: str
    :param site_or_gateway_id: Site or gateway id to filter with
    :type site_or_gateway_id: str
    """

    _attribute_map = {
        'url': {'key': 'url', 'type': 'str'},
        'certificate': {'key': 'certificate', 'type': 'bytearray'},
        'security_mode': {'key': 'securityMode', 'type': 'SecurityMode'},
        'security_policy': {'key': 'securityPolicy', 'type': 'str'},
        'activated': {'key': 'activated', 'type': 'bool'},
        'connected': {'key': 'connected', 'type': 'bool'},
        'endpoint_state': {'key': 'endpointState', 'type': 'EndpointConnectivityState'},
        'include_not_seen_since': {'key': 'includeNotSeenSince', 'type': 'bool'},
        'discoverer_id': {'key': 'discovererId', 'type': 'str'},
        'application_id': {'key': 'applicationId', 'type': 'str'},
        'supervisor_id': {'key': 'supervisorId', 'type': 'str'},
        'site_or_gateway_id': {'key': 'siteOrGatewayId', 'type': 'str'},
    }

    def __init__(self, url=None, certificate=None, security_mode=None, security_policy=None, activated=None, connected=None, endpoint_state=None, include_not_seen_since=None, discoverer_id=None, application_id=None, supervisor_id=None, site_or_gateway_id=None):
        super(EndpointRegistrationQueryApiModel, self).__init__()
        self.url = url
        self.certificate = certificate
        self.security_mode = security_mode
        self.security_policy = security_policy
        self.activated = activated
        self.connected = connected
        self.endpoint_state = endpoint_state
        self.include_not_seen_since = include_not_seen_since
        self.discoverer_id = discoverer_id
        self.application_id = application_id
        self.supervisor_id = supervisor_id
        self.site_or_gateway_id = site_or_gateway_id

# 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 2.3.33.0 # Changes may cause incorrect behavior and will be lost if the code is # regenerated. # -------------------------------------------------------------------------- Endpoint query.      :param url: Endoint url for direct server access     :type url: str     :param certificate: Certificate of the endpoint     :type certificate: bytearray     :param security_mode: Possible values include: 'Best', 'Sign',      'SignAndEncrypt', 'None'     :type security_mode: str or ~azure-iiot-opc-registry.models.SecurityMode     :param security_policy: Security policy uri     :type security_policy: str     :param activated: Whether the endpoint was activated     :type activated: bool     :param connected: Whether the endpoint is connected on supervisor.     :type connected: bool     :param endpoint_state: Possible values include: 'Connecting',      'NotReachable', 'Busy', 'NoTrust', 'CertificateInvalid', 'Ready', 'Error'     :type endpoint_state: str or      ~azure-iiot-opc-registry.models.EndpointConnectivityState     :param include_not_seen_since: Whether to include endpoints that were soft      deleted     :type include_not_seen_since: bool     :param discoverer_id: Discoverer id to filter with     :type discoverer_id: str     :param application_id: Application id to filter     :type application_id: str     :param supervisor_id: Supervisor id to filter with     :type supervisor_id: str     :param site_or_gateway_id: Site or gateway id to filter with     :type site_or_gateway_id: str