mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-13 04:58:09 +00:00
Initial commit.
This commit is contained in:
22
api/python/src/README.md
Normal file
22
api/python/src/README.md
Normal file
@ -0,0 +1,22 @@
|
||||
# chirpstack-api
|
||||
|
||||
ChirpStack gRPC API message and service wrappers for Python.
|
||||
|
||||
## Install
|
||||
|
||||
```sh
|
||||
pip install chirpstack-api
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
All messages, services, constants, etc. are auto-generated from the ChirpStack protobuf definitions. The result is that
|
||||
this package structure matches that of the protobuf definitions.
|
||||
|
||||
The protobuf definitions can be found here: https://github.com/brocaar/chirpstack-api/tree/master/protobuf
|
||||
|
||||
## Links
|
||||
|
||||
* [`chirpstack-api` Python package page](https://pypi.org/project/chirpstack-api/)
|
||||
* [ChirpStack documentation](https://www.chirpstack.io/)
|
||||
* [ChirpStack Application Server API examples](https://www.chirpstack.io/application-server/api/python-examples/)
|
780
api/python/src/chirpstack_api/api/application_pb2.py
Normal file
780
api/python/src/chirpstack_api/api/application_pb2.py
Normal file
File diff suppressed because one or more lines are too long
1499
api/python/src/chirpstack_api/api/application_pb2_grpc.py
Normal file
1499
api/python/src/chirpstack_api/api/application_pb2_grpc.py
Normal file
File diff suppressed because it is too large
Load Diff
426
api/python/src/chirpstack_api/api/device_pb2.py
Normal file
426
api/python/src/chirpstack_api/api/device_pb2.py
Normal file
File diff suppressed because one or more lines are too long
649
api/python/src/chirpstack_api/api/device_pb2_grpc.py
Normal file
649
api/python/src/chirpstack_api/api/device_pb2_grpc.py
Normal file
@ -0,0 +1,649 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import device_pb2 as chirpstack__api_dot_api_dot_device__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class DeviceServiceStub(object):
|
||||
"""DeviceService is the service providing API methods for managing devices.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.DeviceService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.DeviceService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.DeviceService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.DeviceService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.DeviceService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.FromString,
|
||||
)
|
||||
self.CreateKeys = channel.unary_unary(
|
||||
'/api.DeviceService/CreateKeys',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.GetKeys = channel.unary_unary(
|
||||
'/api.DeviceService/GetKeys',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.FromString,
|
||||
)
|
||||
self.UpdateKeys = channel.unary_unary(
|
||||
'/api.DeviceService/UpdateKeys',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.DeleteKeys = channel.unary_unary(
|
||||
'/api.DeviceService/DeleteKeys',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.FlushDevNonces = channel.unary_unary(
|
||||
'/api.DeviceService/FlushDevNonces',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Activate = channel.unary_unary(
|
||||
'/api.DeviceService/Activate',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Deactivate = channel.unary_unary(
|
||||
'/api.DeviceService/Deactivate',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.GetActivation = channel.unary_unary(
|
||||
'/api.DeviceService/GetActivation',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.FromString,
|
||||
)
|
||||
self.GetRandomDevAddr = channel.unary_unary(
|
||||
'/api.DeviceService/GetRandomDevAddr',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.FromString,
|
||||
)
|
||||
self.GetStats = channel.unary_unary(
|
||||
'/api.DeviceService/GetStats',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsResponse.FromString,
|
||||
)
|
||||
self.Enqueue = channel.unary_unary(
|
||||
'/api.DeviceService/Enqueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.FromString,
|
||||
)
|
||||
self.FlushQueue = channel.unary_unary(
|
||||
'/api.DeviceService/FlushQueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.GetQueue = channel.unary_unary(
|
||||
'/api.DeviceService/GetQueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class DeviceServiceServicer(object):
|
||||
"""DeviceService is the service providing API methods for managing devices.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create the given device.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get returns the device for the given DevEUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update the given device.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete the device with the given DevEUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""Get the list of devices.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CreateKeys(self, request, context):
|
||||
"""Create the given device-keys.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetKeys(self, request, context):
|
||||
"""Get the device-keys for the given DevEUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdateKeys(self, request, context):
|
||||
"""Update the given device-keys.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def DeleteKeys(self, request, context):
|
||||
"""Delete the device-keys for the given DevEUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def FlushDevNonces(self, request, context):
|
||||
"""FlushDevNonces flushes the OTAA device nonces.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Activate(self, request, context):
|
||||
"""Activate (re)activates the device with the given parameters (for ABP or for importing OTAA activations).
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Deactivate(self, request, context):
|
||||
"""Deactivate de-activates the device.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetActivation(self, request, context):
|
||||
"""GetActivation returns the current activation details of the device (OTAA or ABP).
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetRandomDevAddr(self, request, context):
|
||||
"""GetRandomDevAddr returns a random DevAddr taking the NwkID prefix into account.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetStats(self, request, context):
|
||||
"""GetStats returns the device stats.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Enqueue(self, request, context):
|
||||
"""Enqueue adds the given item to the downlink queue.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def FlushQueue(self, request, context):
|
||||
"""FlushQueue flushes the downlink device-queue.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetQueue(self, request, context):
|
||||
"""GetQueue returns the downlink device-queue.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_DeviceServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.SerializeToString,
|
||||
),
|
||||
'CreateKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CreateKeys,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'GetKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetKeys,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.SerializeToString,
|
||||
),
|
||||
'UpdateKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdateKeys,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'DeleteKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.DeleteKeys,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'FlushDevNonces': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.FlushDevNonces,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Activate': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Activate,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Deactivate': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Deactivate,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'GetActivation': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetActivation,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.SerializeToString,
|
||||
),
|
||||
'GetRandomDevAddr': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetRandomDevAddr,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.SerializeToString,
|
||||
),
|
||||
'GetStats': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetStats,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsResponse.SerializeToString,
|
||||
),
|
||||
'Enqueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Enqueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.SerializeToString,
|
||||
),
|
||||
'FlushQueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.FlushQueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'GetQueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetQueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.DeviceService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class DeviceService(object):
|
||||
"""DeviceService is the service providing API methods for managing devices.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Create',
|
||||
chirpstack__api_dot_api_dot_device__pb2.CreateDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Get',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Update',
|
||||
chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Delete',
|
||||
chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/List',
|
||||
chirpstack__api_dot_api_dot_device__pb2.ListDevicesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.ListDevicesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CreateKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/CreateKeys',
|
||||
chirpstack__api_dot_api_dot_device__pb2.CreateDeviceKeysRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetKeys',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceKeysResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def UpdateKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/UpdateKeys',
|
||||
chirpstack__api_dot_api_dot_device__pb2.UpdateDeviceKeysRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def DeleteKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/DeleteKeys',
|
||||
chirpstack__api_dot_api_dot_device__pb2.DeleteDeviceKeysRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def FlushDevNonces(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/FlushDevNonces',
|
||||
chirpstack__api_dot_api_dot_device__pb2.FlushDevNoncesRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Activate(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Activate',
|
||||
chirpstack__api_dot_api_dot_device__pb2.ActivateDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Deactivate(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Deactivate',
|
||||
chirpstack__api_dot_api_dot_device__pb2.DeactivateDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetActivation(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetActivation',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceActivationResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetRandomDevAddr(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetRandomDevAddr',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetRandomDevAddrResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetStats(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetStats',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceStatsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Enqueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/Enqueue',
|
||||
chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.EnqueueDeviceQueueItemResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def FlushQueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/FlushQueue',
|
||||
chirpstack__api_dot_api_dot_device__pb2.FlushDeviceQueueRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetQueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceService/GetQueue',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceQueueItemsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
172
api/python/src/chirpstack_api/api/device_profile_pb2.py
Normal file
172
api/python/src/chirpstack_api/api/device_profile_pb2.py
Normal file
@ -0,0 +1,172 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/device_profile.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'chirpstack-api/api/device_profile.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\"\x98\x06\n\rDeviceProfile\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttenant_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x1e\n\x06region\x18\x04 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x05 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x06 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x18\n\x10\x61\x64r_algorithm_id\x18\x07 \x01(\t\x12\x30\n\x15payload_codec_runtime\x18\x08 \x01(\x0e\x32\x11.api.CodecRuntime\x12\x1e\n\x16payload_encoder_config\x18\t \x01(\t\x12\x1e\n\x16payload_decoder_config\x18\n \x01(\t\x12\x17\n\x0fuplink_interval\x18\x0b \x01(\r\x12\"\n\x1a\x64\x65vice_status_req_interval\x18\x0c \x01(\r\x12\x15\n\rsupports_otaa\x18\r \x01(\x08\x12\x18\n\x10supports_class_b\x18\x0e \x01(\x08\x12\x18\n\x10supports_class_c\x18\x0f \x01(\x08\x12\x17\n\x0f\x63lass_b_timeout\x18\x10 \x01(\r\x12 \n\x18\x63lass_b_ping_slot_period\x18\x11 \x01(\r\x12\x1c\n\x14\x63lass_b_ping_slot_dr\x18\x12 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_freq\x18\x13 \x01(\r\x12\x17\n\x0f\x63lass_c_timeout\x18\x14 \x01(\r\x12\x15\n\rabp_rx1_delay\x18\x15 \x01(\r\x12\x19\n\x11\x61\x62p_rx1_dr_offset\x18\x16 \x01(\r\x12\x12\n\nabp_rx2_dr\x18\x17 \x01(\r\x12\x14\n\x0c\x61\x62p_rx2_freq\x18\x18 \x01(\r\x12*\n\x04tags\x18\x19 \x03(\x0b\x32\x1c.api.DeviceProfile.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdd\x02\n\x15\x44\x65viceProfileListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x06region\x18\x05 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x06 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x07 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x15\n\rsupports_otaa\x18\x08 \x01(\x08\x12\x18\n\x10supports_class_b\x18\t \x01(\x08\x12\x18\n\x10supports_class_c\x18\n \x01(\x08\"H\n\x1a\x43reateDeviceProfileRequest\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\")\n\x1b\x43reateDeviceProfileResponse\x12\n\n\x02id\x18\x01 \x01(\t\"%\n\x17GetDeviceProfileRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xa6\x01\n\x18GetDeviceProfileResponse\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"H\n\x1aUpdateDeviceProfileRequest\x12*\n\x0e\x64\x65vice_profile\x18\x01 \x01(\x0b\x32\x12.api.DeviceProfile\"(\n\x1a\x44\x65leteDeviceProfileRequest\x12\n\n\x02id\x18\x01 \x01(\t\"]\n\x19ListDeviceProfilesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x11\n\ttenant_id\x18\x04 \x01(\t\"]\n\x1aListDeviceProfilesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12*\n\x06result\x18\x02 \x03(\x0b\x32\x1a.api.DeviceProfileListItem\"h\n&ListDeviceProfileAdrAlgorithmsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12)\n\x06result\x18\x02 \x03(\x0b\x32\x19.api.AdrAlgorithmListItem\"0\n\x14\x41\x64rAlgorithmListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t*1\n\x0c\x43odecRuntime\x12\x08\n\x04NONE\x10\x00\x12\x0f\n\x0b\x43\x41YENNE_LPP\x10\x01\x12\x06\n\x02JS\x10\x02\x32\xdc\x03\n\x14\x44\x65viceProfileService\x12M\n\x06\x43reate\x12\x1f.api.CreateDeviceProfileRequest\x1a .api.CreateDeviceProfileResponse\"\x00\x12\x44\n\x03Get\x12\x1c.api.GetDeviceProfileRequest\x1a\x1d.api.GetDeviceProfileResponse\"\x00\x12\x43\n\x06Update\x12\x1f.api.UpdateDeviceProfileRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x43\n\x06\x44\x65lete\x12\x1f.api.DeleteDeviceProfileRequest\x1a\x16.google.protobuf.Empty\"\x00\x12I\n\x04List\x12\x1e.api.ListDeviceProfilesRequest\x1a\x1f.api.ListDeviceProfilesResponse\"\x00\x12Z\n\x11ListAdrAlgorithms\x12\x16.google.protobuf.Empty\x1a+.api.ListDeviceProfileAdrAlgorithmsResponse\"\x00\x42U\n\x11io.chirpstack.apiB\x12\x44\x65viceProfileProtoP\x01Z*github.com/chirpstack/chirpstack/api/go/v4b\x06proto3')
|
||||
|
||||
_CODECRUNTIME = DESCRIPTOR.enum_types_by_name['CodecRuntime']
|
||||
CodecRuntime = enum_type_wrapper.EnumTypeWrapper(_CODECRUNTIME)
|
||||
NONE = 0
|
||||
CAYENNE_LPP = 1
|
||||
JS = 2
|
||||
|
||||
|
||||
_DEVICEPROFILE = DESCRIPTOR.message_types_by_name['DeviceProfile']
|
||||
_DEVICEPROFILE_TAGSENTRY = _DEVICEPROFILE.nested_types_by_name['TagsEntry']
|
||||
_DEVICEPROFILELISTITEM = DESCRIPTOR.message_types_by_name['DeviceProfileListItem']
|
||||
_CREATEDEVICEPROFILEREQUEST = DESCRIPTOR.message_types_by_name['CreateDeviceProfileRequest']
|
||||
_CREATEDEVICEPROFILERESPONSE = DESCRIPTOR.message_types_by_name['CreateDeviceProfileResponse']
|
||||
_GETDEVICEPROFILEREQUEST = DESCRIPTOR.message_types_by_name['GetDeviceProfileRequest']
|
||||
_GETDEVICEPROFILERESPONSE = DESCRIPTOR.message_types_by_name['GetDeviceProfileResponse']
|
||||
_UPDATEDEVICEPROFILEREQUEST = DESCRIPTOR.message_types_by_name['UpdateDeviceProfileRequest']
|
||||
_DELETEDEVICEPROFILEREQUEST = DESCRIPTOR.message_types_by_name['DeleteDeviceProfileRequest']
|
||||
_LISTDEVICEPROFILESREQUEST = DESCRIPTOR.message_types_by_name['ListDeviceProfilesRequest']
|
||||
_LISTDEVICEPROFILESRESPONSE = DESCRIPTOR.message_types_by_name['ListDeviceProfilesResponse']
|
||||
_LISTDEVICEPROFILEADRALGORITHMSRESPONSE = DESCRIPTOR.message_types_by_name['ListDeviceProfileAdrAlgorithmsResponse']
|
||||
_ADRALGORITHMLISTITEM = DESCRIPTOR.message_types_by_name['AdrAlgorithmListItem']
|
||||
DeviceProfile = _reflection.GeneratedProtocolMessageType('DeviceProfile', (_message.Message,), {
|
||||
|
||||
'TagsEntry' : _reflection.GeneratedProtocolMessageType('TagsEntry', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DEVICEPROFILE_TAGSENTRY,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeviceProfile.TagsEntry)
|
||||
})
|
||||
,
|
||||
'DESCRIPTOR' : _DEVICEPROFILE,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeviceProfile)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeviceProfile)
|
||||
_sym_db.RegisterMessage(DeviceProfile.TagsEntry)
|
||||
|
||||
DeviceProfileListItem = _reflection.GeneratedProtocolMessageType('DeviceProfileListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DEVICEPROFILELISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeviceProfileListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeviceProfileListItem)
|
||||
|
||||
CreateDeviceProfileRequest = _reflection.GeneratedProtocolMessageType('CreateDeviceProfileRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEDEVICEPROFILEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateDeviceProfileRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateDeviceProfileRequest)
|
||||
|
||||
CreateDeviceProfileResponse = _reflection.GeneratedProtocolMessageType('CreateDeviceProfileResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEDEVICEPROFILERESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateDeviceProfileResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateDeviceProfileResponse)
|
||||
|
||||
GetDeviceProfileRequest = _reflection.GeneratedProtocolMessageType('GetDeviceProfileRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETDEVICEPROFILEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetDeviceProfileRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetDeviceProfileRequest)
|
||||
|
||||
GetDeviceProfileResponse = _reflection.GeneratedProtocolMessageType('GetDeviceProfileResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETDEVICEPROFILERESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetDeviceProfileResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetDeviceProfileResponse)
|
||||
|
||||
UpdateDeviceProfileRequest = _reflection.GeneratedProtocolMessageType('UpdateDeviceProfileRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATEDEVICEPROFILEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateDeviceProfileRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateDeviceProfileRequest)
|
||||
|
||||
DeleteDeviceProfileRequest = _reflection.GeneratedProtocolMessageType('DeleteDeviceProfileRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DELETEDEVICEPROFILEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeleteDeviceProfileRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeleteDeviceProfileRequest)
|
||||
|
||||
ListDeviceProfilesRequest = _reflection.GeneratedProtocolMessageType('ListDeviceProfilesRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTDEVICEPROFILESREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListDeviceProfilesRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListDeviceProfilesRequest)
|
||||
|
||||
ListDeviceProfilesResponse = _reflection.GeneratedProtocolMessageType('ListDeviceProfilesResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTDEVICEPROFILESRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListDeviceProfilesResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListDeviceProfilesResponse)
|
||||
|
||||
ListDeviceProfileAdrAlgorithmsResponse = _reflection.GeneratedProtocolMessageType('ListDeviceProfileAdrAlgorithmsResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTDEVICEPROFILEADRALGORITHMSRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListDeviceProfileAdrAlgorithmsResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListDeviceProfileAdrAlgorithmsResponse)
|
||||
|
||||
AdrAlgorithmListItem = _reflection.GeneratedProtocolMessageType('AdrAlgorithmListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ADRALGORITHMLISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.device_profile_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.AdrAlgorithmListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(AdrAlgorithmListItem)
|
||||
|
||||
_DEVICEPROFILESERVICE = DESCRIPTOR.services_by_name['DeviceProfileService']
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\022DeviceProfileProtoP\001Z*github.com/chirpstack/chirpstack/api/go/v4'
|
||||
_DEVICEPROFILE_TAGSENTRY._options = None
|
||||
_DEVICEPROFILE_TAGSENTRY._serialized_options = b'8\001'
|
||||
_CODECRUNTIME._serialized_start=2080
|
||||
_CODECRUNTIME._serialized_end=2129
|
||||
_DEVICEPROFILE._serialized_start=147
|
||||
_DEVICEPROFILE._serialized_end=939
|
||||
_DEVICEPROFILE_TAGSENTRY._serialized_start=896
|
||||
_DEVICEPROFILE_TAGSENTRY._serialized_end=939
|
||||
_DEVICEPROFILELISTITEM._serialized_start=942
|
||||
_DEVICEPROFILELISTITEM._serialized_end=1291
|
||||
_CREATEDEVICEPROFILEREQUEST._serialized_start=1293
|
||||
_CREATEDEVICEPROFILEREQUEST._serialized_end=1365
|
||||
_CREATEDEVICEPROFILERESPONSE._serialized_start=1367
|
||||
_CREATEDEVICEPROFILERESPONSE._serialized_end=1408
|
||||
_GETDEVICEPROFILEREQUEST._serialized_start=1410
|
||||
_GETDEVICEPROFILEREQUEST._serialized_end=1447
|
||||
_GETDEVICEPROFILERESPONSE._serialized_start=1450
|
||||
_GETDEVICEPROFILERESPONSE._serialized_end=1616
|
||||
_UPDATEDEVICEPROFILEREQUEST._serialized_start=1618
|
||||
_UPDATEDEVICEPROFILEREQUEST._serialized_end=1690
|
||||
_DELETEDEVICEPROFILEREQUEST._serialized_start=1692
|
||||
_DELETEDEVICEPROFILEREQUEST._serialized_end=1732
|
||||
_LISTDEVICEPROFILESREQUEST._serialized_start=1734
|
||||
_LISTDEVICEPROFILESREQUEST._serialized_end=1827
|
||||
_LISTDEVICEPROFILESRESPONSE._serialized_start=1829
|
||||
_LISTDEVICEPROFILESRESPONSE._serialized_end=1922
|
||||
_LISTDEVICEPROFILEADRALGORITHMSRESPONSE._serialized_start=1924
|
||||
_LISTDEVICEPROFILEADRALGORITHMSRESPONSE._serialized_end=2028
|
||||
_ADRALGORITHMLISTITEM._serialized_start=2030
|
||||
_ADRALGORITHMLISTITEM._serialized_end=2078
|
||||
_DEVICEPROFILESERVICE._serialized_start=2132
|
||||
_DEVICEPROFILESERVICE._serialized_end=2608
|
||||
# @@protoc_insertion_point(module_scope)
|
241
api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py
Normal file
241
api/python/src/chirpstack_api/api/device_profile_pb2_grpc.py
Normal file
@ -0,0 +1,241 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import device_profile_pb2 as chirpstack__api_dot_api_dot_device__profile__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class DeviceProfileServiceStub(object):
|
||||
"""DeviceProfileService is the service providing API methods for managing device-profiles.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.DeviceProfileService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.DeviceProfileService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.DeviceProfileService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.DeviceProfileService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.DeviceProfileService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.FromString,
|
||||
)
|
||||
self.ListAdrAlgorithms = channel.unary_unary(
|
||||
'/api.DeviceProfileService/ListAdrAlgorithms',
|
||||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class DeviceProfileServiceServicer(object):
|
||||
"""DeviceProfileService is the service providing API methods for managing device-profiles.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create the given device-profile.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get the device-profile for the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update the given device-profile.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete the device-profile with the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""List the available device-profiles.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListAdrAlgorithms(self, request, context):
|
||||
"""List available ADR algorithms.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_DeviceProfileServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.SerializeToString,
|
||||
),
|
||||
'ListAdrAlgorithms': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListAdrAlgorithms,
|
||||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.DeviceProfileService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class DeviceProfileService(object):
|
||||
"""DeviceProfileService is the service providing API methods for managing device-profiles.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Create',
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.CreateDeviceProfileResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Get',
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.GetDeviceProfileResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Update',
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.UpdateDeviceProfileRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/Delete',
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.DeleteDeviceProfileRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/List',
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfilesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListAdrAlgorithms(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.DeviceProfileService/ListAdrAlgorithms',
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__pb2.ListDeviceProfileAdrAlgorithmsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
48
api/python/src/chirpstack_api/api/frame_log_pb2.py
Normal file
48
api/python/src/chirpstack_api/api/frame_log_pb2.py
Normal file
@ -0,0 +1,48 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/frame_log.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"chirpstack-api/api/frame_log.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\xd7\x01\n\x0eUplinkFrameLog\x12\x13\n\x0bphy_payload\x18\x01 \x01(\x0c\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTXInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRXInfo\x12\x1d\n\x06m_type\x18\x04 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x05 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x06 \x01(\t\x12(\n\x04time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xe1\x01\n\x10\x44ownlinkFrameLog\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bphy_payload\x18\x02 \x01(\x0c\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTXInfo\x12\x13\n\x0b\x64ownlink_id\x18\x04 \x01(\t\x12\x12\n\ngateway_id\x18\x05 \x01(\t\x12\x1d\n\x06m_type\x18\x06 \x01(\x0e\x32\r.common.MType\x12\x10\n\x08\x64\x65v_addr\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\tBP\n\x11io.chirpstack.apiB\rFrameLogProtoP\x01Z*github.com/chirpstack/chirpstack/api/go/v4b\x06proto3')
|
||||
|
||||
|
||||
|
||||
_UPLINKFRAMELOG = DESCRIPTOR.message_types_by_name['UplinkFrameLog']
|
||||
_DOWNLINKFRAMELOG = DESCRIPTOR.message_types_by_name['DownlinkFrameLog']
|
||||
UplinkFrameLog = _reflection.GeneratedProtocolMessageType('UplinkFrameLog', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPLINKFRAMELOG,
|
||||
'__module__' : 'chirpstack_api.api.frame_log_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UplinkFrameLog)
|
||||
})
|
||||
_sym_db.RegisterMessage(UplinkFrameLog)
|
||||
|
||||
DownlinkFrameLog = _reflection.GeneratedProtocolMessageType('DownlinkFrameLog', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DOWNLINKFRAMELOG,
|
||||
'__module__' : 'chirpstack_api.api.frame_log_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DownlinkFrameLog)
|
||||
})
|
||||
_sym_db.RegisterMessage(DownlinkFrameLog)
|
||||
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\rFrameLogProtoP\001Z*github.com/chirpstack/chirpstack/api/go/v4'
|
||||
_UPLINKFRAMELOG._serialized_start=141
|
||||
_UPLINKFRAMELOG._serialized_end=356
|
||||
_DOWNLINKFRAMELOG._serialized_start=359
|
||||
_DOWNLINKFRAMELOG._serialized_end=584
|
||||
# @@protoc_insertion_point(module_scope)
|
4
api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py
Normal file
4
api/python/src/chirpstack_api/api/frame_log_pb2_grpc.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
275
api/python/src/chirpstack_api/api/gateway_pb2.py
Normal file
275
api/python/src/chirpstack_api/api/gateway_pb2.py
Normal file
File diff suppressed because one or more lines are too long
275
api/python/src/chirpstack_api/api/gateway_pb2_grpc.py
Normal file
275
api/python/src/chirpstack_api/api/gateway_pb2_grpc.py
Normal file
@ -0,0 +1,275 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import gateway_pb2 as chirpstack__api_dot_api_dot_gateway__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class GatewayServiceStub(object):
|
||||
"""GatewayService is the service providing API methods for managing gateways.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.GatewayService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.GatewayService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.GatewayService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.GatewayService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.GatewayService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.FromString,
|
||||
)
|
||||
self.GenerateClientCertificate = channel.unary_unary(
|
||||
'/api.GatewayService/GenerateClientCertificate',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.FromString,
|
||||
)
|
||||
self.GetStats = channel.unary_unary(
|
||||
'/api.GatewayService/GetStats',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class GatewayServiceServicer(object):
|
||||
"""GatewayService is the service providing API methods for managing gateways.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create creates the given gateway.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get returns the gateway for the given Gateway ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update updates the given gateway.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete deletes the gateway matching the given Gateway ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""Get the list of gateways.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GenerateClientCertificate(self, request, context):
|
||||
"""Generate client-certificate for the gateway.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetStats(self, request, context):
|
||||
"""GetStats returns the gateway stats.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_GatewayServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.SerializeToString,
|
||||
),
|
||||
'GenerateClientCertificate': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GenerateClientCertificate,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.SerializeToString,
|
||||
),
|
||||
'GetStats': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetStats,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.GatewayService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class GatewayService(object):
|
||||
"""GatewayService is the service providing API methods for managing gateways.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Create',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.CreateGatewayRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Get',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Update',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.UpdateGatewayRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/Delete',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.DeleteGatewayRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/List',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.ListGatewaysResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GenerateClientCertificate(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/GenerateClientCertificate',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GenerateGatewayClientCertificateResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetStats(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.GatewayService/GetStats',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayStatsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
307
api/python/src/chirpstack_api/api/internal_pb2.py
Normal file
307
api/python/src/chirpstack_api/api/internal_pb2.py
Normal file
File diff suppressed because one or more lines are too long
479
api/python/src/chirpstack_api/api/internal_pb2_grpc.py
Normal file
479
api/python/src/chirpstack_api/api/internal_pb2_grpc.py
Normal file
@ -0,0 +1,479 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import internal_pb2 as chirpstack__api_dot_api_dot_internal__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class InternalServiceStub(object):
|
||||
"""InternalService is the service providing API endpoints for internal usage.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Login = channel.unary_unary(
|
||||
'/api.InternalService/Login',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.FromString,
|
||||
)
|
||||
self.Profile = channel.unary_unary(
|
||||
'/api.InternalService/Profile',
|
||||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.FromString,
|
||||
)
|
||||
self.GlobalSearch = channel.unary_unary(
|
||||
'/api.InternalService/GlobalSearch',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.FromString,
|
||||
)
|
||||
self.CreateApiKey = channel.unary_unary(
|
||||
'/api.InternalService/CreateApiKey',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.FromString,
|
||||
)
|
||||
self.DeleteApiKey = channel.unary_unary(
|
||||
'/api.InternalService/DeleteApiKey',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.ListApiKeys = channel.unary_unary(
|
||||
'/api.InternalService/ListApiKeys',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.FromString,
|
||||
)
|
||||
self.Settings = channel.unary_unary(
|
||||
'/api.InternalService/Settings',
|
||||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.FromString,
|
||||
)
|
||||
self.OpenIdConnectLogin = channel.unary_unary(
|
||||
'/api.InternalService/OpenIdConnectLogin',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.FromString,
|
||||
)
|
||||
self.GetDevicesSummary = channel.unary_unary(
|
||||
'/api.InternalService/GetDevicesSummary',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.FromString,
|
||||
)
|
||||
self.GetGatewaysSummary = channel.unary_unary(
|
||||
'/api.InternalService/GetGatewaysSummary',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.FromString,
|
||||
)
|
||||
self.StreamGatewayFrames = channel.unary_stream(
|
||||
'/api.InternalService/StreamGatewayFrames',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
)
|
||||
self.StreamDeviceFrames = channel.unary_stream(
|
||||
'/api.InternalService/StreamDeviceFrames',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
)
|
||||
self.StreamDeviceEvents = channel.unary_stream(
|
||||
'/api.InternalService/StreamDeviceEvents',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
)
|
||||
|
||||
|
||||
class InternalServiceServicer(object):
|
||||
"""InternalService is the service providing API endpoints for internal usage.
|
||||
"""
|
||||
|
||||
def Login(self, request, context):
|
||||
"""Log in a user
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Profile(self, request, context):
|
||||
"""Get the current user's profile
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GlobalSearch(self, request, context):
|
||||
"""Perform a global search.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def CreateApiKey(self, request, context):
|
||||
"""CreateApiKey creates the given API key.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def DeleteApiKey(self, request, context):
|
||||
"""DeleteApiKey deletes the API key.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListApiKeys(self, request, context):
|
||||
"""ListApiKeys lists the available API keys.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Settings(self, request, context):
|
||||
"""Get the global settings.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def OpenIdConnectLogin(self, request, context):
|
||||
"""OpenId Connect login.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetDevicesSummary(self, request, context):
|
||||
"""GetDevicesSummary returns an aggregated summary of the devices.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetGatewaysSummary(self, request, context):
|
||||
"""GetGatewaysSummary returns an aggregated summary of the gateways.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def StreamGatewayFrames(self, request, context):
|
||||
"""Stream frame for the given Gateway ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def StreamDeviceFrames(self, request, context):
|
||||
"""Stream frames for the given Device EUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def StreamDeviceEvents(self, request, context):
|
||||
"""Stream events for the given Device EUI.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_InternalServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Login': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Login,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.SerializeToString,
|
||||
),
|
||||
'Profile': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Profile,
|
||||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.SerializeToString,
|
||||
),
|
||||
'GlobalSearch': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GlobalSearch,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.SerializeToString,
|
||||
),
|
||||
'CreateApiKey': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.CreateApiKey,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.SerializeToString,
|
||||
),
|
||||
'DeleteApiKey': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.DeleteApiKey,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'ListApiKeys': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListApiKeys,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.SerializeToString,
|
||||
),
|
||||
'Settings': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Settings,
|
||||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.SerializeToString,
|
||||
),
|
||||
'OpenIdConnectLogin': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.OpenIdConnectLogin,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.SerializeToString,
|
||||
),
|
||||
'GetDevicesSummary': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetDevicesSummary,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.SerializeToString,
|
||||
),
|
||||
'GetGatewaysSummary': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetGatewaysSummary,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.SerializeToString,
|
||||
),
|
||||
'StreamGatewayFrames': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.StreamGatewayFrames,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString,
|
||||
),
|
||||
'StreamDeviceFrames': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.StreamDeviceFrames,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString,
|
||||
),
|
||||
'StreamDeviceEvents': grpc.unary_stream_rpc_method_handler(
|
||||
servicer.StreamDeviceEvents,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.LogItem.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.InternalService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class InternalService(object):
|
||||
"""InternalService is the service providing API endpoints for internal usage.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Login(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/Login',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.LoginRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.LoginResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Profile(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/Profile',
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.ProfileResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GlobalSearch(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/GlobalSearch',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GlobalSearchResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def CreateApiKey(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/CreateApiKey',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.CreateApiKeyResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def DeleteApiKey(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/DeleteApiKey',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.DeleteApiKeyRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListApiKeys(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/ListApiKeys',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.ListApiKeysResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Settings(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/Settings',
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.SettingsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def OpenIdConnectLogin(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/OpenIdConnectLogin',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.OpenIdConnectLoginResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetDevicesSummary(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetDevicesSummary',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetDevicesSummaryResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetGatewaysSummary(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.InternalService/GetGatewaysSummary',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetGatewaysSummaryResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def StreamGatewayFrames(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamGatewayFrames',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.StreamGatewayFramesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def StreamDeviceFrames(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamDeviceFrames',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceFramesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def StreamDeviceEvents(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_stream(request, target, '/api.InternalService/StreamDeviceEvents',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.StreamDeviceEventsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.LogItem.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
219
api/python/src/chirpstack_api/api/multicast_group_pb2.py
Normal file
219
api/python/src/chirpstack_api/api/multicast_group_pb2.py
Normal file
@ -0,0 +1,219 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/multicast_group.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(chirpstack-api/api/multicast_group.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\"chirpstack-api/common/common.proto\"\x9c\x02\n\x0eMulticastGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\x12\x1e\n\x06region\x18\x04 \x01(\x0e\x32\x0e.common.Region\x12\x0f\n\x07mc_addr\x18\x05 \x01(\t\x12\x14\n\x0cmc_nwk_s_key\x18\x06 \x01(\t\x12\x14\n\x0cmc_app_s_key\x18\x07 \x01(\t\x12\r\n\x05\x66_cnt\x18\x08 \x01(\r\x12+\n\ngroup_type\x18\t \x01(\x0e\x32\x17.api.MulticastGroupType\x12\n\n\x02\x64r\x18\n \x01(\r\x12\x11\n\tfrequency\x18\x0b \x01(\r\x12 \n\x18\x63lass_b_ping_slot_period\x18\x0c \x01(\r\"\xdf\x01\n\x16MulticastGroupListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x06region\x18\x05 \x01(\x0e\x32\x0e.common.Region\x12+\n\ngroup_type\x18\x06 \x01(\x0e\x32\x17.api.MulticastGroupType\"K\n\x1b\x43reateMulticastGroupRequest\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\"*\n\x1c\x43reateMulticastGroupResponse\x12\n\n\x02id\x18\x01 \x01(\t\"&\n\x18GetMulticastGroupRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xa9\x01\n\x19GetMulticastGroupResponse\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"K\n\x1bUpdateMulticastGroupRequest\x12,\n\x0fmulticast_group\x18\x01 \x01(\x0b\x32\x13.api.MulticastGroup\")\n\x1b\x44\x65leteMulticastGroupRequest\x12\n\n\x02id\x18\x01 \x01(\t\"c\n\x1aListMulticastGroupsRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x04 \x01(\t\"_\n\x1bListMulticastGroupsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12+\n\x06result\x18\x02 \x03(\x0b\x32\x1b.api.MulticastGroupListItem\"O\n AddDeviceToMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\"T\n%RemoveDeviceFromMulticastGroupRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x02 \x01(\t\"b\n\x17MulticastGroupQueueItem\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\x12\r\n\x05\x66_cnt\x18\x02 \x01(\r\x12\x0e\n\x06\x66_port\x18\x03 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x04 \x01(\x0c\"i\n%EnqueueMulticastGroupQueueItemRequest\x12@\n\x1amulticast_group_queue_item\x18\x01 \x01(\x0b\x32\x1c.api.MulticastGroupQueueItem\"7\n&EnqueueMulticastGroupQueueItemResponse\x12\r\n\x05\x66_cnt\x18\x01 \x01(\r\"=\n\x1f\x46lushMulticastGroupQueueRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\"<\n\x1eListMulticastGroupQueueRequest\x12\x1a\n\x12multicast_group_id\x18\x01 \x01(\t\"N\n\x1fListMulticastGroupQueueResponse\x12+\n\x05items\x18\x01 \x03(\x0b\x32\x1c.api.MulticastGroupQueueItem*.\n\x12MulticastGroupType\x12\x0b\n\x07\x43LASS_C\x10\x00\x12\x0b\n\x07\x43LASS_B\x10\x01\x32\xbb\x06\n\x15MulticastGroupService\x12O\n\x06\x43reate\x12 .api.CreateMulticastGroupRequest\x1a!.api.CreateMulticastGroupResponse\"\x00\x12\x46\n\x03Get\x12\x1d.api.GetMulticastGroupRequest\x1a\x1e.api.GetMulticastGroupResponse\"\x00\x12\x44\n\x06Update\x12 .api.UpdateMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\x06\x44\x65lete\x12 .api.DeleteMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"\x00\x12K\n\x04List\x12\x1f.api.ListMulticastGroupsRequest\x1a .api.ListMulticastGroupsResponse\"\x00\x12L\n\tAddDevice\x12%.api.AddDeviceToMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n\x0cRemoveDevice\x12*.api.RemoveDeviceFromMulticastGroupRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x64\n\x07\x45nqueue\x12*.api.EnqueueMulticastGroupQueueItemRequest\x1a+.api.EnqueueMulticastGroupQueueItemResponse\"\x00\x12L\n\nFlushQueue\x12$.api.FlushMulticastGroupQueueRequest\x1a\x16.google.protobuf.Empty\"\x00\x12X\n\tListQueue\x12#.api.ListMulticastGroupQueueRequest\x1a$.api.ListMulticastGroupQueueResponse\"\x00\x42V\n\x11io.chirpstack.apiB\x13MulticastGroupProtoP\x01Z*github.com/chirpstack/chirpstack/api/go/v4b\x06proto3')
|
||||
|
||||
_MULTICASTGROUPTYPE = DESCRIPTOR.enum_types_by_name['MulticastGroupType']
|
||||
MulticastGroupType = enum_type_wrapper.EnumTypeWrapper(_MULTICASTGROUPTYPE)
|
||||
CLASS_C = 0
|
||||
CLASS_B = 1
|
||||
|
||||
|
||||
_MULTICASTGROUP = DESCRIPTOR.message_types_by_name['MulticastGroup']
|
||||
_MULTICASTGROUPLISTITEM = DESCRIPTOR.message_types_by_name['MulticastGroupListItem']
|
||||
_CREATEMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['CreateMulticastGroupRequest']
|
||||
_CREATEMULTICASTGROUPRESPONSE = DESCRIPTOR.message_types_by_name['CreateMulticastGroupResponse']
|
||||
_GETMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['GetMulticastGroupRequest']
|
||||
_GETMULTICASTGROUPRESPONSE = DESCRIPTOR.message_types_by_name['GetMulticastGroupResponse']
|
||||
_UPDATEMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['UpdateMulticastGroupRequest']
|
||||
_DELETEMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['DeleteMulticastGroupRequest']
|
||||
_LISTMULTICASTGROUPSREQUEST = DESCRIPTOR.message_types_by_name['ListMulticastGroupsRequest']
|
||||
_LISTMULTICASTGROUPSRESPONSE = DESCRIPTOR.message_types_by_name['ListMulticastGroupsResponse']
|
||||
_ADDDEVICETOMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['AddDeviceToMulticastGroupRequest']
|
||||
_REMOVEDEVICEFROMMULTICASTGROUPREQUEST = DESCRIPTOR.message_types_by_name['RemoveDeviceFromMulticastGroupRequest']
|
||||
_MULTICASTGROUPQUEUEITEM = DESCRIPTOR.message_types_by_name['MulticastGroupQueueItem']
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMREQUEST = DESCRIPTOR.message_types_by_name['EnqueueMulticastGroupQueueItemRequest']
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMRESPONSE = DESCRIPTOR.message_types_by_name['EnqueueMulticastGroupQueueItemResponse']
|
||||
_FLUSHMULTICASTGROUPQUEUEREQUEST = DESCRIPTOR.message_types_by_name['FlushMulticastGroupQueueRequest']
|
||||
_LISTMULTICASTGROUPQUEUEREQUEST = DESCRIPTOR.message_types_by_name['ListMulticastGroupQueueRequest']
|
||||
_LISTMULTICASTGROUPQUEUERESPONSE = DESCRIPTOR.message_types_by_name['ListMulticastGroupQueueResponse']
|
||||
MulticastGroup = _reflection.GeneratedProtocolMessageType('MulticastGroup', (_message.Message,), {
|
||||
'DESCRIPTOR' : _MULTICASTGROUP,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.MulticastGroup)
|
||||
})
|
||||
_sym_db.RegisterMessage(MulticastGroup)
|
||||
|
||||
MulticastGroupListItem = _reflection.GeneratedProtocolMessageType('MulticastGroupListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _MULTICASTGROUPLISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.MulticastGroupListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(MulticastGroupListItem)
|
||||
|
||||
CreateMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('CreateMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateMulticastGroupRequest)
|
||||
|
||||
CreateMulticastGroupResponse = _reflection.GeneratedProtocolMessageType('CreateMulticastGroupResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEMULTICASTGROUPRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateMulticastGroupResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateMulticastGroupResponse)
|
||||
|
||||
GetMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('GetMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetMulticastGroupRequest)
|
||||
|
||||
GetMulticastGroupResponse = _reflection.GeneratedProtocolMessageType('GetMulticastGroupResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETMULTICASTGROUPRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetMulticastGroupResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetMulticastGroupResponse)
|
||||
|
||||
UpdateMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('UpdateMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATEMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateMulticastGroupRequest)
|
||||
|
||||
DeleteMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('DeleteMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DELETEMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeleteMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeleteMulticastGroupRequest)
|
||||
|
||||
ListMulticastGroupsRequest = _reflection.GeneratedProtocolMessageType('ListMulticastGroupsRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTMULTICASTGROUPSREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListMulticastGroupsRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListMulticastGroupsRequest)
|
||||
|
||||
ListMulticastGroupsResponse = _reflection.GeneratedProtocolMessageType('ListMulticastGroupsResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTMULTICASTGROUPSRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListMulticastGroupsResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListMulticastGroupsResponse)
|
||||
|
||||
AddDeviceToMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('AddDeviceToMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ADDDEVICETOMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.AddDeviceToMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(AddDeviceToMulticastGroupRequest)
|
||||
|
||||
RemoveDeviceFromMulticastGroupRequest = _reflection.GeneratedProtocolMessageType('RemoveDeviceFromMulticastGroupRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _REMOVEDEVICEFROMMULTICASTGROUPREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.RemoveDeviceFromMulticastGroupRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(RemoveDeviceFromMulticastGroupRequest)
|
||||
|
||||
MulticastGroupQueueItem = _reflection.GeneratedProtocolMessageType('MulticastGroupQueueItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _MULTICASTGROUPQUEUEITEM,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.MulticastGroupQueueItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(MulticastGroupQueueItem)
|
||||
|
||||
EnqueueMulticastGroupQueueItemRequest = _reflection.GeneratedProtocolMessageType('EnqueueMulticastGroupQueueItemRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ENQUEUEMULTICASTGROUPQUEUEITEMREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.EnqueueMulticastGroupQueueItemRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(EnqueueMulticastGroupQueueItemRequest)
|
||||
|
||||
EnqueueMulticastGroupQueueItemResponse = _reflection.GeneratedProtocolMessageType('EnqueueMulticastGroupQueueItemResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ENQUEUEMULTICASTGROUPQUEUEITEMRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.EnqueueMulticastGroupQueueItemResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(EnqueueMulticastGroupQueueItemResponse)
|
||||
|
||||
FlushMulticastGroupQueueRequest = _reflection.GeneratedProtocolMessageType('FlushMulticastGroupQueueRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _FLUSHMULTICASTGROUPQUEUEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.FlushMulticastGroupQueueRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(FlushMulticastGroupQueueRequest)
|
||||
|
||||
ListMulticastGroupQueueRequest = _reflection.GeneratedProtocolMessageType('ListMulticastGroupQueueRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTMULTICASTGROUPQUEUEREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListMulticastGroupQueueRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListMulticastGroupQueueRequest)
|
||||
|
||||
ListMulticastGroupQueueResponse = _reflection.GeneratedProtocolMessageType('ListMulticastGroupQueueResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTMULTICASTGROUPQUEUERESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.multicast_group_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListMulticastGroupQueueResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListMulticastGroupQueueResponse)
|
||||
|
||||
_MULTICASTGROUPSERVICE = DESCRIPTOR.services_by_name['MulticastGroupService']
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\023MulticastGroupProtoP\001Z*github.com/chirpstack/chirpstack/api/go/v4'
|
||||
_MULTICASTGROUPTYPE._serialized_start=1977
|
||||
_MULTICASTGROUPTYPE._serialized_end=2023
|
||||
_MULTICASTGROUP._serialized_start=178
|
||||
_MULTICASTGROUP._serialized_end=462
|
||||
_MULTICASTGROUPLISTITEM._serialized_start=465
|
||||
_MULTICASTGROUPLISTITEM._serialized_end=688
|
||||
_CREATEMULTICASTGROUPREQUEST._serialized_start=690
|
||||
_CREATEMULTICASTGROUPREQUEST._serialized_end=765
|
||||
_CREATEMULTICASTGROUPRESPONSE._serialized_start=767
|
||||
_CREATEMULTICASTGROUPRESPONSE._serialized_end=809
|
||||
_GETMULTICASTGROUPREQUEST._serialized_start=811
|
||||
_GETMULTICASTGROUPREQUEST._serialized_end=849
|
||||
_GETMULTICASTGROUPRESPONSE._serialized_start=852
|
||||
_GETMULTICASTGROUPRESPONSE._serialized_end=1021
|
||||
_UPDATEMULTICASTGROUPREQUEST._serialized_start=1023
|
||||
_UPDATEMULTICASTGROUPREQUEST._serialized_end=1098
|
||||
_DELETEMULTICASTGROUPREQUEST._serialized_start=1100
|
||||
_DELETEMULTICASTGROUPREQUEST._serialized_end=1141
|
||||
_LISTMULTICASTGROUPSREQUEST._serialized_start=1143
|
||||
_LISTMULTICASTGROUPSREQUEST._serialized_end=1242
|
||||
_LISTMULTICASTGROUPSRESPONSE._serialized_start=1244
|
||||
_LISTMULTICASTGROUPSRESPONSE._serialized_end=1339
|
||||
_ADDDEVICETOMULTICASTGROUPREQUEST._serialized_start=1341
|
||||
_ADDDEVICETOMULTICASTGROUPREQUEST._serialized_end=1420
|
||||
_REMOVEDEVICEFROMMULTICASTGROUPREQUEST._serialized_start=1422
|
||||
_REMOVEDEVICEFROMMULTICASTGROUPREQUEST._serialized_end=1506
|
||||
_MULTICASTGROUPQUEUEITEM._serialized_start=1508
|
||||
_MULTICASTGROUPQUEUEITEM._serialized_end=1606
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMREQUEST._serialized_start=1608
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMREQUEST._serialized_end=1713
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMRESPONSE._serialized_start=1715
|
||||
_ENQUEUEMULTICASTGROUPQUEUEITEMRESPONSE._serialized_end=1770
|
||||
_FLUSHMULTICASTGROUPQUEUEREQUEST._serialized_start=1772
|
||||
_FLUSHMULTICASTGROUPQUEUEREQUEST._serialized_end=1833
|
||||
_LISTMULTICASTGROUPQUEUEREQUEST._serialized_start=1835
|
||||
_LISTMULTICASTGROUPQUEUEREQUEST._serialized_end=1895
|
||||
_LISTMULTICASTGROUPQUEUERESPONSE._serialized_start=1897
|
||||
_LISTMULTICASTGROUPQUEUERESPONSE._serialized_end=1975
|
||||
_MULTICASTGROUPSERVICE._serialized_start=2026
|
||||
_MULTICASTGROUPSERVICE._serialized_end=2853
|
||||
# @@protoc_insertion_point(module_scope)
|
377
api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py
Normal file
377
api/python/src/chirpstack_api/api/multicast_group_pb2_grpc.py
Normal file
@ -0,0 +1,377 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import multicast_group_pb2 as chirpstack__api_dot_api_dot_multicast__group__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class MulticastGroupServiceStub(object):
|
||||
"""MulticastGroupService is the service managing multicast-groups.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.MulticastGroupService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.MulticastGroupService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.MulticastGroupService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.MulticastGroupService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.MulticastGroupService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.FromString,
|
||||
)
|
||||
self.AddDevice = channel.unary_unary(
|
||||
'/api.MulticastGroupService/AddDevice',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.RemoveDevice = channel.unary_unary(
|
||||
'/api.MulticastGroupService/RemoveDevice',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Enqueue = channel.unary_unary(
|
||||
'/api.MulticastGroupService/Enqueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.FromString,
|
||||
)
|
||||
self.FlushQueue = channel.unary_unary(
|
||||
'/api.MulticastGroupService/FlushQueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.ListQueue = channel.unary_unary(
|
||||
'/api.MulticastGroupService/ListQueue',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class MulticastGroupServiceServicer(object):
|
||||
"""MulticastGroupService is the service managing multicast-groups.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create the given multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get returns the multicast group for the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update the given multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete the multicast-group with the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""List the available multicast groups.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def AddDevice(self, request, context):
|
||||
"""Add a device to the multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RemoveDevice(self, request, context):
|
||||
"""Remove a device from the multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Enqueue(self, request, context):
|
||||
"""Add the given item to the multcast group queue.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def FlushQueue(self, request, context):
|
||||
"""Flush the queue for the given multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListQueue(self, request, context):
|
||||
"""List the items in the multicast group queue.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_MulticastGroupServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.SerializeToString,
|
||||
),
|
||||
'AddDevice': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.AddDevice,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'RemoveDevice': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RemoveDevice,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Enqueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Enqueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.SerializeToString,
|
||||
),
|
||||
'FlushQueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.FlushQueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'ListQueue': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListQueue,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.MulticastGroupService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class MulticastGroupService(object):
|
||||
"""MulticastGroupService is the service managing multicast-groups.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Create',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.CreateMulticastGroupResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Get',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.GetMulticastGroupResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Update',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.UpdateMulticastGroupRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Delete',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.DeleteMulticastGroupRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/List',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def AddDevice(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/AddDevice',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.AddDeviceToMulticastGroupRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RemoveDevice(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/RemoveDevice',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveDeviceFromMulticastGroupRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Enqueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/Enqueue',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.EnqueueMulticastGroupQueueItemResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def FlushQueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/FlushQueue',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.FlushMulticastGroupQueueRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListQueue(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.MulticastGroupService/ListQueue',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.ListMulticastGroupQueueResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
220
api/python/src/chirpstack_api/api/tenant_pb2.py
Normal file
220
api/python/src/chirpstack_api/api/tenant_pb2.py
Normal file
@ -0,0 +1,220 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/tenant.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1f\x63hirpstack-api/api/tenant.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"\xa1\x01\n\x06Tenant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x19\n\x11\x63\x61n_have_gateways\x18\x04 \x01(\x08\x12\x19\n\x11max_gateway_count\x18\x05 \x01(\r\x12\x18\n\x10max_device_count\x18\x06 \x01(\r\x12\x18\n\x10private_gateways\x18\x07 \x01(\x08\"\xf4\x01\n\x0eTenantListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x19\n\x11\x63\x61n_have_gateways\x18\x05 \x01(\x08\x12\x18\n\x10private_gateways\x18\x06 \x01(\x08\x12\x19\n\x11max_gateway_count\x18\x07 \x01(\r\x12\x18\n\x10max_device_count\x18\x08 \x01(\r\"2\n\x13\x43reateTenantRequest\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\"\"\n\x14\x43reateTenantResponse\x12\n\n\x02id\x18\x01 \x01(\t\"\x1e\n\x10GetTenantRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x90\x01\n\x11GetTenantResponse\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"2\n\x13UpdateTenantRequest\x12\x1b\n\x06tenant\x18\x01 \x01(\x0b\x32\x0b.api.Tenant\"!\n\x13\x44\x65leteTenantRequest\x12\n\n\x02id\x18\x01 \x01(\t\"C\n\x12ListTenantsRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x0e\n\x06search\x18\x03 \x01(\t\"O\n\x13ListTenantsResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12#\n\x06result\x18\x02 \x03(\x0b\x32\x13.api.TenantListItem\"\x84\x01\n\nTenantUser\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12\x10\n\x08is_admin\x18\x03 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x04 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x05 \x01(\x08\x12\r\n\x05\x65mail\x18\x06 \x01(\t\"\xec\x01\n\x12TenantUserListItem\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x65mail\x18\x05 \x01(\t\x12\x10\n\x08is_admin\x18\x06 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x07 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x08 \x01(\x08\"<\n\x14\x41\x64\x64TenantUserRequest\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\":\n\x14GetTenantUserRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\"\x9d\x01\n\x15GetTenantUserResponse\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"?\n\x17UpdateTenantUserRequest\x12$\n\x0btenant_user\x18\x01 \x01(\x0b\x32\x0f.api.TenantUser\"=\n\x17\x44\x65leteTenantUserRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x0f\n\x07user_id\x18\x02 \x01(\t\"J\n\x16ListTenantUsersRequest\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\r\n\x05limit\x18\x02 \x01(\r\x12\x0e\n\x06offset\x18\x03 \x01(\r\"W\n\x17ListTenantUsersResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\'\n\x06result\x18\x02 \x03(\x0b\x32\x17.api.TenantUserListItem2\x9b\x05\n\rTenantService\x12?\n\x06\x43reate\x12\x18.api.CreateTenantRequest\x1a\x19.api.CreateTenantResponse\"\x00\x12\x36\n\x03Get\x12\x15.api.GetTenantRequest\x1a\x16.api.GetTenantResponse\"\x00\x12<\n\x06Update\x12\x18.api.UpdateTenantRequest\x1a\x16.google.protobuf.Empty\"\x00\x12<\n\x06\x44\x65lete\x12\x18.api.DeleteTenantRequest\x1a\x16.google.protobuf.Empty\"\x00\x12;\n\x04List\x12\x17.api.ListTenantsRequest\x1a\x18.api.ListTenantsResponse\"\x00\x12>\n\x07\x41\x64\x64User\x12\x19.api.AddTenantUserRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x42\n\x07GetUser\x12\x19.api.GetTenantUserRequest\x1a\x1a.api.GetTenantUserResponse\"\x00\x12\x44\n\nUpdateUser\x12\x1c.api.UpdateTenantUserRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x44\n\nDeleteUser\x12\x1c.api.DeleteTenantUserRequest\x1a\x16.google.protobuf.Empty\"\x00\x12H\n\tListUsers\x12\x1b.api.ListTenantUsersRequest\x1a\x1c.api.ListTenantUsersResponse\"\x00\x42P\n\x11io.chirpstack.apiB\rInternalProtoP\x01Z*github.com/chirpstack/chirpstack/api/go/v4b\x06proto3')
|
||||
|
||||
|
||||
|
||||
_TENANT = DESCRIPTOR.message_types_by_name['Tenant']
|
||||
_TENANTLISTITEM = DESCRIPTOR.message_types_by_name['TenantListItem']
|
||||
_CREATETENANTREQUEST = DESCRIPTOR.message_types_by_name['CreateTenantRequest']
|
||||
_CREATETENANTRESPONSE = DESCRIPTOR.message_types_by_name['CreateTenantResponse']
|
||||
_GETTENANTREQUEST = DESCRIPTOR.message_types_by_name['GetTenantRequest']
|
||||
_GETTENANTRESPONSE = DESCRIPTOR.message_types_by_name['GetTenantResponse']
|
||||
_UPDATETENANTREQUEST = DESCRIPTOR.message_types_by_name['UpdateTenantRequest']
|
||||
_DELETETENANTREQUEST = DESCRIPTOR.message_types_by_name['DeleteTenantRequest']
|
||||
_LISTTENANTSREQUEST = DESCRIPTOR.message_types_by_name['ListTenantsRequest']
|
||||
_LISTTENANTSRESPONSE = DESCRIPTOR.message_types_by_name['ListTenantsResponse']
|
||||
_TENANTUSER = DESCRIPTOR.message_types_by_name['TenantUser']
|
||||
_TENANTUSERLISTITEM = DESCRIPTOR.message_types_by_name['TenantUserListItem']
|
||||
_ADDTENANTUSERREQUEST = DESCRIPTOR.message_types_by_name['AddTenantUserRequest']
|
||||
_GETTENANTUSERREQUEST = DESCRIPTOR.message_types_by_name['GetTenantUserRequest']
|
||||
_GETTENANTUSERRESPONSE = DESCRIPTOR.message_types_by_name['GetTenantUserResponse']
|
||||
_UPDATETENANTUSERREQUEST = DESCRIPTOR.message_types_by_name['UpdateTenantUserRequest']
|
||||
_DELETETENANTUSERREQUEST = DESCRIPTOR.message_types_by_name['DeleteTenantUserRequest']
|
||||
_LISTTENANTUSERSREQUEST = DESCRIPTOR.message_types_by_name['ListTenantUsersRequest']
|
||||
_LISTTENANTUSERSRESPONSE = DESCRIPTOR.message_types_by_name['ListTenantUsersResponse']
|
||||
Tenant = _reflection.GeneratedProtocolMessageType('Tenant', (_message.Message,), {
|
||||
'DESCRIPTOR' : _TENANT,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.Tenant)
|
||||
})
|
||||
_sym_db.RegisterMessage(Tenant)
|
||||
|
||||
TenantListItem = _reflection.GeneratedProtocolMessageType('TenantListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _TENANTLISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.TenantListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(TenantListItem)
|
||||
|
||||
CreateTenantRequest = _reflection.GeneratedProtocolMessageType('CreateTenantRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATETENANTREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateTenantRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateTenantRequest)
|
||||
|
||||
CreateTenantResponse = _reflection.GeneratedProtocolMessageType('CreateTenantResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATETENANTRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateTenantResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateTenantResponse)
|
||||
|
||||
GetTenantRequest = _reflection.GeneratedProtocolMessageType('GetTenantRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETTENANTREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetTenantRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetTenantRequest)
|
||||
|
||||
GetTenantResponse = _reflection.GeneratedProtocolMessageType('GetTenantResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETTENANTRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetTenantResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetTenantResponse)
|
||||
|
||||
UpdateTenantRequest = _reflection.GeneratedProtocolMessageType('UpdateTenantRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATETENANTREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateTenantRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateTenantRequest)
|
||||
|
||||
DeleteTenantRequest = _reflection.GeneratedProtocolMessageType('DeleteTenantRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DELETETENANTREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeleteTenantRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeleteTenantRequest)
|
||||
|
||||
ListTenantsRequest = _reflection.GeneratedProtocolMessageType('ListTenantsRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTTENANTSREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListTenantsRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListTenantsRequest)
|
||||
|
||||
ListTenantsResponse = _reflection.GeneratedProtocolMessageType('ListTenantsResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTTENANTSRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListTenantsResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListTenantsResponse)
|
||||
|
||||
TenantUser = _reflection.GeneratedProtocolMessageType('TenantUser', (_message.Message,), {
|
||||
'DESCRIPTOR' : _TENANTUSER,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.TenantUser)
|
||||
})
|
||||
_sym_db.RegisterMessage(TenantUser)
|
||||
|
||||
TenantUserListItem = _reflection.GeneratedProtocolMessageType('TenantUserListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _TENANTUSERLISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.TenantUserListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(TenantUserListItem)
|
||||
|
||||
AddTenantUserRequest = _reflection.GeneratedProtocolMessageType('AddTenantUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ADDTENANTUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.AddTenantUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(AddTenantUserRequest)
|
||||
|
||||
GetTenantUserRequest = _reflection.GeneratedProtocolMessageType('GetTenantUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETTENANTUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetTenantUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetTenantUserRequest)
|
||||
|
||||
GetTenantUserResponse = _reflection.GeneratedProtocolMessageType('GetTenantUserResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETTENANTUSERRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetTenantUserResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetTenantUserResponse)
|
||||
|
||||
UpdateTenantUserRequest = _reflection.GeneratedProtocolMessageType('UpdateTenantUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATETENANTUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateTenantUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateTenantUserRequest)
|
||||
|
||||
DeleteTenantUserRequest = _reflection.GeneratedProtocolMessageType('DeleteTenantUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DELETETENANTUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeleteTenantUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeleteTenantUserRequest)
|
||||
|
||||
ListTenantUsersRequest = _reflection.GeneratedProtocolMessageType('ListTenantUsersRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTTENANTUSERSREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListTenantUsersRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListTenantUsersRequest)
|
||||
|
||||
ListTenantUsersResponse = _reflection.GeneratedProtocolMessageType('ListTenantUsersResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTTENANTUSERSRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.tenant_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListTenantUsersResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListTenantUsersResponse)
|
||||
|
||||
_TENANTSERVICE = DESCRIPTOR.services_by_name['TenantService']
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\rInternalProtoP\001Z*github.com/chirpstack/chirpstack/api/go/v4'
|
||||
_TENANT._serialized_start=103
|
||||
_TENANT._serialized_end=264
|
||||
_TENANTLISTITEM._serialized_start=267
|
||||
_TENANTLISTITEM._serialized_end=511
|
||||
_CREATETENANTREQUEST._serialized_start=513
|
||||
_CREATETENANTREQUEST._serialized_end=563
|
||||
_CREATETENANTRESPONSE._serialized_start=565
|
||||
_CREATETENANTRESPONSE._serialized_end=599
|
||||
_GETTENANTREQUEST._serialized_start=601
|
||||
_GETTENANTREQUEST._serialized_end=631
|
||||
_GETTENANTRESPONSE._serialized_start=634
|
||||
_GETTENANTRESPONSE._serialized_end=778
|
||||
_UPDATETENANTREQUEST._serialized_start=780
|
||||
_UPDATETENANTREQUEST._serialized_end=830
|
||||
_DELETETENANTREQUEST._serialized_start=832
|
||||
_DELETETENANTREQUEST._serialized_end=865
|
||||
_LISTTENANTSREQUEST._serialized_start=867
|
||||
_LISTTENANTSREQUEST._serialized_end=934
|
||||
_LISTTENANTSRESPONSE._serialized_start=936
|
||||
_LISTTENANTSRESPONSE._serialized_end=1015
|
||||
_TENANTUSER._serialized_start=1018
|
||||
_TENANTUSER._serialized_end=1150
|
||||
_TENANTUSERLISTITEM._serialized_start=1153
|
||||
_TENANTUSERLISTITEM._serialized_end=1389
|
||||
_ADDTENANTUSERREQUEST._serialized_start=1391
|
||||
_ADDTENANTUSERREQUEST._serialized_end=1451
|
||||
_GETTENANTUSERREQUEST._serialized_start=1453
|
||||
_GETTENANTUSERREQUEST._serialized_end=1511
|
||||
_GETTENANTUSERRESPONSE._serialized_start=1514
|
||||
_GETTENANTUSERRESPONSE._serialized_end=1671
|
||||
_UPDATETENANTUSERREQUEST._serialized_start=1673
|
||||
_UPDATETENANTUSERREQUEST._serialized_end=1736
|
||||
_DELETETENANTUSERREQUEST._serialized_start=1738
|
||||
_DELETETENANTUSERREQUEST._serialized_end=1799
|
||||
_LISTTENANTUSERSREQUEST._serialized_start=1801
|
||||
_LISTTENANTUSERSREQUEST._serialized_end=1875
|
||||
_LISTTENANTUSERSRESPONSE._serialized_start=1877
|
||||
_LISTTENANTUSERSRESPONSE._serialized_end=1964
|
||||
_TENANTSERVICE._serialized_start=1967
|
||||
_TENANTSERVICE._serialized_end=2634
|
||||
# @@protoc_insertion_point(module_scope)
|
378
api/python/src/chirpstack_api/api/tenant_pb2_grpc.py
Normal file
378
api/python/src/chirpstack_api/api/tenant_pb2_grpc.py
Normal file
@ -0,0 +1,378 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import tenant_pb2 as chirpstack__api_dot_api_dot_tenant__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class TenantServiceStub(object):
|
||||
"""TenantService is the service providing API methods for managing tenants.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.TenantService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.TenantService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.TenantService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.TenantService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.TenantService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.FromString,
|
||||
)
|
||||
self.AddUser = channel.unary_unary(
|
||||
'/api.TenantService/AddUser',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.GetUser = channel.unary_unary(
|
||||
'/api.TenantService/GetUser',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.FromString,
|
||||
)
|
||||
self.UpdateUser = channel.unary_unary(
|
||||
'/api.TenantService/UpdateUser',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.DeleteUser = channel.unary_unary(
|
||||
'/api.TenantService/DeleteUser',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.ListUsers = channel.unary_unary(
|
||||
'/api.TenantService/ListUsers',
|
||||
request_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class TenantServiceServicer(object):
|
||||
"""TenantService is the service providing API methods for managing tenants.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create a new tenant.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get the tenant for the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update the given tenant.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete the tenant with the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""Get the list of tenants.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def AddUser(self, request, context):
|
||||
"""Add an user to the tenant.
|
||||
Note: the user must already exist.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetUser(self, request, context):
|
||||
"""Get the the tenant user for the given tenant and user IDs.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdateUser(self, request, context):
|
||||
"""Update the given tenant user.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def DeleteUser(self, request, context):
|
||||
"""Delete the given tenant user.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListUsers(self, request, context):
|
||||
"""Get the list of tenant users.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_TenantServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.SerializeToString,
|
||||
),
|
||||
'AddUser': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.AddUser,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'GetUser': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetUser,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.SerializeToString,
|
||||
),
|
||||
'UpdateUser': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdateUser,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'DeleteUser': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.DeleteUser,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'ListUsers': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListUsers,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.TenantService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class TenantService(object):
|
||||
"""TenantService is the service providing API methods for managing tenants.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/Create',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.CreateTenantResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/Get',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.GetTenantRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.GetTenantResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/Update',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/Delete',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/List',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.ListTenantsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def AddUser(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/AddUser',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.AddTenantUserRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetUser(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/GetUser',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.GetTenantUserResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def UpdateUser(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/UpdateUser',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.UpdateTenantUserRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def DeleteUser(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/DeleteUser',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.DeleteTenantUserRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListUsers(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.TenantService/ListUsers',
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_tenant__pb2.ListTenantUsersResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
150
api/python/src/chirpstack_api/api/user_pb2.py
Normal file
150
api/python/src/chirpstack_api/api/user_pb2.py
Normal file
@ -0,0 +1,150 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/user.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63hirpstack-api/api/user.proto\x12\x03\x61pi\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\"T\n\x04User\x12\n\n\x02id\x18\x01 \x01(\t\x12\x10\n\x08is_admin\x18\x04 \x01(\x08\x12\x11\n\tis_active\x18\x05 \x01(\x08\x12\r\n\x05\x65mail\x18\x06 \x01(\t\x12\x0c\n\x04note\x18\x07 \x01(\t\"\xae\x01\n\x0cUserListItem\x12\n\n\x02id\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\r\n\x05\x65mail\x18\x04 \x01(\t\x12\x10\n\x08is_admin\x18\x05 \x01(\x08\x12\x11\n\tis_active\x18\x06 \x01(\x08\"d\n\nUserTenant\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x10\n\x08is_admin\x18\x02 \x01(\x08\x12\x17\n\x0fis_device_admin\x18\x03 \x01(\x08\x12\x18\n\x10is_gateway_admin\x18\x04 \x01(\x08\"`\n\x11\x43reateUserRequest\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\x12\x10\n\x08password\x18\x02 \x01(\t\x12 \n\x07tenants\x18\x03 \x03(\x0b\x32\x0f.api.UserTenant\" \n\x12\x43reateUserResponse\x12\n\n\x02id\x18\x01 \x01(\t\"\x1c\n\x0eGetUserRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\x8a\x01\n\x0fGetUserResponse\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\",\n\x11UpdateUserRequest\x12\x17\n\x04user\x18\x01 \x01(\x0b\x32\t.api.User\"\x1f\n\x11\x44\x65leteUserRequest\x12\n\n\x02id\x18\x01 \x01(\t\"1\n\x10ListUsersRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\"K\n\x11ListUsersResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12!\n\x06result\x18\x02 \x03(\x0b\x32\x11.api.UserListItem\">\n\x19UpdateUserPasswordRequest\x12\x0f\n\x07user_id\x18\x01 \x01(\t\x12\x10\n\x08password\x18\x02 \x01(\t2\xfb\x02\n\x0bUserService\x12;\n\x06\x43reate\x12\x16.api.CreateUserRequest\x1a\x17.api.CreateUserResponse\"\x00\x12\x32\n\x03Get\x12\x13.api.GetUserRequest\x1a\x14.api.GetUserResponse\"\x00\x12:\n\x06Update\x12\x16.api.UpdateUserRequest\x1a\x16.google.protobuf.Empty\"\x00\x12:\n\x06\x44\x65lete\x12\x16.api.DeleteUserRequest\x1a\x16.google.protobuf.Empty\"\x00\x12\x37\n\x04List\x12\x15.api.ListUsersRequest\x1a\x16.api.ListUsersResponse\"\x00\x12J\n\x0eUpdatePassword\x12\x1e.api.UpdateUserPasswordRequest\x1a\x16.google.protobuf.Empty\"\x00\x42L\n\x11io.chirpstack.apiB\tUserProtoP\x01Z*github.com/chirpstack/chirpstack/api/go/v4b\x06proto3')
|
||||
|
||||
|
||||
|
||||
_USER = DESCRIPTOR.message_types_by_name['User']
|
||||
_USERLISTITEM = DESCRIPTOR.message_types_by_name['UserListItem']
|
||||
_USERTENANT = DESCRIPTOR.message_types_by_name['UserTenant']
|
||||
_CREATEUSERREQUEST = DESCRIPTOR.message_types_by_name['CreateUserRequest']
|
||||
_CREATEUSERRESPONSE = DESCRIPTOR.message_types_by_name['CreateUserResponse']
|
||||
_GETUSERREQUEST = DESCRIPTOR.message_types_by_name['GetUserRequest']
|
||||
_GETUSERRESPONSE = DESCRIPTOR.message_types_by_name['GetUserResponse']
|
||||
_UPDATEUSERREQUEST = DESCRIPTOR.message_types_by_name['UpdateUserRequest']
|
||||
_DELETEUSERREQUEST = DESCRIPTOR.message_types_by_name['DeleteUserRequest']
|
||||
_LISTUSERSREQUEST = DESCRIPTOR.message_types_by_name['ListUsersRequest']
|
||||
_LISTUSERSRESPONSE = DESCRIPTOR.message_types_by_name['ListUsersResponse']
|
||||
_UPDATEUSERPASSWORDREQUEST = DESCRIPTOR.message_types_by_name['UpdateUserPasswordRequest']
|
||||
User = _reflection.GeneratedProtocolMessageType('User', (_message.Message,), {
|
||||
'DESCRIPTOR' : _USER,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.User)
|
||||
})
|
||||
_sym_db.RegisterMessage(User)
|
||||
|
||||
UserListItem = _reflection.GeneratedProtocolMessageType('UserListItem', (_message.Message,), {
|
||||
'DESCRIPTOR' : _USERLISTITEM,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UserListItem)
|
||||
})
|
||||
_sym_db.RegisterMessage(UserListItem)
|
||||
|
||||
UserTenant = _reflection.GeneratedProtocolMessageType('UserTenant', (_message.Message,), {
|
||||
'DESCRIPTOR' : _USERTENANT,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UserTenant)
|
||||
})
|
||||
_sym_db.RegisterMessage(UserTenant)
|
||||
|
||||
CreateUserRequest = _reflection.GeneratedProtocolMessageType('CreateUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateUserRequest)
|
||||
|
||||
CreateUserResponse = _reflection.GeneratedProtocolMessageType('CreateUserResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _CREATEUSERRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.CreateUserResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(CreateUserResponse)
|
||||
|
||||
GetUserRequest = _reflection.GeneratedProtocolMessageType('GetUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetUserRequest)
|
||||
|
||||
GetUserResponse = _reflection.GeneratedProtocolMessageType('GetUserResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _GETUSERRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.GetUserResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(GetUserResponse)
|
||||
|
||||
UpdateUserRequest = _reflection.GeneratedProtocolMessageType('UpdateUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATEUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateUserRequest)
|
||||
|
||||
DeleteUserRequest = _reflection.GeneratedProtocolMessageType('DeleteUserRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DELETEUSERREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.DeleteUserRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeleteUserRequest)
|
||||
|
||||
ListUsersRequest = _reflection.GeneratedProtocolMessageType('ListUsersRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTUSERSREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListUsersRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListUsersRequest)
|
||||
|
||||
ListUsersResponse = _reflection.GeneratedProtocolMessageType('ListUsersResponse', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LISTUSERSRESPONSE,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.ListUsersResponse)
|
||||
})
|
||||
_sym_db.RegisterMessage(ListUsersResponse)
|
||||
|
||||
UpdateUserPasswordRequest = _reflection.GeneratedProtocolMessageType('UpdateUserPasswordRequest', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPDATEUSERPASSWORDREQUEST,
|
||||
'__module__' : 'chirpstack_api.api.user_pb2'
|
||||
# @@protoc_insertion_point(class_scope:api.UpdateUserPasswordRequest)
|
||||
})
|
||||
_sym_db.RegisterMessage(UpdateUserPasswordRequest)
|
||||
|
||||
_USERSERVICE = DESCRIPTOR.services_by_name['UserService']
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\tUserProtoP\001Z*github.com/chirpstack/chirpstack/api/go/v4'
|
||||
_USER._serialized_start=100
|
||||
_USER._serialized_end=184
|
||||
_USERLISTITEM._serialized_start=187
|
||||
_USERLISTITEM._serialized_end=361
|
||||
_USERTENANT._serialized_start=363
|
||||
_USERTENANT._serialized_end=463
|
||||
_CREATEUSERREQUEST._serialized_start=465
|
||||
_CREATEUSERREQUEST._serialized_end=561
|
||||
_CREATEUSERRESPONSE._serialized_start=563
|
||||
_CREATEUSERRESPONSE._serialized_end=595
|
||||
_GETUSERREQUEST._serialized_start=597
|
||||
_GETUSERREQUEST._serialized_end=625
|
||||
_GETUSERRESPONSE._serialized_start=628
|
||||
_GETUSERRESPONSE._serialized_end=766
|
||||
_UPDATEUSERREQUEST._serialized_start=768
|
||||
_UPDATEUSERREQUEST._serialized_end=812
|
||||
_DELETEUSERREQUEST._serialized_start=814
|
||||
_DELETEUSERREQUEST._serialized_end=845
|
||||
_LISTUSERSREQUEST._serialized_start=847
|
||||
_LISTUSERSREQUEST._serialized_end=896
|
||||
_LISTUSERSRESPONSE._serialized_start=898
|
||||
_LISTUSERSRESPONSE._serialized_end=973
|
||||
_UPDATEUSERPASSWORDREQUEST._serialized_start=975
|
||||
_UPDATEUSERPASSWORDREQUEST._serialized_end=1037
|
||||
_USERSERVICE._serialized_start=1040
|
||||
_USERSERVICE._serialized_end=1419
|
||||
# @@protoc_insertion_point(module_scope)
|
241
api/python/src/chirpstack_api/api/user_pb2_grpc.py
Normal file
241
api/python/src/chirpstack_api/api/user_pb2_grpc.py
Normal file
@ -0,0 +1,241 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
||||
from chirpstack_api.api import user_pb2 as chirpstack__api_dot_api_dot_user__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class UserServiceStub(object):
|
||||
"""UserService is the service providing API methods for managing users.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.UserService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.UserService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.UserService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.UserService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.UserService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.FromString,
|
||||
)
|
||||
self.UpdatePassword = channel.unary_unary(
|
||||
'/api.UserService/UpdatePassword',
|
||||
request_serializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
|
||||
|
||||
class UserServiceServicer(object):
|
||||
"""UserService is the service providing API methods for managing users.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create a new user.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Get(self, request, context):
|
||||
"""Get the user for the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Update(self, request, context):
|
||||
"""Update the given user.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def Delete(self, request, context):
|
||||
"""Delete the user with the given ID.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def List(self, request, context):
|
||||
"""Get the list of users.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def UpdatePassword(self, request, context):
|
||||
"""Update the password for the given user.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_UserServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'Create': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Create,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.SerializeToString,
|
||||
),
|
||||
'Get': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Get,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'Delete': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Delete,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.SerializeToString,
|
||||
),
|
||||
'UpdatePassword': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.UpdatePassword,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.UserService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class UserService(object):
|
||||
"""UserService is the service providing API methods for managing users.
|
||||
"""
|
||||
|
||||
@staticmethod
|
||||
def Create(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/Create',
|
||||
chirpstack__api_dot_api_dot_user__pb2.CreateUserRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_user__pb2.CreateUserResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Get(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/Get',
|
||||
chirpstack__api_dot_api_dot_user__pb2.GetUserRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_user__pb2.GetUserResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Update(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/Update',
|
||||
chirpstack__api_dot_api_dot_user__pb2.UpdateUserRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def Delete(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/Delete',
|
||||
chirpstack__api_dot_api_dot_user__pb2.DeleteUserRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def List(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/List',
|
||||
chirpstack__api_dot_api_dot_user__pb2.ListUsersRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_user__pb2.ListUsersResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def UpdatePassword(request,
|
||||
target,
|
||||
options=(),
|
||||
channel_credentials=None,
|
||||
call_credentials=None,
|
||||
insecure=False,
|
||||
compression=None,
|
||||
wait_for_ready=None,
|
||||
timeout=None,
|
||||
metadata=None):
|
||||
return grpc.experimental.unary_unary(request, target, '/api.UserService/UpdatePassword',
|
||||
chirpstack__api_dot_api_dot_user__pb2.UpdateUserPasswordRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
114
api/python/src/chirpstack_api/common/common_pb2.py
Normal file
114
api/python/src/chirpstack_api/common/common_pb2.py
Normal file
@ -0,0 +1,114 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/common/common.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"chirpstack-api/common/common.proto\x12\x06\x63ommon\"{\n\x08Location\x12\x10\n\x08latitude\x18\x01 \x01(\x01\x12\x11\n\tlongitude\x18\x02 \x01(\x01\x12\x10\n\x08\x61ltitude\x18\x03 \x01(\x01\x12&\n\x06source\x18\x04 \x01(\x0e\x32\x16.common.LocationSource\x12\x10\n\x08\x61\x63\x63uracy\x18\x05 \x01(\x02\"1\n\x0bKeyEnvelope\x12\x11\n\tkek_label\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x65s_key\x18\x02 \x01(\x0c*,\n\nModulation\x12\x08\n\x04LORA\x10\x00\x12\x07\n\x03\x46SK\x10\x01\x12\x0b\n\x07LR_FHSS\x10\x02*\xaa\x01\n\x06Region\x12\t\n\x05\x45U868\x10\x00\x12\t\n\x05US915\x10\x02\x12\t\n\x05\x43N779\x10\x03\x12\t\n\x05\x45U433\x10\x04\x12\t\n\x05\x41U915\x10\x05\x12\t\n\x05\x43N470\x10\x06\x12\t\n\x05\x41S923\x10\x07\x12\x0b\n\x07\x41S923_2\x10\x0c\x12\x0b\n\x07\x41S923_3\x10\r\x12\x0b\n\x07\x41S923_4\x10\x0e\x12\t\n\x05KR920\x10\x08\x12\t\n\x05IN865\x10\t\x12\t\n\x05RU864\x10\n\x12\x0b\n\x07ISM2400\x10\x0b*\xb3\x01\n\x05MType\x12\x10\n\x0cJOIN_REQUEST\x10\x00\x12\x0f\n\x0bJOIN_ACCEPT\x10\x01\x12\x17\n\x13UNCONFIRMED_DATA_UP\x10\x02\x12\x19\n\x15UNCONFIRMED_DATA_DOWN\x10\x03\x12\x15\n\x11\x43ONFIRMED_DATA_UP\x10\x04\x12\x17\n\x13\x43ONFIRMED_DATA_DOWN\x10\x05\x12\x12\n\x0eREJOIN_REQUEST\x10\x06\x12\x0f\n\x0bPROPRIETARY\x10\x07*~\n\nMacVersion\x12\x11\n\rLORAWAN_1_0_0\x10\x00\x12\x11\n\rLORAWAN_1_0_1\x10\x01\x12\x11\n\rLORAWAN_1_0_2\x10\x02\x12\x11\n\rLORAWAN_1_0_3\x10\x03\x12\x11\n\rLORAWAN_1_0_4\x10\x04\x12\x11\n\rLORAWAN_1_1_0\x10\x05*e\n\x11RegParamsRevision\x12\x05\n\x01\x41\x10\x00\x12\x05\n\x01\x42\x10\x01\x12\x0f\n\x0bRP002_1_0_0\x10\x02\x12\x0f\n\x0bRP002_1_0_1\x10\x03\x12\x0f\n\x0bRP002_1_0_2\x10\x04\x12\x0f\n\x0bRP002_1_0_3\x10\x05*\x8e\x01\n\x0eLocationSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x07\n\x03GPS\x10\x01\x12\n\n\x06\x43ONFIG\x10\x02\x12\x15\n\x11GEO_RESOLVER_TDOA\x10\x03\x12\x15\n\x11GEO_RESOLVER_RSSI\x10\x04\x12\x15\n\x11GEO_RESOLVER_GNSS\x10\x05\x12\x15\n\x11GEO_RESOLVER_WIFI\x10\x06\x42U\n\x11io.chirpstack.apiB\x0b\x43ommonProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/commonb\x06proto3')
|
||||
|
||||
_MODULATION = DESCRIPTOR.enum_types_by_name['Modulation']
|
||||
Modulation = enum_type_wrapper.EnumTypeWrapper(_MODULATION)
|
||||
_REGION = DESCRIPTOR.enum_types_by_name['Region']
|
||||
Region = enum_type_wrapper.EnumTypeWrapper(_REGION)
|
||||
_MTYPE = DESCRIPTOR.enum_types_by_name['MType']
|
||||
MType = enum_type_wrapper.EnumTypeWrapper(_MTYPE)
|
||||
_MACVERSION = DESCRIPTOR.enum_types_by_name['MacVersion']
|
||||
MacVersion = enum_type_wrapper.EnumTypeWrapper(_MACVERSION)
|
||||
_REGPARAMSREVISION = DESCRIPTOR.enum_types_by_name['RegParamsRevision']
|
||||
RegParamsRevision = enum_type_wrapper.EnumTypeWrapper(_REGPARAMSREVISION)
|
||||
_LOCATIONSOURCE = DESCRIPTOR.enum_types_by_name['LocationSource']
|
||||
LocationSource = enum_type_wrapper.EnumTypeWrapper(_LOCATIONSOURCE)
|
||||
LORA = 0
|
||||
FSK = 1
|
||||
LR_FHSS = 2
|
||||
EU868 = 0
|
||||
US915 = 2
|
||||
CN779 = 3
|
||||
EU433 = 4
|
||||
AU915 = 5
|
||||
CN470 = 6
|
||||
AS923 = 7
|
||||
AS923_2 = 12
|
||||
AS923_3 = 13
|
||||
AS923_4 = 14
|
||||
KR920 = 8
|
||||
IN865 = 9
|
||||
RU864 = 10
|
||||
ISM2400 = 11
|
||||
JOIN_REQUEST = 0
|
||||
JOIN_ACCEPT = 1
|
||||
UNCONFIRMED_DATA_UP = 2
|
||||
UNCONFIRMED_DATA_DOWN = 3
|
||||
CONFIRMED_DATA_UP = 4
|
||||
CONFIRMED_DATA_DOWN = 5
|
||||
REJOIN_REQUEST = 6
|
||||
PROPRIETARY = 7
|
||||
LORAWAN_1_0_0 = 0
|
||||
LORAWAN_1_0_1 = 1
|
||||
LORAWAN_1_0_2 = 2
|
||||
LORAWAN_1_0_3 = 3
|
||||
LORAWAN_1_0_4 = 4
|
||||
LORAWAN_1_1_0 = 5
|
||||
A = 0
|
||||
B = 1
|
||||
RP002_1_0_0 = 2
|
||||
RP002_1_0_1 = 3
|
||||
RP002_1_0_2 = 4
|
||||
RP002_1_0_3 = 5
|
||||
UNKNOWN = 0
|
||||
GPS = 1
|
||||
CONFIG = 2
|
||||
GEO_RESOLVER_TDOA = 3
|
||||
GEO_RESOLVER_RSSI = 4
|
||||
GEO_RESOLVER_GNSS = 5
|
||||
GEO_RESOLVER_WIFI = 6
|
||||
|
||||
|
||||
_LOCATION = DESCRIPTOR.message_types_by_name['Location']
|
||||
_KEYENVELOPE = DESCRIPTOR.message_types_by_name['KeyEnvelope']
|
||||
Location = _reflection.GeneratedProtocolMessageType('Location', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LOCATION,
|
||||
'__module__' : 'chirpstack_api.common.common_pb2'
|
||||
# @@protoc_insertion_point(class_scope:common.Location)
|
||||
})
|
||||
_sym_db.RegisterMessage(Location)
|
||||
|
||||
KeyEnvelope = _reflection.GeneratedProtocolMessageType('KeyEnvelope', (_message.Message,), {
|
||||
'DESCRIPTOR' : _KEYENVELOPE,
|
||||
'__module__' : 'chirpstack_api.common.common_pb2'
|
||||
# @@protoc_insertion_point(class_scope:common.KeyEnvelope)
|
||||
})
|
||||
_sym_db.RegisterMessage(KeyEnvelope)
|
||||
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\021io.chirpstack.apiB\013CommonProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/common'
|
||||
_MODULATION._serialized_start=222
|
||||
_MODULATION._serialized_end=266
|
||||
_REGION._serialized_start=269
|
||||
_REGION._serialized_end=439
|
||||
_MTYPE._serialized_start=442
|
||||
_MTYPE._serialized_end=621
|
||||
_MACVERSION._serialized_start=623
|
||||
_MACVERSION._serialized_end=749
|
||||
_REGPARAMSREVISION._serialized_start=751
|
||||
_REGPARAMSREVISION._serialized_end=852
|
||||
_LOCATIONSOURCE._serialized_start=855
|
||||
_LOCATIONSOURCE._serialized_end=997
|
||||
_LOCATION._serialized_start=46
|
||||
_LOCATION._serialized_end=169
|
||||
_KEYENVELOPE._serialized_start=171
|
||||
_KEYENVELOPE._serialized_end=220
|
||||
# @@protoc_insertion_point(module_scope)
|
4
api/python/src/chirpstack_api/common/common_pb2_grpc.py
Normal file
4
api/python/src/chirpstack_api/common/common_pb2_grpc.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
436
api/python/src/chirpstack_api/gw/gw_pb2.py
Normal file
436
api/python/src/chirpstack_api/gw/gw_pb2.py
Normal file
File diff suppressed because one or more lines are too long
4
api/python/src/chirpstack_api/gw/gw_pb2_grpc.py
Normal file
4
api/python/src/chirpstack_api/gw/gw_pb2_grpc.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
166
api/python/src/chirpstack_api/integration/integration_pb2.py
Normal file
166
api/python/src/chirpstack_api/integration/integration_pb2.py
Normal file
@ -0,0 +1,166 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/integration/integration.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf.internal import enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,chirpstack-api/integration/integration.proto\x12\x0bintegration\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xa2\x02\n\nDeviceInfo\x12\x11\n\ttenant_id\x18\x01 \x01(\t\x12\x13\n\x0btenant_name\x18\x02 \x01(\t\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\x12\x18\n\x10\x61pplication_name\x18\x04 \x01(\t\x12\x19\n\x11\x64\x65vice_profile_id\x18\x05 \x01(\t\x12\x1b\n\x13\x64\x65vice_profile_name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65vice_name\x18\x07 \x01(\t\x12\x0f\n\x07\x64\x65v_eui\x18\x08 \x01(\t\x12/\n\x04tags\x18\t \x03(\x0b\x32!.integration.DeviceInfo.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xdc\x02\n\x0bUplinkEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\x12\x0b\n\x03\x61\x64r\x18\x05 \x01(\x08\x12\n\n\x02\x64r\x18\x06 \x01(\r\x12\x10\n\x08\x66_cnt_up\x18\x07 \x01(\r\x12\x0e\n\x06\x66_port\x18\x08 \x01(\r\x12\x11\n\tconfirmed\x18\t \x01(\x08\x12\x0c\n\x04\x64\x61ta\x18\n \x01(\x0c\x12\'\n\x06object\x18\x0b \x01(\x0b\x32\x17.google.protobuf.Struct\x12!\n\x07rx_info\x18\x0c \x03(\x0b\x32\x10.gw.UplinkRXInfo\x12!\n\x07tx_info\x18\r \x01(\x0b\x32\x10.gw.UplinkTXInfo\"\x8f\x01\n\tJoinEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x10\n\x08\x64\x65v_addr\x18\x04 \x01(\t\"\xbd\x01\n\x08\x41\x63kEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x14\n\x0c\x61\x63knowledged\x18\x05 \x01(\x08\x12\x12\n\nf_cnt_down\x18\x06 \x01(\r\"\xdd\x01\n\nTxAckEvent\x12\x13\n\x0b\x64ownlink_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x15\n\rqueue_item_id\x18\x04 \x01(\t\x12\x12\n\nf_cnt_down\x18\x05 \x01(\r\x12\x12\n\ngateway_id\x18\x06 \x01(\t\x12#\n\x07tx_info\x18\x07 \x01(\x0b\x32\x12.gw.DownlinkTXInfo\"\xc0\x02\n\x08LogEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12$\n\x05level\x18\x04 \x01(\x0e\x32\x15.integration.LogLevel\x12\"\n\x04\x63ode\x18\x05 \x01(\x0e\x32\x14.integration.LogCode\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x33\n\x07\x63ontext\x18\x07 \x03(\x0b\x32\".integration.LogEvent.ContextEntry\x1a.\n\x0c\x43ontextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xe8\x01\n\x0bStatusEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x0e\n\x06margin\x18\x05 \x01(\x05\x12\x1d\n\x15\x65xternal_power_source\x18\x06 \x01(\x08\x12!\n\x19\x62\x61ttery_level_unavailable\x18\x07 \x01(\x08\x12\x15\n\rbattery_level\x18\x08 \x01(\x02\"\xa5\x01\n\rLocationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\"\n\x08location\x18\x04 \x01(\x0b\x32\x10.common.Location\"\xdb\x01\n\x10IntegrationEvent\x12\x18\n\x10\x64\x65\x64uplication_id\x18\x01 \x01(\t\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x0b\x64\x65vice_info\x18\x03 \x01(\x0b\x32\x17.integration.DeviceInfo\x12\x18\n\x10integration_name\x18\x04 \x01(\t\x12\x12\n\nevent_type\x18\x05 \x01(\t\x12\'\n\x06object\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct*,\n\x08LogLevel\x12\x08\n\x04INFO\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02*\xc0\x01\n\x07LogCode\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x19\n\x15\x44OWNLINK_PAYLOAD_SIZE\x10\x01\x12\x10\n\x0cUPLINK_CODEC\x10\x02\x12\x12\n\x0e\x44OWNLINK_CODEC\x10\x03\x12\x08\n\x04OTAA\x10\x04\x12\x16\n\x12UPLINK_F_CNT_RESET\x10\x05\x12\x0e\n\nUPLINK_MIC\x10\x06\x12\x1f\n\x1bUPLINK_F_CNT_RETRANSMISSION\x10\x07\x12\x14\n\x10\x44OWNLINK_GATEWAY\x10\x08\x42k\n io.chirpstack.api.as.integrationB\x10IntegrationProtoP\x01Z3github.com/brocaar/chirpstack/api/go/v4/integrationb\x06proto3')
|
||||
|
||||
_LOGLEVEL = DESCRIPTOR.enum_types_by_name['LogLevel']
|
||||
LogLevel = enum_type_wrapper.EnumTypeWrapper(_LOGLEVEL)
|
||||
_LOGCODE = DESCRIPTOR.enum_types_by_name['LogCode']
|
||||
LogCode = enum_type_wrapper.EnumTypeWrapper(_LOGCODE)
|
||||
INFO = 0
|
||||
WARNING = 1
|
||||
ERROR = 2
|
||||
UNKNOWN = 0
|
||||
DOWNLINK_PAYLOAD_SIZE = 1
|
||||
UPLINK_CODEC = 2
|
||||
DOWNLINK_CODEC = 3
|
||||
OTAA = 4
|
||||
UPLINK_F_CNT_RESET = 5
|
||||
UPLINK_MIC = 6
|
||||
UPLINK_F_CNT_RETRANSMISSION = 7
|
||||
DOWNLINK_GATEWAY = 8
|
||||
|
||||
|
||||
_DEVICEINFO = DESCRIPTOR.message_types_by_name['DeviceInfo']
|
||||
_DEVICEINFO_TAGSENTRY = _DEVICEINFO.nested_types_by_name['TagsEntry']
|
||||
_UPLINKEVENT = DESCRIPTOR.message_types_by_name['UplinkEvent']
|
||||
_JOINEVENT = DESCRIPTOR.message_types_by_name['JoinEvent']
|
||||
_ACKEVENT = DESCRIPTOR.message_types_by_name['AckEvent']
|
||||
_TXACKEVENT = DESCRIPTOR.message_types_by_name['TxAckEvent']
|
||||
_LOGEVENT = DESCRIPTOR.message_types_by_name['LogEvent']
|
||||
_LOGEVENT_CONTEXTENTRY = _LOGEVENT.nested_types_by_name['ContextEntry']
|
||||
_STATUSEVENT = DESCRIPTOR.message_types_by_name['StatusEvent']
|
||||
_LOCATIONEVENT = DESCRIPTOR.message_types_by_name['LocationEvent']
|
||||
_INTEGRATIONEVENT = DESCRIPTOR.message_types_by_name['IntegrationEvent']
|
||||
DeviceInfo = _reflection.GeneratedProtocolMessageType('DeviceInfo', (_message.Message,), {
|
||||
|
||||
'TagsEntry' : _reflection.GeneratedProtocolMessageType('TagsEntry', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DEVICEINFO_TAGSENTRY,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.DeviceInfo.TagsEntry)
|
||||
})
|
||||
,
|
||||
'DESCRIPTOR' : _DEVICEINFO,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.DeviceInfo)
|
||||
})
|
||||
_sym_db.RegisterMessage(DeviceInfo)
|
||||
_sym_db.RegisterMessage(DeviceInfo.TagsEntry)
|
||||
|
||||
UplinkEvent = _reflection.GeneratedProtocolMessageType('UplinkEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPLINKEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.UplinkEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(UplinkEvent)
|
||||
|
||||
JoinEvent = _reflection.GeneratedProtocolMessageType('JoinEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _JOINEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.JoinEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(JoinEvent)
|
||||
|
||||
AckEvent = _reflection.GeneratedProtocolMessageType('AckEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _ACKEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.AckEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(AckEvent)
|
||||
|
||||
TxAckEvent = _reflection.GeneratedProtocolMessageType('TxAckEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _TXACKEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.TxAckEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(TxAckEvent)
|
||||
|
||||
LogEvent = _reflection.GeneratedProtocolMessageType('LogEvent', (_message.Message,), {
|
||||
|
||||
'ContextEntry' : _reflection.GeneratedProtocolMessageType('ContextEntry', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LOGEVENT_CONTEXTENTRY,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.LogEvent.ContextEntry)
|
||||
})
|
||||
,
|
||||
'DESCRIPTOR' : _LOGEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.LogEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(LogEvent)
|
||||
_sym_db.RegisterMessage(LogEvent.ContextEntry)
|
||||
|
||||
StatusEvent = _reflection.GeneratedProtocolMessageType('StatusEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _STATUSEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.StatusEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(StatusEvent)
|
||||
|
||||
LocationEvent = _reflection.GeneratedProtocolMessageType('LocationEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _LOCATIONEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.LocationEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(LocationEvent)
|
||||
|
||||
IntegrationEvent = _reflection.GeneratedProtocolMessageType('IntegrationEvent', (_message.Message,), {
|
||||
'DESCRIPTOR' : _INTEGRATIONEVENT,
|
||||
'__module__' : 'chirpstack_api.integration.integration_pb2'
|
||||
# @@protoc_insertion_point(class_scope:integration.IntegrationEvent)
|
||||
})
|
||||
_sym_db.RegisterMessage(IntegrationEvent)
|
||||
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n io.chirpstack.api.as.integrationB\020IntegrationProtoP\001Z3github.com/brocaar/chirpstack/api/go/v4/integration'
|
||||
_DEVICEINFO_TAGSENTRY._options = None
|
||||
_DEVICEINFO_TAGSENTRY._serialized_options = b'8\001'
|
||||
_LOGEVENT_CONTEXTENTRY._options = None
|
||||
_LOGEVENT_CONTEXTENTRY._serialized_options = b'8\001'
|
||||
_LOGLEVEL._serialized_start=2342
|
||||
_LOGLEVEL._serialized_end=2386
|
||||
_LOGCODE._serialized_start=2389
|
||||
_LOGCODE._serialized_end=2581
|
||||
_DEVICEINFO._serialized_start=189
|
||||
_DEVICEINFO._serialized_end=479
|
||||
_DEVICEINFO_TAGSENTRY._serialized_start=436
|
||||
_DEVICEINFO_TAGSENTRY._serialized_end=479
|
||||
_UPLINKEVENT._serialized_start=482
|
||||
_UPLINKEVENT._serialized_end=830
|
||||
_JOINEVENT._serialized_start=833
|
||||
_JOINEVENT._serialized_end=976
|
||||
_ACKEVENT._serialized_start=979
|
||||
_ACKEVENT._serialized_end=1168
|
||||
_TXACKEVENT._serialized_start=1171
|
||||
_TXACKEVENT._serialized_end=1392
|
||||
_LOGEVENT._serialized_start=1395
|
||||
_LOGEVENT._serialized_end=1715
|
||||
_LOGEVENT_CONTEXTENTRY._serialized_start=1669
|
||||
_LOGEVENT_CONTEXTENTRY._serialized_end=1715
|
||||
_STATUSEVENT._serialized_start=1718
|
||||
_STATUSEVENT._serialized_end=1950
|
||||
_LOCATIONEVENT._serialized_start=1953
|
||||
_LOCATIONEVENT._serialized_end=2118
|
||||
_INTEGRATIONEVENT._serialized_start=2121
|
||||
_INTEGRATIONEVENT._serialized_end=2340
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
47
api/python/src/chirpstack_api/meta/meta_pb2.py
Normal file
47
api/python/src/chirpstack_api/meta/meta_pb2.py
Normal file
@ -0,0 +1,47 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/meta/meta.proto
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import message as _message
|
||||
from google.protobuf import reflection as _reflection
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from chirpstack_api.common import common_pb2 as chirpstack__api_dot_common_dot_common__pb2
|
||||
from chirpstack_api.gw import gw_pb2 as chirpstack__api_dot_gw_dot_gw__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63hirpstack-api/meta/meta.proto\x12\x04meta\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\xf0\x01\n\nUplinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12!\n\x07tx_info\x18\x02 \x01(\x0b\x32\x10.gw.UplinkTXInfo\x12!\n\x07rx_info\x18\x03 \x03(\x0b\x32\x10.gw.UplinkRXInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\"\x81\x02\n\x0c\x44ownlinkMeta\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x1a\n\x12multicast_group_id\x18\x02 \x01(\t\x12#\n\x07tx_info\x18\x03 \x01(\x0b\x32\x12.gw.DownlinkTXInfo\x12\x1e\n\x16phy_payload_byte_count\x18\x04 \x01(\r\x12\x1e\n\x16mac_command_byte_count\x18\x05 \x01(\r\x12&\n\x1e\x61pplication_payload_byte_count\x18\x06 \x01(\r\x12#\n\x0cmessage_type\x18\x07 \x01(\x0e\x32\r.common.MType\x12\x12\n\ngateway_id\x18\x08 \x01(\tBV\n\x16io.chirpstack.api.metaB\tMetaProtoP\x01Z/github.com/chirpstack/chirpstack-api/go/v4/metab\x06proto3')
|
||||
|
||||
|
||||
|
||||
_UPLINKMETA = DESCRIPTOR.message_types_by_name['UplinkMeta']
|
||||
_DOWNLINKMETA = DESCRIPTOR.message_types_by_name['DownlinkMeta']
|
||||
UplinkMeta = _reflection.GeneratedProtocolMessageType('UplinkMeta', (_message.Message,), {
|
||||
'DESCRIPTOR' : _UPLINKMETA,
|
||||
'__module__' : 'chirpstack_api.meta.meta_pb2'
|
||||
# @@protoc_insertion_point(class_scope:meta.UplinkMeta)
|
||||
})
|
||||
_sym_db.RegisterMessage(UplinkMeta)
|
||||
|
||||
DownlinkMeta = _reflection.GeneratedProtocolMessageType('DownlinkMeta', (_message.Message,), {
|
||||
'DESCRIPTOR' : _DOWNLINKMETA,
|
||||
'__module__' : 'chirpstack_api.meta.meta_pb2'
|
||||
# @@protoc_insertion_point(class_scope:meta.DownlinkMeta)
|
||||
})
|
||||
_sym_db.RegisterMessage(DownlinkMeta)
|
||||
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
|
||||
DESCRIPTOR._options = None
|
||||
DESCRIPTOR._serialized_options = b'\n\026io.chirpstack.api.metaB\tMetaProtoP\001Z/github.com/chirpstack/chirpstack-api/go/v4/meta'
|
||||
_UPLINKMETA._serialized_start=105
|
||||
_UPLINKMETA._serialized_end=345
|
||||
_DOWNLINKMETA._serialized_start=348
|
||||
_DOWNLINKMETA._serialized_end=605
|
||||
# @@protoc_insertion_point(module_scope)
|
4
api/python/src/chirpstack_api/meta/meta_pb2_grpc.py
Normal file
4
api/python/src/chirpstack_api/meta/meta_pb2_grpc.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
34
api/python/src/setup.py
Normal file
34
api/python/src/setup.py
Normal file
@ -0,0 +1,34 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
REQUIREMENTS = [
|
||||
'grpcio',
|
||||
'google-api-core'
|
||||
]
|
||||
|
||||
|
||||
CLASSIFIERS = [
|
||||
'Intended Audience :: Developers',
|
||||
'Operating System :: OS Independent',
|
||||
'Programming Language :: Python :: 3.7',
|
||||
'Topic :: Communications',
|
||||
'Topic :: Software Development',
|
||||
'Topic :: Software Development :: Libraries',
|
||||
]
|
||||
|
||||
setup(
|
||||
name='chirpstack-api',
|
||||
version = "4.0.0",
|
||||
url='https://github.com/brocaar/chirpstack-api',
|
||||
author='Orne Brocaar',
|
||||
author_email='info@brocaar.com',
|
||||
license='MIT',
|
||||
description='Chirpstack Python API',
|
||||
long_description=open('README.md').read(),
|
||||
long_description_content_type='text/markdown',
|
||||
packages=find_packages(),
|
||||
include_package_data=True,
|
||||
zip_safe=False,
|
||||
install_requires=REQUIREMENTS,
|
||||
classifiers=CLASSIFIERS,
|
||||
)
|
Reference in New Issue
Block a user