mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-12 20:48:09 +00:00
api: Remove generated API files from repo + update build.
All these files can be generated using the `make api` command and there is no real need to commit these into the repo. Only the api/go files need to be comitted of how the Go import system works. This also updates the Rust, Go, JS and gRPC-web (JS) code generation and UI build to use the nix-shell environment instead of using Docker.
This commit is contained in:
292
api/python/src/chirpstack_api/api/application_pb2.py
vendored
292
api/python/src/chirpstack_api/api/application_pb2.py
vendored
File diff suppressed because one or more lines are too long
@ -1,668 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Encoding(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
JSON: _ClassVar[Encoding]
|
||||
PROTOBUF: _ClassVar[Encoding]
|
||||
|
||||
class IntegrationKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
HTTP: _ClassVar[IntegrationKind]
|
||||
INFLUX_DB: _ClassVar[IntegrationKind]
|
||||
THINGS_BOARD: _ClassVar[IntegrationKind]
|
||||
MY_DEVICES: _ClassVar[IntegrationKind]
|
||||
LORA_CLOUD: _ClassVar[IntegrationKind]
|
||||
GCP_PUB_SUB: _ClassVar[IntegrationKind]
|
||||
AWS_SNS: _ClassVar[IntegrationKind]
|
||||
AZURE_SERVICE_BUS: _ClassVar[IntegrationKind]
|
||||
PILOT_THINGS: _ClassVar[IntegrationKind]
|
||||
MQTT_GLOBAL: _ClassVar[IntegrationKind]
|
||||
IFTTT: _ClassVar[IntegrationKind]
|
||||
|
||||
class InfluxDbPrecision(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NS: _ClassVar[InfluxDbPrecision]
|
||||
U: _ClassVar[InfluxDbPrecision]
|
||||
MS: _ClassVar[InfluxDbPrecision]
|
||||
S: _ClassVar[InfluxDbPrecision]
|
||||
M: _ClassVar[InfluxDbPrecision]
|
||||
H: _ClassVar[InfluxDbPrecision]
|
||||
|
||||
class InfluxDbVersion(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
INFLUXDB_1: _ClassVar[InfluxDbVersion]
|
||||
INFLUXDB_2: _ClassVar[InfluxDbVersion]
|
||||
JSON: Encoding
|
||||
PROTOBUF: Encoding
|
||||
HTTP: IntegrationKind
|
||||
INFLUX_DB: IntegrationKind
|
||||
THINGS_BOARD: IntegrationKind
|
||||
MY_DEVICES: IntegrationKind
|
||||
LORA_CLOUD: IntegrationKind
|
||||
GCP_PUB_SUB: IntegrationKind
|
||||
AWS_SNS: IntegrationKind
|
||||
AZURE_SERVICE_BUS: IntegrationKind
|
||||
PILOT_THINGS: IntegrationKind
|
||||
MQTT_GLOBAL: IntegrationKind
|
||||
IFTTT: IntegrationKind
|
||||
NS: InfluxDbPrecision
|
||||
U: InfluxDbPrecision
|
||||
MS: InfluxDbPrecision
|
||||
S: InfluxDbPrecision
|
||||
M: InfluxDbPrecision
|
||||
H: InfluxDbPrecision
|
||||
INFLUXDB_1: InfluxDbVersion
|
||||
INFLUXDB_2: InfluxDbVersion
|
||||
|
||||
class Application(_message.Message):
|
||||
__slots__ = ("id", "name", "description", "tenant_id", "tags")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
description: str
|
||||
tenant_id: str
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., tenant_id: _Optional[str] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class ApplicationListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "name", "description")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
description: str
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateApplicationRequest(_message.Message):
|
||||
__slots__ = ("application",)
|
||||
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
||||
application: Application
|
||||
def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateApplicationResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetApplicationRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetApplicationResponse(_message.Message):
|
||||
__slots__ = ("application", "created_at", "updated_at", "measurement_keys")
|
||||
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
MEASUREMENT_KEYS_FIELD_NUMBER: _ClassVar[int]
|
||||
application: Application
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
measurement_keys: _containers.RepeatedScalarFieldContainer[str]
|
||||
def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., measurement_keys: _Optional[_Iterable[str]] = ...) -> None: ...
|
||||
|
||||
class UpdateApplicationRequest(_message.Message):
|
||||
__slots__ = ("application",)
|
||||
APPLICATION_FIELD_NUMBER: _ClassVar[int]
|
||||
application: Application
|
||||
def __init__(self, application: _Optional[_Union[Application, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteApplicationRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListApplicationsRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "tenant_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
tenant_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListApplicationsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[ApplicationListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[ApplicationListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class ListIntegrationsRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class IntegrationListItem(_message.Message):
|
||||
__slots__ = ("kind",)
|
||||
KIND_FIELD_NUMBER: _ClassVar[int]
|
||||
kind: IntegrationKind
|
||||
def __init__(self, kind: _Optional[_Union[IntegrationKind, str]] = ...) -> None: ...
|
||||
|
||||
class ListIntegrationsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[IntegrationListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[IntegrationListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class HttpIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "headers", "encoding", "event_endpoint_url")
|
||||
class HeadersEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
HEADERS_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
EVENT_ENDPOINT_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
headers: _containers.ScalarMap[str, str]
|
||||
encoding: Encoding
|
||||
event_endpoint_url: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., headers: _Optional[_Mapping[str, str]] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., event_endpoint_url: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateHttpIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: HttpIntegration
|
||||
def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetHttpIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetHttpIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: HttpIntegration
|
||||
def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateHttpIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: HttpIntegration
|
||||
def __init__(self, integration: _Optional[_Union[HttpIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteHttpIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class InfluxDbIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "endpoint", "db", "username", "password", "retention_policy_name", "precision", "version", "token", "organization", "bucket")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
|
||||
DB_FIELD_NUMBER: _ClassVar[int]
|
||||
USERNAME_FIELD_NUMBER: _ClassVar[int]
|
||||
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
||||
RETENTION_POLICY_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
PRECISION_FIELD_NUMBER: _ClassVar[int]
|
||||
VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
||||
BUCKET_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
endpoint: str
|
||||
db: str
|
||||
username: str
|
||||
password: str
|
||||
retention_policy_name: str
|
||||
precision: InfluxDbPrecision
|
||||
version: InfluxDbVersion
|
||||
token: str
|
||||
organization: str
|
||||
bucket: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., endpoint: _Optional[str] = ..., db: _Optional[str] = ..., username: _Optional[str] = ..., password: _Optional[str] = ..., retention_policy_name: _Optional[str] = ..., precision: _Optional[_Union[InfluxDbPrecision, str]] = ..., version: _Optional[_Union[InfluxDbVersion, str]] = ..., token: _Optional[str] = ..., organization: _Optional[str] = ..., bucket: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateInfluxDbIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: InfluxDbIntegration
|
||||
def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetInfluxDbIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetInfluxDbIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: InfluxDbIntegration
|
||||
def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateInfluxDbIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: InfluxDbIntegration
|
||||
def __init__(self, integration: _Optional[_Union[InfluxDbIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteInfluxDbIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ThingsBoardIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "server")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
SERVER_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
server: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., server: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateThingsBoardIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: ThingsBoardIntegration
|
||||
def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetThingsBoardIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetThingsBoardIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: ThingsBoardIntegration
|
||||
def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateThingsBoardIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: ThingsBoardIntegration
|
||||
def __init__(self, integration: _Optional[_Union[ThingsBoardIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteThingsBoardIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class MyDevicesIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "endpoint")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
endpoint: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., endpoint: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateMyDevicesIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: MyDevicesIntegration
|
||||
def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetMyDevicesIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetMyDevicesIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: MyDevicesIntegration
|
||||
def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateMyDevicesIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: MyDevicesIntegration
|
||||
def __init__(self, integration: _Optional[_Union[MyDevicesIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteMyDevicesIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class LoraCloudIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "modem_geolocation_services")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
MODEM_GEOLOCATION_SERVICES_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
modem_geolocation_services: LoraCloudModemGeolocationServices
|
||||
def __init__(self, application_id: _Optional[str] = ..., modem_geolocation_services: _Optional[_Union[LoraCloudModemGeolocationServices, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class LoraCloudModemGeolocationServices(_message.Message):
|
||||
__slots__ = ("token", "modem_enabled", "forward_f_ports", "gnss_use_rx_time", "gnss_use_gateway_location", "parse_tlv", "geolocation_buffer_ttl", "geolocation_min_buffer_size", "geolocation_tdoa", "geolocation_rssi", "geolocation_gnss", "geolocation_gnss_payload_field", "geolocation_gnss_use_rx_time", "geolocation_wifi", "geolocation_wifi_payload_field")
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
MODEM_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
FORWARD_F_PORTS_FIELD_NUMBER: _ClassVar[int]
|
||||
GNSS_USE_RX_TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
GNSS_USE_GATEWAY_LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
PARSE_TLV_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_BUFFER_TTL_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_MIN_BUFFER_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_TDOA_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_RSSI_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_GNSS_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_GNSS_PAYLOAD_FIELD_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_GNSS_USE_RX_TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_WIFI_FIELD_NUMBER: _ClassVar[int]
|
||||
GEOLOCATION_WIFI_PAYLOAD_FIELD_FIELD_NUMBER: _ClassVar[int]
|
||||
token: str
|
||||
modem_enabled: bool
|
||||
forward_f_ports: _containers.RepeatedScalarFieldContainer[int]
|
||||
gnss_use_rx_time: bool
|
||||
gnss_use_gateway_location: bool
|
||||
parse_tlv: bool
|
||||
geolocation_buffer_ttl: int
|
||||
geolocation_min_buffer_size: int
|
||||
geolocation_tdoa: bool
|
||||
geolocation_rssi: bool
|
||||
geolocation_gnss: bool
|
||||
geolocation_gnss_payload_field: str
|
||||
geolocation_gnss_use_rx_time: bool
|
||||
geolocation_wifi: bool
|
||||
geolocation_wifi_payload_field: str
|
||||
def __init__(self, token: _Optional[str] = ..., modem_enabled: bool = ..., forward_f_ports: _Optional[_Iterable[int]] = ..., gnss_use_rx_time: bool = ..., gnss_use_gateway_location: bool = ..., parse_tlv: bool = ..., geolocation_buffer_ttl: _Optional[int] = ..., geolocation_min_buffer_size: _Optional[int] = ..., geolocation_tdoa: bool = ..., geolocation_rssi: bool = ..., geolocation_gnss: bool = ..., geolocation_gnss_payload_field: _Optional[str] = ..., geolocation_gnss_use_rx_time: bool = ..., geolocation_wifi: bool = ..., geolocation_wifi_payload_field: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateLoraCloudIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: LoraCloudIntegration
|
||||
def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetLoraCloudIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetLoraCloudIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: LoraCloudIntegration
|
||||
def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateLoraCloudIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: LoraCloudIntegration
|
||||
def __init__(self, integration: _Optional[_Union[LoraCloudIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteLoraCloudIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GcpPubSubIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "encoding", "credentials_file", "project_id", "topic_name")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
CREDENTIALS_FILE_FIELD_NUMBER: _ClassVar[int]
|
||||
PROJECT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TOPIC_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
encoding: Encoding
|
||||
credentials_file: str
|
||||
project_id: str
|
||||
topic_name: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., credentials_file: _Optional[str] = ..., project_id: _Optional[str] = ..., topic_name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateGcpPubSubIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: GcpPubSubIntegration
|
||||
def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetGcpPubSubIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetGcpPubSubIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: GcpPubSubIntegration
|
||||
def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateGcpPubSubIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: GcpPubSubIntegration
|
||||
def __init__(self, integration: _Optional[_Union[GcpPubSubIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteGcpPubSubIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class AwsSnsIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "encoding", "region", "access_key_id", "secret_access_key", "topic_arn")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
ACCESS_KEY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
SECRET_ACCESS_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
TOPIC_ARN_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
encoding: Encoding
|
||||
region: str
|
||||
access_key_id: str
|
||||
secret_access_key: str
|
||||
topic_arn: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., region: _Optional[str] = ..., access_key_id: _Optional[str] = ..., secret_access_key: _Optional[str] = ..., topic_arn: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateAwsSnsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AwsSnsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetAwsSnsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetAwsSnsIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AwsSnsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateAwsSnsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AwsSnsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AwsSnsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteAwsSnsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class AzureServiceBusIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "encoding", "connection_string", "publish_name")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCODING_FIELD_NUMBER: _ClassVar[int]
|
||||
CONNECTION_STRING_FIELD_NUMBER: _ClassVar[int]
|
||||
PUBLISH_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
encoding: Encoding
|
||||
connection_string: str
|
||||
publish_name: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., encoding: _Optional[_Union[Encoding, str]] = ..., connection_string: _Optional[str] = ..., publish_name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateAzureServiceBusIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AzureServiceBusIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetAzureServiceBusIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetAzureServiceBusIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AzureServiceBusIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateAzureServiceBusIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: AzureServiceBusIntegration
|
||||
def __init__(self, integration: _Optional[_Union[AzureServiceBusIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteAzureServiceBusIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class PilotThingsIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "server", "token")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
SERVER_FIELD_NUMBER: _ClassVar[int]
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
server: str
|
||||
token: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., server: _Optional[str] = ..., token: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreatePilotThingsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: PilotThingsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetPilotThingsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetPilotThingsIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: PilotThingsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdatePilotThingsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: PilotThingsIntegration
|
||||
def __init__(self, integration: _Optional[_Union[PilotThingsIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeletePilotThingsIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class IftttIntegration(_message.Message):
|
||||
__slots__ = ("application_id", "key", "uplink_values", "arbitrary_json", "event_prefix")
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_VALUES_FIELD_NUMBER: _ClassVar[int]
|
||||
ARBITRARY_JSON_FIELD_NUMBER: _ClassVar[int]
|
||||
EVENT_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
key: str
|
||||
uplink_values: _containers.RepeatedScalarFieldContainer[str]
|
||||
arbitrary_json: bool
|
||||
event_prefix: str
|
||||
def __init__(self, application_id: _Optional[str] = ..., key: _Optional[str] = ..., uplink_values: _Optional[_Iterable[str]] = ..., arbitrary_json: bool = ..., event_prefix: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateIftttIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: IftttIntegration
|
||||
def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetIftttIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetIftttIntegrationResponse(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: IftttIntegration
|
||||
def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateIftttIntegrationRequest(_message.Message):
|
||||
__slots__ = ("integration",)
|
||||
INTEGRATION_FIELD_NUMBER: _ClassVar[int]
|
||||
integration: IftttIntegration
|
||||
def __init__(self, integration: _Optional[_Union[IftttIntegration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteIftttIntegrationRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GenerateMqttIntegrationClientCertificateRequest(_message.Message):
|
||||
__slots__ = ("application_id",)
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
application_id: str
|
||||
def __init__(self, application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GenerateMqttIntegrationClientCertificateResponse(_message.Message):
|
||||
__slots__ = ("tls_cert", "tls_key", "ca_cert", "expires_at")
|
||||
TLS_CERT_FIELD_NUMBER: _ClassVar[int]
|
||||
TLS_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
CA_CERT_FIELD_NUMBER: _ClassVar[int]
|
||||
EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
tls_cert: str
|
||||
tls_key: str
|
||||
ca_cert: str
|
||||
expires_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, tls_cert: _Optional[str] = ..., tls_key: _Optional[str] = ..., ca_cert: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
File diff suppressed because it is too large
Load Diff
162
api/python/src/chirpstack_api/api/device_pb2.py
vendored
162
api/python/src/chirpstack_api/api/device_pb2.py
vendored
File diff suppressed because one or more lines are too long
391
api/python/src/chirpstack_api/api/device_pb2.pyi
vendored
391
api/python/src/chirpstack_api/api/device_pb2.pyi
vendored
@ -1,391 +0,0 @@
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import struct_pb2 as _struct_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Device(_message.Message):
|
||||
__slots__ = ("dev_eui", "name", "description", "application_id", "device_profile_id", "skip_fcnt_check", "is_disabled", "variables", "tags", "join_eui")
|
||||
class VariablesEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
SKIP_FCNT_CHECK_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_DISABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
VARIABLES_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
JOIN_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
name: str
|
||||
description: str
|
||||
application_id: str
|
||||
device_profile_id: str
|
||||
skip_fcnt_check: bool
|
||||
is_disabled: bool
|
||||
variables: _containers.ScalarMap[str, str]
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
join_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., application_id: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., skip_fcnt_check: bool = ..., is_disabled: bool = ..., variables: _Optional[_Mapping[str, str]] = ..., tags: _Optional[_Mapping[str, str]] = ..., join_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class DeviceStatus(_message.Message):
|
||||
__slots__ = ("margin", "external_power_source", "battery_level")
|
||||
MARGIN_FIELD_NUMBER: _ClassVar[int]
|
||||
EXTERNAL_POWER_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
||||
BATTERY_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
||||
margin: int
|
||||
external_power_source: bool
|
||||
battery_level: float
|
||||
def __init__(self, margin: _Optional[int] = ..., external_power_source: bool = ..., battery_level: _Optional[float] = ...) -> None: ...
|
||||
|
||||
class DeviceListItem(_message.Message):
|
||||
__slots__ = ("dev_eui", "created_at", "updated_at", "last_seen_at", "name", "description", "device_profile_id", "device_profile_name", "device_status")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_PROFILE_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
last_seen_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
description: str
|
||||
device_profile_id: str
|
||||
device_profile_name: str
|
||||
device_status: DeviceStatus
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., device_profile_name: _Optional[str] = ..., device_status: _Optional[_Union[DeviceStatus, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeviceKeys(_message.Message):
|
||||
__slots__ = ("dev_eui", "nwk_key", "app_key")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
NWK_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
APP_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
nwk_key: str
|
||||
app_key: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., nwk_key: _Optional[str] = ..., app_key: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateDeviceRequest(_message.Message):
|
||||
__slots__ = ("device",)
|
||||
DEVICE_FIELD_NUMBER: _ClassVar[int]
|
||||
device: Device
|
||||
def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetDeviceRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceResponse(_message.Message):
|
||||
__slots__ = ("device", "created_at", "updated_at", "last_seen_at", "device_status", "class_enabled")
|
||||
DEVICE_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
device: Device
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
last_seen_at: _timestamp_pb2.Timestamp
|
||||
device_status: DeviceStatus
|
||||
class_enabled: _common_pb2.DeviceClass
|
||||
def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_status: _Optional[_Union[DeviceStatus, _Mapping]] = ..., class_enabled: _Optional[_Union[_common_pb2.DeviceClass, str]] = ...) -> None: ...
|
||||
|
||||
class UpdateDeviceRequest(_message.Message):
|
||||
__slots__ = ("device",)
|
||||
DEVICE_FIELD_NUMBER: _ClassVar[int]
|
||||
device: Device
|
||||
def __init__(self, device: _Optional[_Union[Device, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteDeviceRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListDevicesRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "application_id", "multicast_group_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
application_id: str
|
||||
multicast_group_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., application_id: _Optional[str] = ..., multicast_group_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListDevicesResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[DeviceListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class CreateDeviceKeysRequest(_message.Message):
|
||||
__slots__ = ("device_keys",)
|
||||
DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int]
|
||||
device_keys: DeviceKeys
|
||||
def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetDeviceKeysRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceKeysResponse(_message.Message):
|
||||
__slots__ = ("device_keys", "created_at", "updated_at")
|
||||
DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
device_keys: DeviceKeys
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateDeviceKeysRequest(_message.Message):
|
||||
__slots__ = ("device_keys",)
|
||||
DEVICE_KEYS_FIELD_NUMBER: _ClassVar[int]
|
||||
device_keys: DeviceKeys
|
||||
def __init__(self, device_keys: _Optional[_Union[DeviceKeys, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteDeviceKeysRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class DeviceActivation(_message.Message):
|
||||
__slots__ = ("dev_eui", "dev_addr", "app_s_key", "nwk_s_enc_key", "s_nwk_s_int_key", "f_nwk_s_int_key", "f_cnt_up", "n_f_cnt_down", "a_f_cnt_down")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
APP_S_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
NWK_S_ENC_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
S_NWK_S_INT_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
F_NWK_S_INT_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_UP_FIELD_NUMBER: _ClassVar[int]
|
||||
N_F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
A_F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
dev_addr: str
|
||||
app_s_key: str
|
||||
nwk_s_enc_key: str
|
||||
s_nwk_s_int_key: str
|
||||
f_nwk_s_int_key: str
|
||||
f_cnt_up: int
|
||||
n_f_cnt_down: int
|
||||
a_f_cnt_down: int
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., dev_addr: _Optional[str] = ..., app_s_key: _Optional[str] = ..., nwk_s_enc_key: _Optional[str] = ..., s_nwk_s_int_key: _Optional[str] = ..., f_nwk_s_int_key: _Optional[str] = ..., f_cnt_up: _Optional[int] = ..., n_f_cnt_down: _Optional[int] = ..., a_f_cnt_down: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class ActivateDeviceRequest(_message.Message):
|
||||
__slots__ = ("device_activation",)
|
||||
DEVICE_ACTIVATION_FIELD_NUMBER: _ClassVar[int]
|
||||
device_activation: DeviceActivation
|
||||
def __init__(self, device_activation: _Optional[_Union[DeviceActivation, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeactivateDeviceRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceActivationRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceActivationResponse(_message.Message):
|
||||
__slots__ = ("device_activation", "join_server_context")
|
||||
DEVICE_ACTIVATION_FIELD_NUMBER: _ClassVar[int]
|
||||
JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
device_activation: DeviceActivation
|
||||
join_server_context: _common_pb2.JoinServerContext
|
||||
def __init__(self, device_activation: _Optional[_Union[DeviceActivation, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetRandomDevAddrRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetRandomDevAddrResponse(_message.Message):
|
||||
__slots__ = ("dev_addr",)
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_addr: str
|
||||
def __init__(self, dev_addr: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceMetricsRequest(_message.Message):
|
||||
__slots__ = ("dev_eui", "start", "end", "aggregation")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
START_FIELD_NUMBER: _ClassVar[int]
|
||||
END_FIELD_NUMBER: _ClassVar[int]
|
||||
AGGREGATION_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
start: _timestamp_pb2.Timestamp
|
||||
end: _timestamp_pb2.Timestamp
|
||||
aggregation: _common_pb2.Aggregation
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ...
|
||||
|
||||
class GetDeviceMetricsResponse(_message.Message):
|
||||
__slots__ = ("metrics", "states")
|
||||
class MetricsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: _common_pb2.Metric
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ...
|
||||
class StatesEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: DeviceState
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[DeviceState, _Mapping]] = ...) -> None: ...
|
||||
METRICS_FIELD_NUMBER: _ClassVar[int]
|
||||
STATES_FIELD_NUMBER: _ClassVar[int]
|
||||
metrics: _containers.MessageMap[str, _common_pb2.Metric]
|
||||
states: _containers.MessageMap[str, DeviceState]
|
||||
def __init__(self, metrics: _Optional[_Mapping[str, _common_pb2.Metric]] = ..., states: _Optional[_Mapping[str, DeviceState]] = ...) -> None: ...
|
||||
|
||||
class DeviceState(_message.Message):
|
||||
__slots__ = ("name", "value")
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
name: str
|
||||
value: str
|
||||
def __init__(self, name: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceLinkMetricsRequest(_message.Message):
|
||||
__slots__ = ("dev_eui", "start", "end", "aggregation")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
START_FIELD_NUMBER: _ClassVar[int]
|
||||
END_FIELD_NUMBER: _ClassVar[int]
|
||||
AGGREGATION_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
start: _timestamp_pb2.Timestamp
|
||||
end: _timestamp_pb2.Timestamp
|
||||
aggregation: _common_pb2.Aggregation
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ...
|
||||
|
||||
class GetDeviceLinkMetricsResponse(_message.Message):
|
||||
__slots__ = ("rx_packets", "gw_rssi", "gw_snr", "rx_packets_per_freq", "rx_packets_per_dr", "errors")
|
||||
RX_PACKETS_FIELD_NUMBER: _ClassVar[int]
|
||||
GW_RSSI_FIELD_NUMBER: _ClassVar[int]
|
||||
GW_SNR_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
ERRORS_FIELD_NUMBER: _ClassVar[int]
|
||||
rx_packets: _common_pb2.Metric
|
||||
gw_rssi: _common_pb2.Metric
|
||||
gw_snr: _common_pb2.Metric
|
||||
rx_packets_per_freq: _common_pb2.Metric
|
||||
rx_packets_per_dr: _common_pb2.Metric
|
||||
errors: _common_pb2.Metric
|
||||
def __init__(self, rx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., gw_rssi: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., gw_snr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., errors: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeviceQueueItem(_message.Message):
|
||||
__slots__ = ("id", "dev_eui", "confirmed", "f_port", "data", "object", "is_pending", "f_cnt_down", "is_encrypted")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
CONFIRMED_FIELD_NUMBER: _ClassVar[int]
|
||||
F_PORT_FIELD_NUMBER: _ClassVar[int]
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_PENDING_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ENCRYPTED_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
dev_eui: str
|
||||
confirmed: bool
|
||||
f_port: int
|
||||
data: bytes
|
||||
object: _struct_pb2.Struct
|
||||
is_pending: bool
|
||||
f_cnt_down: int
|
||||
is_encrypted: bool
|
||||
def __init__(self, id: _Optional[str] = ..., dev_eui: _Optional[str] = ..., confirmed: bool = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., is_pending: bool = ..., f_cnt_down: _Optional[int] = ..., is_encrypted: bool = ...) -> None: ...
|
||||
|
||||
class EnqueueDeviceQueueItemRequest(_message.Message):
|
||||
__slots__ = ("queue_item",)
|
||||
QUEUE_ITEM_FIELD_NUMBER: _ClassVar[int]
|
||||
queue_item: DeviceQueueItem
|
||||
def __init__(self, queue_item: _Optional[_Union[DeviceQueueItem, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class EnqueueDeviceQueueItemResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class FlushDeviceQueueRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceQueueItemsRequest(_message.Message):
|
||||
__slots__ = ("dev_eui", "count_only")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
COUNT_ONLY_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
count_only: bool
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., count_only: bool = ...) -> None: ...
|
||||
|
||||
class GetDeviceQueueItemsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[DeviceQueueItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceQueueItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class FlushDevNoncesRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceNextFCntDownRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceNextFCntDownResponse(_message.Message):
|
||||
__slots__ = ("f_cnt_down",)
|
||||
F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
f_cnt_down: int
|
||||
def __init__(self, f_cnt_down: _Optional[int] = ...) -> None: ...
|
725
api/python/src/chirpstack_api/api/device_pb2_grpc.py
vendored
725
api/python/src/chirpstack_api/api/device_pb2_grpc.py
vendored
@ -1,725 +0,0 @@
|
||||
# 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.GetMetrics = channel.unary_unary(
|
||||
'/api.DeviceService/GetMetrics',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.FromString,
|
||||
)
|
||||
self.GetLinkMetrics = channel.unary_unary(
|
||||
'/api.DeviceService/GetLinkMetrics',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.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,
|
||||
)
|
||||
self.GetNextFCntDown = channel.unary_unary(
|
||||
'/api.DeviceService/GetNextFCntDown',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.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 GetMetrics(self, request, context):
|
||||
"""GetMetrics returns the device metrics.
|
||||
Note that this requires a device-profile with codec and measurements
|
||||
configured.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetLinkMetrics(self, request, context):
|
||||
"""GetLinkMetrics returns the device link metrics.
|
||||
This includes uplinks, downlinks, RSSI, SNR, etc...
|
||||
"""
|
||||
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 GetNextFCntDown(self, request, context):
|
||||
"""GetNextFCntDown returns the next FCntDown to use for enqueing encrypted
|
||||
downlinks. The difference with the DeviceActivation f_cont_down is that
|
||||
this method takes potential existing queue-items into account.
|
||||
"""
|
||||
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,
|
||||
),
|
||||
'GetMetrics': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetMetrics,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.SerializeToString,
|
||||
),
|
||||
'GetLinkMetrics': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetLinkMetrics,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.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,
|
||||
),
|
||||
'GetNextFCntDown': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetNextFCntDown,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.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 GetMetrics(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/GetMetrics',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceMetricsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetLinkMetrics(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/GetLinkMetrics',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceLinkMetricsResponse.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)
|
||||
|
||||
@staticmethod
|
||||
def GetNextFCntDown(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/GetNextFCntDown',
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__pb2.GetDeviceNextFCntDownResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
File diff suppressed because one or more lines are too long
@ -1,304 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class CodecRuntime(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NONE: _ClassVar[CodecRuntime]
|
||||
CAYENNE_LPP: _ClassVar[CodecRuntime]
|
||||
JS: _ClassVar[CodecRuntime]
|
||||
|
||||
class MeasurementKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
UNKNOWN: _ClassVar[MeasurementKind]
|
||||
COUNTER: _ClassVar[MeasurementKind]
|
||||
ABSOLUTE: _ClassVar[MeasurementKind]
|
||||
GAUGE: _ClassVar[MeasurementKind]
|
||||
STRING: _ClassVar[MeasurementKind]
|
||||
|
||||
class CadPeriodicity(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
SEC_1: _ClassVar[CadPeriodicity]
|
||||
MS_500: _ClassVar[CadPeriodicity]
|
||||
MS_250: _ClassVar[CadPeriodicity]
|
||||
MS_100: _ClassVar[CadPeriodicity]
|
||||
MS_50: _ClassVar[CadPeriodicity]
|
||||
MS_20: _ClassVar[CadPeriodicity]
|
||||
|
||||
class SecondChAckOffset(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
KHZ_0: _ClassVar[SecondChAckOffset]
|
||||
KHZ_200: _ClassVar[SecondChAckOffset]
|
||||
KHZ_400: _ClassVar[SecondChAckOffset]
|
||||
KHZ_800: _ClassVar[SecondChAckOffset]
|
||||
KHZ_1600: _ClassVar[SecondChAckOffset]
|
||||
KHZ_3200: _ClassVar[SecondChAckOffset]
|
||||
|
||||
class RelayModeActivation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
DISABLE_RELAY_MODE: _ClassVar[RelayModeActivation]
|
||||
ENABLE_RELAY_MODE: _ClassVar[RelayModeActivation]
|
||||
DYNAMIC: _ClassVar[RelayModeActivation]
|
||||
END_DEVICE_CONTROLLED: _ClassVar[RelayModeActivation]
|
||||
NONE: CodecRuntime
|
||||
CAYENNE_LPP: CodecRuntime
|
||||
JS: CodecRuntime
|
||||
UNKNOWN: MeasurementKind
|
||||
COUNTER: MeasurementKind
|
||||
ABSOLUTE: MeasurementKind
|
||||
GAUGE: MeasurementKind
|
||||
STRING: MeasurementKind
|
||||
SEC_1: CadPeriodicity
|
||||
MS_500: CadPeriodicity
|
||||
MS_250: CadPeriodicity
|
||||
MS_100: CadPeriodicity
|
||||
MS_50: CadPeriodicity
|
||||
MS_20: CadPeriodicity
|
||||
KHZ_0: SecondChAckOffset
|
||||
KHZ_200: SecondChAckOffset
|
||||
KHZ_400: SecondChAckOffset
|
||||
KHZ_800: SecondChAckOffset
|
||||
KHZ_1600: SecondChAckOffset
|
||||
KHZ_3200: SecondChAckOffset
|
||||
DISABLE_RELAY_MODE: RelayModeActivation
|
||||
ENABLE_RELAY_MODE: RelayModeActivation
|
||||
DYNAMIC: RelayModeActivation
|
||||
END_DEVICE_CONTROLLED: RelayModeActivation
|
||||
|
||||
class DeviceProfile(_message.Message):
|
||||
__slots__ = ("id", "tenant_id", "name", "description", "region", "mac_version", "reg_params_revision", "adr_algorithm_id", "payload_codec_runtime", "payload_codec_script", "flush_queue_on_activate", "uplink_interval", "device_status_req_interval", "supports_otaa", "supports_class_b", "supports_class_c", "class_b_timeout", "class_b_ping_slot_nb_k", "class_b_ping_slot_dr", "class_b_ping_slot_freq", "class_c_timeout", "abp_rx1_delay", "abp_rx1_dr_offset", "abp_rx2_dr", "abp_rx2_freq", "tags", "measurements", "auto_detect_measurements", "region_config_id", "is_relay", "is_relay_ed", "relay_ed_relay_only", "relay_enabled", "relay_cad_periodicity", "relay_default_channel_index", "relay_second_channel_freq", "relay_second_channel_dr", "relay_second_channel_ack_offset", "relay_ed_activation_mode", "relay_ed_smart_enable_level", "relay_ed_back_off", "relay_ed_uplink_limit_bucket_size", "relay_ed_uplink_limit_reload_rate", "relay_join_req_limit_reload_rate", "relay_notify_limit_reload_rate", "relay_global_uplink_limit_reload_rate", "relay_overall_limit_reload_rate", "relay_join_req_limit_bucket_size", "relay_notify_limit_bucket_size", "relay_global_uplink_limit_bucket_size", "relay_overall_limit_bucket_size", "allow_roaming")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
class MeasurementsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: Measurement
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[Measurement, _Mapping]] = ...) -> None: ...
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int]
|
||||
ADR_ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_CODEC_RUNTIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_CODEC_SCRIPT_FIELD_NUMBER: _ClassVar[int]
|
||||
FLUSH_QUEUE_ON_ACTIVATE_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_STATUS_REQ_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_NB_K_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_C_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX1_DELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX2_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX2_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
MEASUREMENTS_FIELD_NUMBER: _ClassVar[int]
|
||||
AUTO_DETECT_MEASUREMENTS_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_CONFIG_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_RELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_RELAY_ED_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_RELAY_ONLY_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_CAD_PERIODICITY_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_DEFAULT_CHANNEL_INDEX_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_SECOND_CHANNEL_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_SECOND_CHANNEL_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_SECOND_CHANNEL_ACK_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_ACTIVATION_MODE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_SMART_ENABLE_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_BACK_OFF_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_UPLINK_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_ED_UPLINK_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_JOIN_REQ_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_NOTIFY_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_GLOBAL_UPLINK_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_OVERALL_LIMIT_RELOAD_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_JOIN_REQ_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_NOTIFY_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_GLOBAL_UPLINK_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_OVERALL_LIMIT_BUCKET_SIZE_FIELD_NUMBER: _ClassVar[int]
|
||||
ALLOW_ROAMING_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
tenant_id: str
|
||||
name: str
|
||||
description: str
|
||||
region: _common_pb2.Region
|
||||
mac_version: _common_pb2.MacVersion
|
||||
reg_params_revision: _common_pb2.RegParamsRevision
|
||||
adr_algorithm_id: str
|
||||
payload_codec_runtime: CodecRuntime
|
||||
payload_codec_script: str
|
||||
flush_queue_on_activate: bool
|
||||
uplink_interval: int
|
||||
device_status_req_interval: int
|
||||
supports_otaa: bool
|
||||
supports_class_b: bool
|
||||
supports_class_c: bool
|
||||
class_b_timeout: int
|
||||
class_b_ping_slot_nb_k: int
|
||||
class_b_ping_slot_dr: int
|
||||
class_b_ping_slot_freq: int
|
||||
class_c_timeout: int
|
||||
abp_rx1_delay: int
|
||||
abp_rx1_dr_offset: int
|
||||
abp_rx2_dr: int
|
||||
abp_rx2_freq: int
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
measurements: _containers.MessageMap[str, Measurement]
|
||||
auto_detect_measurements: bool
|
||||
region_config_id: str
|
||||
is_relay: bool
|
||||
is_relay_ed: bool
|
||||
relay_ed_relay_only: bool
|
||||
relay_enabled: bool
|
||||
relay_cad_periodicity: CadPeriodicity
|
||||
relay_default_channel_index: int
|
||||
relay_second_channel_freq: int
|
||||
relay_second_channel_dr: int
|
||||
relay_second_channel_ack_offset: SecondChAckOffset
|
||||
relay_ed_activation_mode: RelayModeActivation
|
||||
relay_ed_smart_enable_level: int
|
||||
relay_ed_back_off: int
|
||||
relay_ed_uplink_limit_bucket_size: int
|
||||
relay_ed_uplink_limit_reload_rate: int
|
||||
relay_join_req_limit_reload_rate: int
|
||||
relay_notify_limit_reload_rate: int
|
||||
relay_global_uplink_limit_reload_rate: int
|
||||
relay_overall_limit_reload_rate: int
|
||||
relay_join_req_limit_bucket_size: int
|
||||
relay_notify_limit_bucket_size: int
|
||||
relay_global_uplink_limit_bucket_size: int
|
||||
relay_overall_limit_bucket_size: int
|
||||
allow_roaming: bool
|
||||
def __init__(self, id: _Optional[str] = ..., tenant_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., adr_algorithm_id: _Optional[str] = ..., payload_codec_runtime: _Optional[_Union[CodecRuntime, str]] = ..., payload_codec_script: _Optional[str] = ..., flush_queue_on_activate: bool = ..., uplink_interval: _Optional[int] = ..., device_status_req_interval: _Optional[int] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ..., class_b_timeout: _Optional[int] = ..., class_b_ping_slot_nb_k: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_freq: _Optional[int] = ..., class_c_timeout: _Optional[int] = ..., abp_rx1_delay: _Optional[int] = ..., abp_rx1_dr_offset: _Optional[int] = ..., abp_rx2_dr: _Optional[int] = ..., abp_rx2_freq: _Optional[int] = ..., tags: _Optional[_Mapping[str, str]] = ..., measurements: _Optional[_Mapping[str, Measurement]] = ..., auto_detect_measurements: bool = ..., region_config_id: _Optional[str] = ..., is_relay: bool = ..., is_relay_ed: bool = ..., relay_ed_relay_only: bool = ..., relay_enabled: bool = ..., relay_cad_periodicity: _Optional[_Union[CadPeriodicity, str]] = ..., relay_default_channel_index: _Optional[int] = ..., relay_second_channel_freq: _Optional[int] = ..., relay_second_channel_dr: _Optional[int] = ..., relay_second_channel_ack_offset: _Optional[_Union[SecondChAckOffset, str]] = ..., relay_ed_activation_mode: _Optional[_Union[RelayModeActivation, str]] = ..., relay_ed_smart_enable_level: _Optional[int] = ..., relay_ed_back_off: _Optional[int] = ..., relay_ed_uplink_limit_bucket_size: _Optional[int] = ..., relay_ed_uplink_limit_reload_rate: _Optional[int] = ..., relay_join_req_limit_reload_rate: _Optional[int] = ..., relay_notify_limit_reload_rate: _Optional[int] = ..., relay_global_uplink_limit_reload_rate: _Optional[int] = ..., relay_overall_limit_reload_rate: _Optional[int] = ..., relay_join_req_limit_bucket_size: _Optional[int] = ..., relay_notify_limit_bucket_size: _Optional[int] = ..., relay_global_uplink_limit_bucket_size: _Optional[int] = ..., relay_overall_limit_bucket_size: _Optional[int] = ..., allow_roaming: bool = ...) -> None: ...
|
||||
|
||||
class Measurement(_message.Message):
|
||||
__slots__ = ("name", "kind")
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
KIND_FIELD_NUMBER: _ClassVar[int]
|
||||
name: str
|
||||
kind: MeasurementKind
|
||||
def __init__(self, name: _Optional[str] = ..., kind: _Optional[_Union[MeasurementKind, str]] = ...) -> None: ...
|
||||
|
||||
class DeviceProfileListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "name", "region", "mac_version", "reg_params_revision", "supports_otaa", "supports_class_b", "supports_class_c")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
region: _common_pb2.Region
|
||||
mac_version: _common_pb2.MacVersion
|
||||
reg_params_revision: _common_pb2.RegParamsRevision
|
||||
supports_otaa: bool
|
||||
supports_class_b: bool
|
||||
supports_class_c: bool
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ...) -> None: ...
|
||||
|
||||
class CreateDeviceProfileRequest(_message.Message):
|
||||
__slots__ = ("device_profile",)
|
||||
DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile: DeviceProfile
|
||||
def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateDeviceProfileResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceProfileRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceProfileResponse(_message.Message):
|
||||
__slots__ = ("device_profile", "created_at", "updated_at")
|
||||
DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile: DeviceProfile
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateDeviceProfileRequest(_message.Message):
|
||||
__slots__ = ("device_profile",)
|
||||
DEVICE_PROFILE_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile: DeviceProfile
|
||||
def __init__(self, device_profile: _Optional[_Union[DeviceProfile, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteDeviceProfileRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListDeviceProfilesRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "tenant_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
tenant_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListDeviceProfilesResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[DeviceProfileListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceProfileListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class ListDeviceProfileAdrAlgorithmsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[AdrAlgorithmListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[AdrAlgorithmListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class AdrAlgorithmListItem(_message.Message):
|
||||
__slots__ = ("id", "name")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
@ -1,244 +0,0 @@
|
||||
# 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)
|
@ -1,68 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/device_profile_template.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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
|
||||
from chirpstack_api.api import device_profile_pb2 as chirpstack__api_dot_api_dot_device__profile__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0chirpstack-api/api/device_profile_template.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\x1a\'chirpstack-api/api/device_profile.proto\"\xf6\x07\n\x15\x44\x65viceProfileTemplate\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\x0e\n\x06vendor\x18\x04 \x01(\t\x12\x10\n\x08\x66irmware\x18\x05 \x01(\t\x12\x1e\n\x06region\x18\x06 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x07 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\x08 \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x18\n\x10\x61\x64r_algorithm_id\x18\t \x01(\t\x12\x30\n\x15payload_codec_runtime\x18\n \x01(\x0e\x32\x11.api.CodecRuntime\x12\x1c\n\x14payload_codec_script\x18\x0b \x01(\t\x12\x1f\n\x17\x66lush_queue_on_activate\x18\x0c \x01(\x08\x12\x17\n\x0fuplink_interval\x18\r \x01(\r\x12\"\n\x1a\x64\x65vice_status_req_interval\x18\x0e \x01(\r\x12\x15\n\rsupports_otaa\x18\x0f \x01(\x08\x12\x18\n\x10supports_class_b\x18\x10 \x01(\x08\x12\x18\n\x10supports_class_c\x18\x11 \x01(\x08\x12\x17\n\x0f\x63lass_b_timeout\x18\x12 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_nb_k\x18\x13 \x01(\r\x12\x1c\n\x14\x63lass_b_ping_slot_dr\x18\x14 \x01(\r\x12\x1e\n\x16\x63lass_b_ping_slot_freq\x18\x15 \x01(\r\x12\x17\n\x0f\x63lass_c_timeout\x18\x16 \x01(\r\x12\x15\n\rabp_rx1_delay\x18\x17 \x01(\r\x12\x19\n\x11\x61\x62p_rx1_dr_offset\x18\x18 \x01(\r\x12\x12\n\nabp_rx2_dr\x18\x19 \x01(\r\x12\x14\n\x0c\x61\x62p_rx2_freq\x18\x1a \x01(\r\x12\x32\n\x04tags\x18\x1b \x03(\x0b\x32$.api.DeviceProfileTemplate.TagsEntry\x12\x42\n\x0cmeasurements\x18\x1c \x03(\x0b\x32,.api.DeviceProfileTemplate.MeasurementsEntry\x12 \n\x18\x61uto_detect_measurements\x18\x1d \x01(\x08\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x45\n\x11MeasurementsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.api.Measurement:\x02\x38\x01\"\x87\x03\n\x1d\x44\x65viceProfileTemplateListItem\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\x0e\n\x06vendor\x18\x05 \x01(\t\x12\x10\n\x08\x66irmware\x18\x06 \x01(\t\x12\x1e\n\x06region\x18\x07 \x01(\x0e\x32\x0e.common.Region\x12\'\n\x0bmac_version\x18\x08 \x01(\x0e\x32\x12.common.MacVersion\x12\x36\n\x13reg_params_revision\x18\t \x01(\x0e\x32\x19.common.RegParamsRevision\x12\x15\n\rsupports_otaa\x18\n \x01(\x08\x12\x18\n\x10supports_class_b\x18\x0b \x01(\x08\x12\x18\n\x10supports_class_c\x18\x0c \x01(\x08\"a\n\"CreateDeviceProfileTemplateRequest\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\"-\n\x1fGetDeviceProfileTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"\xbf\x01\n GetDeviceProfileTemplateResponse\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\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\"a\n\"UpdateDeviceProfileTemplateRequest\x12;\n\x17\x64\x65vice_profile_template\x18\x01 \x01(\x0b\x32\x1a.api.DeviceProfileTemplate\"0\n\"DeleteDeviceProfileTemplateRequest\x12\n\n\x02id\x18\x01 \x01(\t\"B\n!ListDeviceProfileTemplatesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\"m\n\"ListDeviceProfileTemplatesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\x32\n\x06result\x18\x02 \x03(\x0b\x32\".api.DeviceProfileTemplateListItem2\x9d\x05\n\x1c\x44\x65viceProfileTemplateService\x12s\n\x06\x43reate\x12\'.api.CreateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"\"\x1d/api/device-profile-templates:\x01*\x12~\n\x03Get\x12$.api.GetDeviceProfileTemplateRequest\x1a%.api.GetDeviceProfileTemplateResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/device-profile-templates/{id}\x12\x90\x01\n\x06Update\x12\'.api.UpdateDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"E\x82\xd3\xe4\x93\x02?\x1a:/api/device-profile-templates/{device_profile_template.id}:\x01*\x12u\n\x06\x44\x65lete\x12\'.api.DeleteDeviceProfileTemplateRequest\x1a\x16.google.protobuf.Empty\"*\x82\xd3\xe4\x93\x02$*\"/api/device-profile-templates/{id}\x12~\n\x04List\x12&.api.ListDeviceProfileTemplatesRequest\x1a\'.api.ListDeviceProfileTemplatesResponse\"%\x82\xd3\xe4\x93\x02\x1f\x12\x1d/api/device-profile-templatesBr\n\x11io.chirpstack.apiB\x1a\x44\x65viceProfileTemplateProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.device_profile_template_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\032DeviceProfileTemplateProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api'
|
||||
_globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_options = b'8\001'
|
||||
_globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_options = b'8\001'
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Create']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\"\"\035/api/device-profile-templates:\001*'
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Get']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002$\022\"/api/device-profile-templates/{id}'
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Update']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002?\032:/api/device-profile-templates/{device_profile_template.id}:\001*'
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Delete']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002$*\"/api/device-profile-templates/{id}'
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['List']._options = None
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\037\022\035/api/device-profile-templates'
|
||||
_globals['_DEVICEPROFILETEMPLATE']._serialized_start=227
|
||||
_globals['_DEVICEPROFILETEMPLATE']._serialized_end=1241
|
||||
_globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_start=1127
|
||||
_globals['_DEVICEPROFILETEMPLATE_TAGSENTRY']._serialized_end=1170
|
||||
_globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_start=1172
|
||||
_globals['_DEVICEPROFILETEMPLATE_MEASUREMENTSENTRY']._serialized_end=1241
|
||||
_globals['_DEVICEPROFILETEMPLATELISTITEM']._serialized_start=1244
|
||||
_globals['_DEVICEPROFILETEMPLATELISTITEM']._serialized_end=1635
|
||||
_globals['_CREATEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1637
|
||||
_globals['_CREATEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=1734
|
||||
_globals['_GETDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1736
|
||||
_globals['_GETDEVICEPROFILETEMPLATEREQUEST']._serialized_end=1781
|
||||
_globals['_GETDEVICEPROFILETEMPLATERESPONSE']._serialized_start=1784
|
||||
_globals['_GETDEVICEPROFILETEMPLATERESPONSE']._serialized_end=1975
|
||||
_globals['_UPDATEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=1977
|
||||
_globals['_UPDATEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=2074
|
||||
_globals['_DELETEDEVICEPROFILETEMPLATEREQUEST']._serialized_start=2076
|
||||
_globals['_DELETEDEVICEPROFILETEMPLATEREQUEST']._serialized_end=2124
|
||||
_globals['_LISTDEVICEPROFILETEMPLATESREQUEST']._serialized_start=2126
|
||||
_globals['_LISTDEVICEPROFILETEMPLATESREQUEST']._serialized_end=2192
|
||||
_globals['_LISTDEVICEPROFILETEMPLATESRESPONSE']._serialized_start=2194
|
||||
_globals['_LISTDEVICEPROFILETEMPLATESRESPONSE']._serialized_end=2303
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE']._serialized_start=2306
|
||||
_globals['_DEVICEPROFILETEMPLATESERVICE']._serialized_end=2975
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,165 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.api import device_profile_pb2 as _device_profile_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class DeviceProfileTemplate(_message.Message):
|
||||
__slots__ = ("id", "name", "description", "vendor", "firmware", "region", "mac_version", "reg_params_revision", "adr_algorithm_id", "payload_codec_runtime", "payload_codec_script", "flush_queue_on_activate", "uplink_interval", "device_status_req_interval", "supports_otaa", "supports_class_b", "supports_class_c", "class_b_timeout", "class_b_ping_slot_nb_k", "class_b_ping_slot_dr", "class_b_ping_slot_freq", "class_c_timeout", "abp_rx1_delay", "abp_rx1_dr_offset", "abp_rx2_dr", "abp_rx2_freq", "tags", "measurements", "auto_detect_measurements")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
class MeasurementsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: _device_profile_pb2.Measurement
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[_Union[_device_profile_pb2.Measurement, _Mapping]] = ...) -> None: ...
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
VENDOR_FIELD_NUMBER: _ClassVar[int]
|
||||
FIRMWARE_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int]
|
||||
ADR_ALGORITHM_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_CODEC_RUNTIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_CODEC_SCRIPT_FIELD_NUMBER: _ClassVar[int]
|
||||
FLUSH_QUEUE_ON_ACTIVATE_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_STATUS_REQ_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_NB_K_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_C_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX1_DELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX2_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
ABP_RX2_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
MEASUREMENTS_FIELD_NUMBER: _ClassVar[int]
|
||||
AUTO_DETECT_MEASUREMENTS_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
description: str
|
||||
vendor: str
|
||||
firmware: str
|
||||
region: _common_pb2.Region
|
||||
mac_version: _common_pb2.MacVersion
|
||||
reg_params_revision: _common_pb2.RegParamsRevision
|
||||
adr_algorithm_id: str
|
||||
payload_codec_runtime: _device_profile_pb2.CodecRuntime
|
||||
payload_codec_script: str
|
||||
flush_queue_on_activate: bool
|
||||
uplink_interval: int
|
||||
device_status_req_interval: int
|
||||
supports_otaa: bool
|
||||
supports_class_b: bool
|
||||
supports_class_c: bool
|
||||
class_b_timeout: int
|
||||
class_b_ping_slot_nb_k: int
|
||||
class_b_ping_slot_dr: int
|
||||
class_b_ping_slot_freq: int
|
||||
class_c_timeout: int
|
||||
abp_rx1_delay: int
|
||||
abp_rx1_dr_offset: int
|
||||
abp_rx2_dr: int
|
||||
abp_rx2_freq: int
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
measurements: _containers.MessageMap[str, _device_profile_pb2.Measurement]
|
||||
auto_detect_measurements: bool
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., vendor: _Optional[str] = ..., firmware: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., adr_algorithm_id: _Optional[str] = ..., payload_codec_runtime: _Optional[_Union[_device_profile_pb2.CodecRuntime, str]] = ..., payload_codec_script: _Optional[str] = ..., flush_queue_on_activate: bool = ..., uplink_interval: _Optional[int] = ..., device_status_req_interval: _Optional[int] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ..., class_b_timeout: _Optional[int] = ..., class_b_ping_slot_nb_k: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_freq: _Optional[int] = ..., class_c_timeout: _Optional[int] = ..., abp_rx1_delay: _Optional[int] = ..., abp_rx1_dr_offset: _Optional[int] = ..., abp_rx2_dr: _Optional[int] = ..., abp_rx2_freq: _Optional[int] = ..., tags: _Optional[_Mapping[str, str]] = ..., measurements: _Optional[_Mapping[str, _device_profile_pb2.Measurement]] = ..., auto_detect_measurements: bool = ...) -> None: ...
|
||||
|
||||
class DeviceProfileTemplateListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "name", "vendor", "firmware", "region", "mac_version", "reg_params_revision", "supports_otaa", "supports_class_b", "supports_class_c")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
VENDOR_FIELD_NUMBER: _ClassVar[int]
|
||||
FIRMWARE_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
REG_PARAMS_REVISION_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_OTAA_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_B_FIELD_NUMBER: _ClassVar[int]
|
||||
SUPPORTS_CLASS_C_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
vendor: str
|
||||
firmware: str
|
||||
region: _common_pb2.Region
|
||||
mac_version: _common_pb2.MacVersion
|
||||
reg_params_revision: _common_pb2.RegParamsRevision
|
||||
supports_otaa: bool
|
||||
supports_class_b: bool
|
||||
supports_class_c: bool
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., vendor: _Optional[str] = ..., firmware: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mac_version: _Optional[_Union[_common_pb2.MacVersion, str]] = ..., reg_params_revision: _Optional[_Union[_common_pb2.RegParamsRevision, str]] = ..., supports_otaa: bool = ..., supports_class_b: bool = ..., supports_class_c: bool = ...) -> None: ...
|
||||
|
||||
class CreateDeviceProfileTemplateRequest(_message.Message):
|
||||
__slots__ = ("device_profile_template",)
|
||||
DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile_template: DeviceProfileTemplate
|
||||
def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetDeviceProfileTemplateRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDeviceProfileTemplateResponse(_message.Message):
|
||||
__slots__ = ("device_profile_template", "created_at", "updated_at")
|
||||
DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile_template: DeviceProfileTemplate
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateDeviceProfileTemplateRequest(_message.Message):
|
||||
__slots__ = ("device_profile_template",)
|
||||
DEVICE_PROFILE_TEMPLATE_FIELD_NUMBER: _ClassVar[int]
|
||||
device_profile_template: DeviceProfileTemplate
|
||||
def __init__(self, device_profile_template: _Optional[_Union[DeviceProfileTemplate, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteDeviceProfileTemplateRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListDeviceProfileTemplatesRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class ListDeviceProfileTemplatesResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[DeviceProfileTemplateListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[DeviceProfileTemplateListItem, _Mapping]]] = ...) -> None: ...
|
@ -1,207 +0,0 @@
|
||||
# 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_template_pb2 as chirpstack__api_dot_api_dot_device__profile__template__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class DeviceProfileTemplateServiceStub(object):
|
||||
"""DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.Create = channel.unary_unary(
|
||||
'/api.DeviceProfileTemplateService/Create',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.CreateDeviceProfileTemplateRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Get = channel.unary_unary(
|
||||
'/api.DeviceProfileTemplateService/Get',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.FromString,
|
||||
)
|
||||
self.Update = channel.unary_unary(
|
||||
'/api.DeviceProfileTemplateService/Update',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.Delete = channel.unary_unary(
|
||||
'/api.DeviceProfileTemplateService/Delete',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.DeleteDeviceProfileTemplateRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.List = channel.unary_unary(
|
||||
'/api.DeviceProfileTemplateService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class DeviceProfileTemplateServiceServicer(object):
|
||||
"""DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
|
||||
"""
|
||||
|
||||
def Create(self, request, context):
|
||||
"""Create the given device-profile template.
|
||||
"""
|
||||
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 template 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 template.
|
||||
"""
|
||||
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 template 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-profile templates.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_DeviceProfileTemplateServiceServicer_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__template__pb2.CreateDeviceProfileTemplateRequest.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__profile__template__pb2.GetDeviceProfileTemplateRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.SerializeToString,
|
||||
),
|
||||
'Update': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.Update,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.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__template__pb2.DeleteDeviceProfileTemplateRequest.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__template__pb2.ListDeviceProfileTemplatesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.DeviceProfileTemplateService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class DeviceProfileTemplateService(object):
|
||||
"""DeviceProfileTemplateService is the service providing API methods for managing device-profile templates.
|
||||
"""
|
||||
|
||||
@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.DeviceProfileTemplateService/Create',
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.CreateDeviceProfileTemplateRequest.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.DeviceProfileTemplateService/Get',
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.GetDeviceProfileTemplateResponse.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.DeviceProfileTemplateService/Update',
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.UpdateDeviceProfileTemplateRequest.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.DeviceProfileTemplateService/Delete',
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.DeleteDeviceProfileTemplateRequest.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.DeviceProfileTemplateService/List',
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_device__profile__template__pb2.ListDeviceProfileTemplatesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@ -1,32 +0,0 @@
|
||||
# -*- 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 symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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\"\x90\x02\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\x12\x18\n\x10plaintext_f_opts\x18\x08 \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\t \x01(\x08\"\x9a\x02\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(\r\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(\t\x12\x18\n\x10plaintext_f_opts\x18\t \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\n \x01(\x08\x42\x65\n\x11io.chirpstack.apiB\rFrameLogProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.frame_log_pb2', _globals)
|
||||
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/api\252\002\016Chirpstack.Api'
|
||||
_globals['_UPLINKFRAMELOG']._serialized_start=141
|
||||
_globals['_UPLINKFRAMELOG']._serialized_end=413
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_start=416
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_end=698
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,55 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class UplinkFrameLog(_message.Message):
|
||||
__slots__ = ["phy_payload", "tx_info", "rx_info", "m_type", "dev_addr", "dev_eui", "time", "plaintext_f_opts", "plaintext_frm_payload"]
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
||||
|
||||
class DownlinkFrameLog(_message.Message):
|
||||
__slots__ = ["time", "phy_payload", "tx_info", "downlink_id", "gateway_id", "m_type", "dev_addr", "dev_eui", "plaintext_f_opts", "plaintext_frm_payload"]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
time: _timestamp_pb2.Timestamp
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
downlink_id: int
|
||||
gateway_id: str
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., downlink_id: _Optional[int] = ..., gateway_id: _Optional[str] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
85
api/python/src/chirpstack_api/api/gateway_pb2.py
vendored
85
api/python/src/chirpstack_api/api/gateway_pb2.py
vendored
File diff suppressed because one or more lines are too long
191
api/python/src/chirpstack_api/api/gateway_pb2.pyi
vendored
191
api/python/src/chirpstack_api/api/gateway_pb2.pyi
vendored
@ -1,191 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class GatewayState(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NEVER_SEEN: _ClassVar[GatewayState]
|
||||
ONLINE: _ClassVar[GatewayState]
|
||||
OFFLINE: _ClassVar[GatewayState]
|
||||
NEVER_SEEN: GatewayState
|
||||
ONLINE: GatewayState
|
||||
OFFLINE: GatewayState
|
||||
|
||||
class Gateway(_message.Message):
|
||||
__slots__ = ("gateway_id", "name", "description", "location", "tenant_id", "tags", "metadata", "stats_interval")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
class MetadataEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
METADATA_FIELD_NUMBER: _ClassVar[int]
|
||||
STATS_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
name: str
|
||||
description: str
|
||||
location: _common_pb2.Location
|
||||
tenant_id: str
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
metadata: _containers.ScalarMap[str, str]
|
||||
stats_interval: int
|
||||
def __init__(self, gateway_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., tenant_id: _Optional[str] = ..., tags: _Optional[_Mapping[str, str]] = ..., metadata: _Optional[_Mapping[str, str]] = ..., stats_interval: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GatewayListItem(_message.Message):
|
||||
__slots__ = ("tenant_id", "gateway_id", "name", "description", "location", "properties", "created_at", "updated_at", "last_seen_at", "state")
|
||||
class PropertiesEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
STATE_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
gateway_id: str
|
||||
name: str
|
||||
description: str
|
||||
location: _common_pb2.Location
|
||||
properties: _containers.ScalarMap[str, str]
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
last_seen_at: _timestamp_pb2.Timestamp
|
||||
state: GatewayState
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., gateway_id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., properties: _Optional[_Mapping[str, str]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., state: _Optional[_Union[GatewayState, str]] = ...) -> None: ...
|
||||
|
||||
class CreateGatewayRequest(_message.Message):
|
||||
__slots__ = ("gateway",)
|
||||
GATEWAY_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway: Gateway
|
||||
def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetGatewayRequest(_message.Message):
|
||||
__slots__ = ("gateway_id",)
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
def __init__(self, gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetGatewayResponse(_message.Message):
|
||||
__slots__ = ("gateway", "created_at", "updated_at", "last_seen_at")
|
||||
GATEWAY_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
LAST_SEEN_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway: Gateway
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
last_seen_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., last_seen_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateGatewayRequest(_message.Message):
|
||||
__slots__ = ("gateway",)
|
||||
GATEWAY_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway: Gateway
|
||||
def __init__(self, gateway: _Optional[_Union[Gateway, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteGatewayRequest(_message.Message):
|
||||
__slots__ = ("gateway_id",)
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
def __init__(self, gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListGatewaysRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "tenant_id", "multicast_group_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
tenant_id: str
|
||||
multicast_group_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., tenant_id: _Optional[str] = ..., multicast_group_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListGatewaysResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[GatewayListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[GatewayListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class GenerateGatewayClientCertificateRequest(_message.Message):
|
||||
__slots__ = ("gateway_id",)
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
def __init__(self, gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GenerateGatewayClientCertificateResponse(_message.Message):
|
||||
__slots__ = ("tls_cert", "tls_key", "ca_cert", "expires_at")
|
||||
TLS_CERT_FIELD_NUMBER: _ClassVar[int]
|
||||
TLS_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
CA_CERT_FIELD_NUMBER: _ClassVar[int]
|
||||
EXPIRES_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
tls_cert: str
|
||||
tls_key: str
|
||||
ca_cert: str
|
||||
expires_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, tls_cert: _Optional[str] = ..., tls_key: _Optional[str] = ..., ca_cert: _Optional[str] = ..., expires_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetGatewayMetricsRequest(_message.Message):
|
||||
__slots__ = ("gateway_id", "start", "end", "aggregation")
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
START_FIELD_NUMBER: _ClassVar[int]
|
||||
END_FIELD_NUMBER: _ClassVar[int]
|
||||
AGGREGATION_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
start: _timestamp_pb2.Timestamp
|
||||
end: _timestamp_pb2.Timestamp
|
||||
aggregation: _common_pb2.Aggregation
|
||||
def __init__(self, gateway_id: _Optional[str] = ..., start: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., aggregation: _Optional[_Union[_common_pb2.Aggregation, str]] = ...) -> None: ...
|
||||
|
||||
class GetGatewayMetricsResponse(_message.Message):
|
||||
__slots__ = ("rx_packets", "tx_packets", "tx_packets_per_freq", "rx_packets_per_freq", "tx_packets_per_dr", "rx_packets_per_dr", "tx_packets_per_status")
|
||||
RX_PACKETS_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_FREQ_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
rx_packets: _common_pb2.Metric
|
||||
tx_packets: _common_pb2.Metric
|
||||
tx_packets_per_freq: _common_pb2.Metric
|
||||
rx_packets_per_freq: _common_pb2.Metric
|
||||
tx_packets_per_dr: _common_pb2.Metric
|
||||
rx_packets_per_dr: _common_pb2.Metric
|
||||
tx_packets_per_status: _common_pb2.Metric
|
||||
def __init__(self, rx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_freq: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., rx_packets_per_dr: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ..., tx_packets_per_status: _Optional[_Union[_common_pb2.Metric, _Mapping]] = ...) -> None: ...
|
@ -1,275 +0,0 @@
|
||||
# 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.GetMetrics = channel.unary_unary(
|
||||
'/api.GatewayService/GetMetrics',
|
||||
request_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.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 GetMetrics(self, request, context):
|
||||
"""GetMetrics returns the gateway metrics.
|
||||
"""
|
||||
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,
|
||||
),
|
||||
'GetMetrics': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetMetrics,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.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 GetMetrics(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/GetMetrics',
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_gateway__pb2.GetGatewayMetricsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
107
api/python/src/chirpstack_api/api/internal_pb2.py
vendored
107
api/python/src/chirpstack_api/api/internal_pb2.py
vendored
File diff suppressed because one or more lines are too long
348
api/python/src/chirpstack_api/api/internal_pb2.pyi
vendored
348
api/python/src/chirpstack_api/api/internal_pb2.pyi
vendored
@ -1,348 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.api import user_pb2 as _user_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class ApiKey(_message.Message):
|
||||
__slots__ = ("id", "name", "is_admin", "tenant_id")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
is_admin: bool
|
||||
tenant_id: str
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., is_admin: bool = ..., tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class CreateApiKeyRequest(_message.Message):
|
||||
__slots__ = ("api_key",)
|
||||
API_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
api_key: ApiKey
|
||||
def __init__(self, api_key: _Optional[_Union[ApiKey, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateApiKeyResponse(_message.Message):
|
||||
__slots__ = ("id", "token")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
token: str
|
||||
def __init__(self, id: _Optional[str] = ..., token: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class DeleteApiKeyRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListApiKeysRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "is_admin", "tenant_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
is_admin: bool
|
||||
tenant_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., is_admin: bool = ..., tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListApiKeysResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[ApiKey]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[ApiKey, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class UserTenantLink(_message.Message):
|
||||
__slots__ = ("created_at", "updated_at", "tenant_id", "is_admin", "is_device_admin", "is_gateway_admin")
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
tenant_id: str
|
||||
is_admin: bool
|
||||
is_device_admin: bool
|
||||
is_gateway_admin: bool
|
||||
def __init__(self, created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., tenant_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ...
|
||||
|
||||
class LoginRequest(_message.Message):
|
||||
__slots__ = ("email", "password")
|
||||
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
||||
email: str
|
||||
password: str
|
||||
def __init__(self, email: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class LoginResponse(_message.Message):
|
||||
__slots__ = ("jwt",)
|
||||
JWT_FIELD_NUMBER: _ClassVar[int]
|
||||
jwt: str
|
||||
def __init__(self, jwt: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ProfileResponse(_message.Message):
|
||||
__slots__ = ("user", "tenants")
|
||||
USER_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANTS_FIELD_NUMBER: _ClassVar[int]
|
||||
user: _user_pb2.User
|
||||
tenants: _containers.RepeatedCompositeFieldContainer[UserTenantLink]
|
||||
def __init__(self, user: _Optional[_Union[_user_pb2.User, _Mapping]] = ..., tenants: _Optional[_Iterable[_Union[UserTenantLink, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class GlobalSearchRequest(_message.Message):
|
||||
__slots__ = ("search", "limit", "offset")
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
search: str
|
||||
limit: int
|
||||
offset: int
|
||||
def __init__(self, search: _Optional[str] = ..., limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GlobalSearchResponse(_message.Message):
|
||||
__slots__ = ("result",)
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
result: _containers.RepeatedCompositeFieldContainer[GlobalSearchResult]
|
||||
def __init__(self, result: _Optional[_Iterable[_Union[GlobalSearchResult, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class GlobalSearchResult(_message.Message):
|
||||
__slots__ = ("kind", "score", "tenant_id", "tenant_name", "application_id", "application_name", "device_dev_eui", "device_name", "gateway_id", "gateway_name")
|
||||
KIND_FIELD_NUMBER: _ClassVar[int]
|
||||
SCORE_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
kind: str
|
||||
score: float
|
||||
tenant_id: str
|
||||
tenant_name: str
|
||||
application_id: str
|
||||
application_name: str
|
||||
device_dev_eui: str
|
||||
device_name: str
|
||||
gateway_id: str
|
||||
gateway_name: str
|
||||
def __init__(self, kind: _Optional[str] = ..., score: _Optional[float] = ..., tenant_id: _Optional[str] = ..., tenant_name: _Optional[str] = ..., application_id: _Optional[str] = ..., application_name: _Optional[str] = ..., device_dev_eui: _Optional[str] = ..., device_name: _Optional[str] = ..., gateway_id: _Optional[str] = ..., gateway_name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class SettingsResponse(_message.Message):
|
||||
__slots__ = ("openid_connect", "oauth2")
|
||||
OPENID_CONNECT_FIELD_NUMBER: _ClassVar[int]
|
||||
OAUTH2_FIELD_NUMBER: _ClassVar[int]
|
||||
openid_connect: OpenIdConnect
|
||||
oauth2: OAuth2
|
||||
def __init__(self, openid_connect: _Optional[_Union[OpenIdConnect, _Mapping]] = ..., oauth2: _Optional[_Union[OAuth2, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class OpenIdConnect(_message.Message):
|
||||
__slots__ = ("enabled", "login_url", "login_label", "logout_url", "login_redirect")
|
||||
ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_LABEL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGOUT_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_REDIRECT_FIELD_NUMBER: _ClassVar[int]
|
||||
enabled: bool
|
||||
login_url: str
|
||||
login_label: str
|
||||
logout_url: str
|
||||
login_redirect: bool
|
||||
def __init__(self, enabled: bool = ..., login_url: _Optional[str] = ..., login_label: _Optional[str] = ..., logout_url: _Optional[str] = ..., login_redirect: bool = ...) -> None: ...
|
||||
|
||||
class OAuth2(_message.Message):
|
||||
__slots__ = ("enabled", "login_url", "login_label", "logout_url", "login_redirect")
|
||||
ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_LABEL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGOUT_URL_FIELD_NUMBER: _ClassVar[int]
|
||||
LOGIN_REDIRECT_FIELD_NUMBER: _ClassVar[int]
|
||||
enabled: bool
|
||||
login_url: str
|
||||
login_label: str
|
||||
logout_url: str
|
||||
login_redirect: bool
|
||||
def __init__(self, enabled: bool = ..., login_url: _Optional[str] = ..., login_label: _Optional[str] = ..., logout_url: _Optional[str] = ..., login_redirect: bool = ...) -> None: ...
|
||||
|
||||
class OpenIdConnectLoginRequest(_message.Message):
|
||||
__slots__ = ("code", "state")
|
||||
CODE_FIELD_NUMBER: _ClassVar[int]
|
||||
STATE_FIELD_NUMBER: _ClassVar[int]
|
||||
code: str
|
||||
state: str
|
||||
def __init__(self, code: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class OpenIdConnectLoginResponse(_message.Message):
|
||||
__slots__ = ("token",)
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
token: str
|
||||
def __init__(self, token: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class OAuth2LoginRequest(_message.Message):
|
||||
__slots__ = ("code", "state")
|
||||
CODE_FIELD_NUMBER: _ClassVar[int]
|
||||
STATE_FIELD_NUMBER: _ClassVar[int]
|
||||
code: str
|
||||
state: str
|
||||
def __init__(self, code: _Optional[str] = ..., state: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class OAuth2LoginResponse(_message.Message):
|
||||
__slots__ = ("token",)
|
||||
TOKEN_FIELD_NUMBER: _ClassVar[int]
|
||||
token: str
|
||||
def __init__(self, token: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDevicesSummaryRequest(_message.Message):
|
||||
__slots__ = ("tenant_id",)
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
def __init__(self, tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetDevicesSummaryResponse(_message.Message):
|
||||
__slots__ = ("active_count", "inactive_count", "dr_count", "never_seen_count")
|
||||
class DrCountEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: int
|
||||
value: int
|
||||
def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ...
|
||||
ACTIVE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
INACTIVE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
NEVER_SEEN_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
active_count: int
|
||||
inactive_count: int
|
||||
dr_count: _containers.ScalarMap[int, int]
|
||||
never_seen_count: int
|
||||
def __init__(self, active_count: _Optional[int] = ..., inactive_count: _Optional[int] = ..., dr_count: _Optional[_Mapping[int, int]] = ..., never_seen_count: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GetGatewaysSummaryRequest(_message.Message):
|
||||
__slots__ = ("tenant_id",)
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
def __init__(self, tenant_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetGatewaysSummaryResponse(_message.Message):
|
||||
__slots__ = ("online_count", "offline_count", "never_seen_count")
|
||||
ONLINE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFLINE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
NEVER_SEEN_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
online_count: int
|
||||
offline_count: int
|
||||
never_seen_count: int
|
||||
def __init__(self, online_count: _Optional[int] = ..., offline_count: _Optional[int] = ..., never_seen_count: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class LogItem(_message.Message):
|
||||
__slots__ = ("id", "time", "description", "body", "properties")
|
||||
class PropertiesEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
BODY_FIELD_NUMBER: _ClassVar[int]
|
||||
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
description: str
|
||||
body: str
|
||||
properties: _containers.ScalarMap[str, str]
|
||||
def __init__(self, id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., description: _Optional[str] = ..., body: _Optional[str] = ..., properties: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class StreamGatewayFramesRequest(_message.Message):
|
||||
__slots__ = ("gateway_id",)
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
def __init__(self, gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class StreamDeviceFramesRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class StreamDeviceEventsRequest(_message.Message):
|
||||
__slots__ = ("dev_eui",)
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListRegionsResponse(_message.Message):
|
||||
__slots__ = ("regions",)
|
||||
REGIONS_FIELD_NUMBER: _ClassVar[int]
|
||||
regions: _containers.RepeatedCompositeFieldContainer[RegionListItem]
|
||||
def __init__(self, regions: _Optional[_Iterable[_Union[RegionListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class RegionListItem(_message.Message):
|
||||
__slots__ = ("id", "region", "description")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
region: _common_pb2.Region
|
||||
description: str
|
||||
def __init__(self, id: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., description: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetRegionRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetRegionResponse(_message.Message):
|
||||
__slots__ = ("id", "region", "user_info", "uplink_channels", "rx1_delay", "rx1_dr_offset", "rx2_dr", "rx2_frequency", "class_b_ping_slot_dr", "class_b_ping_slot_frequency", "description")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_CHANNELS_FIELD_NUMBER: _ClassVar[int]
|
||||
RX1_DELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
RX1_DR_OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
RX2_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
RX2_FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_DR_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
region: _common_pb2.Region
|
||||
user_info: str
|
||||
uplink_channels: _containers.RepeatedCompositeFieldContainer[RegionChannel]
|
||||
rx1_delay: int
|
||||
rx1_dr_offset: int
|
||||
rx2_dr: int
|
||||
rx2_frequency: int
|
||||
class_b_ping_slot_dr: int
|
||||
class_b_ping_slot_frequency: int
|
||||
description: str
|
||||
def __init__(self, id: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., user_info: _Optional[str] = ..., uplink_channels: _Optional[_Iterable[_Union[RegionChannel, _Mapping]]] = ..., rx1_delay: _Optional[int] = ..., rx1_dr_offset: _Optional[int] = ..., rx2_dr: _Optional[int] = ..., rx2_frequency: _Optional[int] = ..., class_b_ping_slot_dr: _Optional[int] = ..., class_b_ping_slot_frequency: _Optional[int] = ..., description: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RegionChannel(_message.Message):
|
||||
__slots__ = ("frequency", "dr_min", "dr_max")
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_MIN_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_MAX_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency: int
|
||||
dr_min: int
|
||||
dr_max: int
|
||||
def __init__(self, frequency: _Optional[int] = ..., dr_min: _Optional[int] = ..., dr_max: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GetVersionResponse(_message.Message):
|
||||
__slots__ = ("version",)
|
||||
VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
version: str
|
||||
def __init__(self, version: _Optional[str] = ...) -> None: ...
|
@ -1,615 +0,0 @@
|
||||
# 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.OAuth2Login = channel.unary_unary(
|
||||
'/api.InternalService/OAuth2Login',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.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,
|
||||
)
|
||||
self.ListRegions = channel.unary_unary(
|
||||
'/api.InternalService/ListRegions',
|
||||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.FromString,
|
||||
)
|
||||
self.GetRegion = channel.unary_unary(
|
||||
'/api.InternalService/GetRegion',
|
||||
request_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.FromString,
|
||||
)
|
||||
self.GetVersion = channel.unary_unary(
|
||||
'/api.InternalService/GetVersion',
|
||||
request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.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 OAuth2Login(self, request, context):
|
||||
"""OAuth2 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 ListRegions(self, request, context):
|
||||
"""ListRegions lists the available (configured) regions.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetRegion(self, request, context):
|
||||
"""GetRegion returns the region details for the given region.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def GetVersion(self, request, context):
|
||||
"""GetVersion returns the ChirpStack version.
|
||||
"""
|
||||
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,
|
||||
),
|
||||
'OAuth2Login': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.OAuth2Login,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.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,
|
||||
),
|
||||
'ListRegions': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListRegions,
|
||||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.SerializeToString,
|
||||
),
|
||||
'GetRegion': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetRegion,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.SerializeToString,
|
||||
),
|
||||
'GetVersion': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.GetVersion,
|
||||
request_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.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 OAuth2Login(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/OAuth2Login',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.OAuth2LoginResponse.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)
|
||||
|
||||
@staticmethod
|
||||
def ListRegions(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/ListRegions',
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.ListRegionsResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetRegion(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/GetRegion',
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetRegionRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetRegionResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def GetVersion(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/GetVersion',
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_internal__pb2.GetVersionResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
File diff suppressed because one or more lines are too long
@ -1,207 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class MulticastGroupType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
CLASS_C: _ClassVar[MulticastGroupType]
|
||||
CLASS_B: _ClassVar[MulticastGroupType]
|
||||
|
||||
class MulticastGroupSchedulingType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
DELAY: _ClassVar[MulticastGroupSchedulingType]
|
||||
GPS_TIME: _ClassVar[MulticastGroupSchedulingType]
|
||||
CLASS_C: MulticastGroupType
|
||||
CLASS_B: MulticastGroupType
|
||||
DELAY: MulticastGroupSchedulingType
|
||||
GPS_TIME: MulticastGroupSchedulingType
|
||||
|
||||
class MulticastGroup(_message.Message):
|
||||
__slots__ = ("id", "name", "application_id", "region", "mc_addr", "mc_nwk_s_key", "mc_app_s_key", "f_cnt", "group_type", "dr", "frequency", "class_b_ping_slot_period", "class_b_ping_slot_nb_k", "class_c_scheduling_type")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
MC_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
MC_NWK_S_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
MC_APP_S_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_FIELD_NUMBER: _ClassVar[int]
|
||||
GROUP_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_FIELD_NUMBER: _ClassVar[int]
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_PERIOD_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_B_PING_SLOT_NB_K_FIELD_NUMBER: _ClassVar[int]
|
||||
CLASS_C_SCHEDULING_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
application_id: str
|
||||
region: _common_pb2.Region
|
||||
mc_addr: str
|
||||
mc_nwk_s_key: str
|
||||
mc_app_s_key: str
|
||||
f_cnt: int
|
||||
group_type: MulticastGroupType
|
||||
dr: int
|
||||
frequency: int
|
||||
class_b_ping_slot_period: int
|
||||
class_b_ping_slot_nb_k: int
|
||||
class_c_scheduling_type: MulticastGroupSchedulingType
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., application_id: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., mc_addr: _Optional[str] = ..., mc_nwk_s_key: _Optional[str] = ..., mc_app_s_key: _Optional[str] = ..., f_cnt: _Optional[int] = ..., group_type: _Optional[_Union[MulticastGroupType, str]] = ..., dr: _Optional[int] = ..., frequency: _Optional[int] = ..., class_b_ping_slot_period: _Optional[int] = ..., class_b_ping_slot_nb_k: _Optional[int] = ..., class_c_scheduling_type: _Optional[_Union[MulticastGroupSchedulingType, str]] = ...) -> None: ...
|
||||
|
||||
class MulticastGroupListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "name", "region", "group_type")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
REGION_FIELD_NUMBER: _ClassVar[int]
|
||||
GROUP_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
region: _common_pb2.Region
|
||||
group_type: MulticastGroupType
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., region: _Optional[_Union[_common_pb2.Region, str]] = ..., group_type: _Optional[_Union[MulticastGroupType, str]] = ...) -> None: ...
|
||||
|
||||
class CreateMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group",)
|
||||
MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group: MulticastGroup
|
||||
def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateMulticastGroupResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetMulticastGroupResponse(_message.Message):
|
||||
__slots__ = ("multicast_group", "created_at", "updated_at")
|
||||
MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group: MulticastGroup
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group",)
|
||||
MULTICAST_GROUP_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group: MulticastGroup
|
||||
def __init__(self, multicast_group: _Optional[_Union[MulticastGroup, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListMulticastGroupsRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "application_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
application_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListMulticastGroupsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[MulticastGroupListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[MulticastGroupListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class AddDeviceToMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id", "dev_eui")
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
dev_eui: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ..., dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RemoveDeviceFromMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id", "dev_eui")
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
dev_eui: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ..., dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class AddGatewayToMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id", "gateway_id")
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
gateway_id: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ..., gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RemoveGatewayFromMulticastGroupRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id", "gateway_id")
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
gateway_id: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ..., gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class MulticastGroupQueueItem(_message.Message):
|
||||
__slots__ = ("multicast_group_id", "f_cnt", "f_port", "data")
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_FIELD_NUMBER: _ClassVar[int]
|
||||
F_PORT_FIELD_NUMBER: _ClassVar[int]
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
f_cnt: int
|
||||
f_port: int
|
||||
data: bytes
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ..., f_cnt: _Optional[int] = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class EnqueueMulticastGroupQueueItemRequest(_message.Message):
|
||||
__slots__ = ("queue_item",)
|
||||
QUEUE_ITEM_FIELD_NUMBER: _ClassVar[int]
|
||||
queue_item: MulticastGroupQueueItem
|
||||
def __init__(self, queue_item: _Optional[_Union[MulticastGroupQueueItem, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class EnqueueMulticastGroupQueueItemResponse(_message.Message):
|
||||
__slots__ = ("f_cnt",)
|
||||
F_CNT_FIELD_NUMBER: _ClassVar[int]
|
||||
f_cnt: int
|
||||
def __init__(self, f_cnt: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class FlushMulticastGroupQueueRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id",)
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListMulticastGroupQueueRequest(_message.Message):
|
||||
__slots__ = ("multicast_group_id",)
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
multicast_group_id: str
|
||||
def __init__(self, multicast_group_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListMulticastGroupQueueResponse(_message.Message):
|
||||
__slots__ = ("items",)
|
||||
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
||||
items: _containers.RepeatedCompositeFieldContainer[MulticastGroupQueueItem]
|
||||
def __init__(self, items: _Optional[_Iterable[_Union[MulticastGroupQueueItem, _Mapping]]] = ...) -> None: ...
|
@ -1,445 +0,0 @@
|
||||
# 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.AddGateway = channel.unary_unary(
|
||||
'/api.MulticastGroupService/AddGateway',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.RemoveGateway = channel.unary_unary(
|
||||
'/api.MulticastGroupService/RemoveGateway',
|
||||
request_serializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.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 AddGateway(self, request, context):
|
||||
"""Add a gateway to the multicast group.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RemoveGateway(self, request, context):
|
||||
"""Remove a gateway 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 multicast 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,
|
||||
),
|
||||
'AddGateway': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.AddGateway,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'RemoveGateway': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.RemoveGateway,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.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 AddGateway(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/AddGateway',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.AddGatewayToMulticastGroupRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def RemoveGateway(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/RemoveGateway',
|
||||
chirpstack__api_dot_api_dot_multicast__group__pb2.RemoveGatewayFromMulticastGroupRequest.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)
|
54
api/python/src/chirpstack_api/api/relay_pb2.py
vendored
54
api/python/src/chirpstack_api/api/relay_pb2.py
vendored
@ -1,54 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/relay.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1e\x63hirpstack-api/api/relay.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bgoogle/protobuf/empty.proto\".\n\rRelayListItem\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"J\n\x11ListRelaysRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x16\n\x0e\x61pplication_id\x18\x03 \x01(\t\"M\n\x12ListRelaysResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12\"\n\x06result\x18\x02 \x03(\x0b\x32\x12.api.RelayListItem\"F\n\x15\x41\x64\x64RelayDeviceRequest\x12\x15\n\rrelay_dev_eui\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_dev_eui\x18\x02 \x01(\t\"I\n\x18RemoveRelayDeviceRequest\x12\x15\n\rrelay_dev_eui\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65vice_dev_eui\x18\x02 \x01(\t\"O\n\x17ListRelayDevicesRequest\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x0e\n\x06offset\x18\x02 \x01(\r\x12\x15\n\rrelay_dev_eui\x18\x03 \x01(\t\"d\n\x13RelayDeviceListItem\x12\x0f\n\x07\x64\x65v_eui\x18\x01 \x01(\t\x12.\n\ncreated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x03 \x01(\t\"Y\n\x18ListRelayDevicesResponse\x12\x13\n\x0btotal_count\x18\x01 \x01(\r\x12(\n\x06result\x18\x02 \x03(\x0b\x32\x18.api.RelayDeviceListItem2\xc4\x03\n\x0cRelayService\x12L\n\x04List\x12\x16.api.ListRelaysRequest\x1a\x17.api.ListRelaysResponse\"\x13\x82\xd3\xe4\x93\x02\r\x12\x0b/api/relays\x12o\n\tAddDevice\x12\x1a.api.AddRelayDeviceRequest\x1a\x16.google.protobuf.Empty\".\x82\xd3\xe4\x93\x02(\"#/api/relays/{relay_dev_eui}/devices:\x01*\x12|\n\x0cRemoveDevice\x12\x1d.api.RemoveRelayDeviceRequest\x1a\x16.google.protobuf.Empty\"5\x82\xd3\xe4\x93\x02/*-/api/relays/{relay_dev_eui}/devices/{dev_eui}\x12w\n\x0bListDevices\x12\x1c.api.ListRelayDevicesRequest\x1a\x1d.api.ListRelayDevicesResponse\"+\x82\xd3\xe4\x93\x02%\x12#/api/relays/{relay_dev_eui}/devicesBb\n\x11io.chirpstack.apiB\nRelayProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.relay_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\nRelayProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api'
|
||||
_globals['_RELAYSERVICE'].methods_by_name['List']._options = None
|
||||
_globals['_RELAYSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\r\022\013/api/relays'
|
||||
_globals['_RELAYSERVICE'].methods_by_name['AddDevice']._options = None
|
||||
_globals['_RELAYSERVICE'].methods_by_name['AddDevice']._serialized_options = b'\202\323\344\223\002(\"#/api/relays/{relay_dev_eui}/devices:\001*'
|
||||
_globals['_RELAYSERVICE'].methods_by_name['RemoveDevice']._options = None
|
||||
_globals['_RELAYSERVICE'].methods_by_name['RemoveDevice']._serialized_options = b'\202\323\344\223\002/*-/api/relays/{relay_dev_eui}/devices/{dev_eui}'
|
||||
_globals['_RELAYSERVICE'].methods_by_name['ListDevices']._options = None
|
||||
_globals['_RELAYSERVICE'].methods_by_name['ListDevices']._serialized_options = b'\202\323\344\223\002%\022#/api/relays/{relay_dev_eui}/devices'
|
||||
_globals['_RELAYLISTITEM']._serialized_start=131
|
||||
_globals['_RELAYLISTITEM']._serialized_end=177
|
||||
_globals['_LISTRELAYSREQUEST']._serialized_start=179
|
||||
_globals['_LISTRELAYSREQUEST']._serialized_end=253
|
||||
_globals['_LISTRELAYSRESPONSE']._serialized_start=255
|
||||
_globals['_LISTRELAYSRESPONSE']._serialized_end=332
|
||||
_globals['_ADDRELAYDEVICEREQUEST']._serialized_start=334
|
||||
_globals['_ADDRELAYDEVICEREQUEST']._serialized_end=404
|
||||
_globals['_REMOVERELAYDEVICEREQUEST']._serialized_start=406
|
||||
_globals['_REMOVERELAYDEVICEREQUEST']._serialized_end=479
|
||||
_globals['_LISTRELAYDEVICESREQUEST']._serialized_start=481
|
||||
_globals['_LISTRELAYDEVICESREQUEST']._serialized_end=560
|
||||
_globals['_RELAYDEVICELISTITEM']._serialized_start=562
|
||||
_globals['_RELAYDEVICELISTITEM']._serialized_end=662
|
||||
_globals['_LISTRELAYDEVICESRESPONSE']._serialized_start=664
|
||||
_globals['_LISTRELAYDEVICESRESPONSE']._serialized_end=753
|
||||
_globals['_RELAYSERVICE']._serialized_start=756
|
||||
_globals['_RELAYSERVICE']._serialized_end=1208
|
||||
# @@protoc_insertion_point(module_scope)
|
79
api/python/src/chirpstack_api/api/relay_pb2.pyi
vendored
79
api/python/src/chirpstack_api/api/relay_pb2.pyi
vendored
@ -1,79 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class RelayListItem(_message.Message):
|
||||
__slots__ = ("dev_eui", "name")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
name: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListRelaysRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "application_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
application_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., application_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListRelaysResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[RelayListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[RelayListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class AddRelayDeviceRequest(_message.Message):
|
||||
__slots__ = ("relay_dev_eui", "device_dev_eui")
|
||||
RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
relay_dev_eui: str
|
||||
device_dev_eui: str
|
||||
def __init__(self, relay_dev_eui: _Optional[str] = ..., device_dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RemoveRelayDeviceRequest(_message.Message):
|
||||
__slots__ = ("relay_dev_eui", "device_dev_eui")
|
||||
RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
relay_dev_eui: str
|
||||
device_dev_eui: str
|
||||
def __init__(self, relay_dev_eui: _Optional[str] = ..., device_dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListRelayDevicesRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "relay_dev_eui")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
relay_dev_eui: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., relay_dev_eui: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RelayDeviceListItem(_message.Message):
|
||||
__slots__ = ("dev_eui", "created_at", "name")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListRelayDevicesResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[RelayDeviceListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[RelayDeviceListItem, _Mapping]]] = ...) -> None: ...
|
173
api/python/src/chirpstack_api/api/relay_pb2_grpc.py
vendored
173
api/python/src/chirpstack_api/api/relay_pb2_grpc.py
vendored
@ -1,173 +0,0 @@
|
||||
# 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 relay_pb2 as chirpstack__api_dot_api_dot_relay__pb2
|
||||
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
|
||||
|
||||
|
||||
class RelayServiceStub(object):
|
||||
"""RelayService is the service providing API methos for managing relays.
|
||||
"""
|
||||
|
||||
def __init__(self, channel):
|
||||
"""Constructor.
|
||||
|
||||
Args:
|
||||
channel: A grpc.Channel.
|
||||
"""
|
||||
self.List = channel.unary_unary(
|
||||
'/api.RelayService/List',
|
||||
request_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.FromString,
|
||||
)
|
||||
self.AddDevice = channel.unary_unary(
|
||||
'/api.RelayService/AddDevice',
|
||||
request_serializer=chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.RemoveDevice = channel.unary_unary(
|
||||
'/api.RelayService/RemoveDevice',
|
||||
request_serializer=chirpstack__api_dot_api_dot_relay__pb2.RemoveRelayDeviceRequest.SerializeToString,
|
||||
response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
)
|
||||
self.ListDevices = channel.unary_unary(
|
||||
'/api.RelayService/ListDevices',
|
||||
request_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.SerializeToString,
|
||||
response_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.FromString,
|
||||
)
|
||||
|
||||
|
||||
class RelayServiceServicer(object):
|
||||
"""RelayService is the service providing API methos for managing relays.
|
||||
"""
|
||||
|
||||
def List(self, request, context):
|
||||
"""List lists the relays for the given application id.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def AddDevice(self, request, context):
|
||||
"""AddDevice adds the given device to the relay.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def RemoveDevice(self, request, context):
|
||||
"""RemoveDevice removes the given device from the relay.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
def ListDevices(self, request, context):
|
||||
"""ListDevices lists the devices for the given relay.
|
||||
"""
|
||||
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
||||
context.set_details('Method not implemented!')
|
||||
raise NotImplementedError('Method not implemented!')
|
||||
|
||||
|
||||
def add_RelayServiceServicer_to_server(servicer, server):
|
||||
rpc_method_handlers = {
|
||||
'List': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.List,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.SerializeToString,
|
||||
),
|
||||
'AddDevice': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.AddDevice,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.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_relay__pb2.RemoveRelayDeviceRequest.FromString,
|
||||
response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
|
||||
),
|
||||
'ListDevices': grpc.unary_unary_rpc_method_handler(
|
||||
servicer.ListDevices,
|
||||
request_deserializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.FromString,
|
||||
response_serializer=chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.SerializeToString,
|
||||
),
|
||||
}
|
||||
generic_handler = grpc.method_handlers_generic_handler(
|
||||
'api.RelayService', rpc_method_handlers)
|
||||
server.add_generic_rpc_handlers((generic_handler,))
|
||||
|
||||
|
||||
# This class is part of an EXPERIMENTAL API.
|
||||
class RelayService(object):
|
||||
"""RelayService is the service providing API methos for managing relays.
|
||||
"""
|
||||
|
||||
@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.RelayService/List',
|
||||
chirpstack__api_dot_api_dot_relay__pb2.ListRelaysRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_relay__pb2.ListRelaysResponse.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.RelayService/AddDevice',
|
||||
chirpstack__api_dot_api_dot_relay__pb2.AddRelayDeviceRequest.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.RelayService/RemoveDevice',
|
||||
chirpstack__api_dot_api_dot_relay__pb2.RemoveRelayDeviceRequest.SerializeToString,
|
||||
google_dot_protobuf_dot_empty__pb2.Empty.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
||||
|
||||
@staticmethod
|
||||
def ListDevices(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.RelayService/ListDevices',
|
||||
chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesRequest.SerializeToString,
|
||||
chirpstack__api_dot_api_dot_relay__pb2.ListRelayDevicesResponse.FromString,
|
||||
options, channel_credentials,
|
||||
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
92
api/python/src/chirpstack_api/api/tenant_pb2.py
vendored
92
api/python/src/chirpstack_api/api/tenant_pb2.py
vendored
File diff suppressed because one or more lines are too long
212
api/python/src/chirpstack_api/api/tenant_pb2.pyi
vendored
212
api/python/src/chirpstack_api/api/tenant_pb2.pyi
vendored
@ -1,212 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Tenant(_message.Message):
|
||||
__slots__ = ("id", "name", "description", "can_have_gateways", "max_gateway_count", "max_device_count", "private_gateways_up", "private_gateways_down", "tags")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
CAN_HAVE_GATEWAYS_FIELD_NUMBER: _ClassVar[int]
|
||||
MAX_GATEWAY_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAX_DEVICE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
PRIVATE_GATEWAYS_UP_FIELD_NUMBER: _ClassVar[int]
|
||||
PRIVATE_GATEWAYS_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
name: str
|
||||
description: str
|
||||
can_have_gateways: bool
|
||||
max_gateway_count: int
|
||||
max_device_count: int
|
||||
private_gateways_up: bool
|
||||
private_gateways_down: bool
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
def __init__(self, id: _Optional[str] = ..., name: _Optional[str] = ..., description: _Optional[str] = ..., can_have_gateways: bool = ..., max_gateway_count: _Optional[int] = ..., max_device_count: _Optional[int] = ..., private_gateways_up: bool = ..., private_gateways_down: bool = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class TenantListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "name", "can_have_gateways", "private_gateways_up", "private_gateways_down", "max_gateway_count", "max_device_count")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
CAN_HAVE_GATEWAYS_FIELD_NUMBER: _ClassVar[int]
|
||||
PRIVATE_GATEWAYS_UP_FIELD_NUMBER: _ClassVar[int]
|
||||
PRIVATE_GATEWAYS_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
MAX_GATEWAY_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAX_DEVICE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
name: str
|
||||
can_have_gateways: bool
|
||||
private_gateways_up: bool
|
||||
private_gateways_down: bool
|
||||
max_gateway_count: int
|
||||
max_device_count: int
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., name: _Optional[str] = ..., can_have_gateways: bool = ..., private_gateways_up: bool = ..., private_gateways_down: bool = ..., max_gateway_count: _Optional[int] = ..., max_device_count: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class CreateTenantRequest(_message.Message):
|
||||
__slots__ = ("tenant",)
|
||||
TENANT_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant: Tenant
|
||||
def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class CreateTenantResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetTenantRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetTenantResponse(_message.Message):
|
||||
__slots__ = ("tenant", "created_at", "updated_at")
|
||||
TENANT_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant: Tenant
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateTenantRequest(_message.Message):
|
||||
__slots__ = ("tenant",)
|
||||
TENANT_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant: Tenant
|
||||
def __init__(self, tenant: _Optional[_Union[Tenant, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteTenantRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListTenantsRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset", "search", "user_id")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
SEARCH_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
search: str
|
||||
user_id: str
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ..., search: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListTenantsResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[TenantListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[TenantListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class TenantUser(_message.Message):
|
||||
__slots__ = ("tenant_id", "user_id", "is_admin", "is_device_admin", "is_gateway_admin", "email")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
user_id: str
|
||||
is_admin: bool
|
||||
is_device_admin: bool
|
||||
is_gateway_admin: bool
|
||||
email: str
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ..., email: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class TenantUserListItem(_message.Message):
|
||||
__slots__ = ("tenant_id", "user_id", "created_at", "updated_at", "email", "is_admin", "is_device_admin", "is_gateway_admin")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
user_id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
email: str
|
||||
is_admin: bool
|
||||
is_device_admin: bool
|
||||
is_gateway_admin: bool
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ...
|
||||
|
||||
class AddTenantUserRequest(_message.Message):
|
||||
__slots__ = ("tenant_user",)
|
||||
TENANT_USER_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_user: TenantUser
|
||||
def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GetTenantUserRequest(_message.Message):
|
||||
__slots__ = ("tenant_id", "user_id")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
user_id: str
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetTenantUserResponse(_message.Message):
|
||||
__slots__ = ("tenant_user", "created_at", "updated_at")
|
||||
TENANT_USER_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_user: TenantUser
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateTenantUserRequest(_message.Message):
|
||||
__slots__ = ("tenant_user",)
|
||||
TENANT_USER_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_user: TenantUser
|
||||
def __init__(self, tenant_user: _Optional[_Union[TenantUser, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteTenantUserRequest(_message.Message):
|
||||
__slots__ = ("tenant_id", "user_id")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
user_id: str
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., user_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListTenantUsersRequest(_message.Message):
|
||||
__slots__ = ("tenant_id", "limit", "offset")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
limit: int
|
||||
offset: int
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class ListTenantUsersResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[TenantUserListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[TenantUserListItem, _Mapping]]] = ...) -> None: ...
|
378
api/python/src/chirpstack_api/api/tenant_pb2_grpc.py
vendored
378
api/python/src/chirpstack_api/api/tenant_pb2_grpc.py
vendored
@ -1,378 +0,0 @@
|
||||
# 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)
|
66
api/python/src/chirpstack_api/api/user_pb2.py
vendored
66
api/python/src/chirpstack_api/api/user_pb2.py
vendored
@ -1,66 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/api/user.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1d\x63hirpstack-api/api/user.proto\x12\x03\x61pi\x1a\x1cgoogle/api/annotations.proto\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\x97\x04\n\x0bUserService\x12P\n\x06\x43reate\x12\x16.api.CreateUserRequest\x1a\x17.api.CreateUserResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/api/users:\x01*\x12I\n\x03Get\x12\x13.api.GetUserRequest\x1a\x14.api.GetUserResponse\"\x17\x82\xd3\xe4\x93\x02\x11\x12\x0f/api/users/{id}\x12Y\n\x06Update\x12\x16.api.UpdateUserRequest\x1a\x16.google.protobuf.Empty\"\x1f\x82\xd3\xe4\x93\x02\x19\x1a\x14/api/users/{user.id}:\x01*\x12Q\n\x06\x44\x65lete\x12\x16.api.DeleteUserRequest\x1a\x16.google.protobuf.Empty\"\x17\x82\xd3\xe4\x93\x02\x11*\x0f/api/users/{id}\x12I\n\x04List\x12\x15.api.ListUsersRequest\x1a\x16.api.ListUsersResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/api/users\x12r\n\x0eUpdatePassword\x12\x1e.api.UpdateUserPasswordRequest\x1a\x16.google.protobuf.Empty\"(\x82\xd3\xe4\x93\x02\"\"\x1d/api/users/{user_id}/password:\x01*Ba\n\x11io.chirpstack.apiB\tUserProtoP\x01Z.github.com/chirpstack/chirpstack/api/go/v4/api\xaa\x02\x0e\x43hirpstack.Apib\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.api.user_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\tUserProtoP\001Z.github.com/chirpstack/chirpstack/api/go/v4/api\252\002\016Chirpstack.Api'
|
||||
_globals['_USERSERVICE'].methods_by_name['Create']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\017\"\n/api/users:\001*'
|
||||
_globals['_USERSERVICE'].methods_by_name['Get']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['Get']._serialized_options = b'\202\323\344\223\002\021\022\017/api/users/{id}'
|
||||
_globals['_USERSERVICE'].methods_by_name['Update']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['Update']._serialized_options = b'\202\323\344\223\002\031\032\024/api/users/{user.id}:\001*'
|
||||
_globals['_USERSERVICE'].methods_by_name['Delete']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['Delete']._serialized_options = b'\202\323\344\223\002\021*\017/api/users/{id}'
|
||||
_globals['_USERSERVICE'].methods_by_name['List']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002\014\022\n/api/users'
|
||||
_globals['_USERSERVICE'].methods_by_name['UpdatePassword']._options = None
|
||||
_globals['_USERSERVICE'].methods_by_name['UpdatePassword']._serialized_options = b'\202\323\344\223\002\"\"\035/api/users/{user_id}/password:\001*'
|
||||
_globals['_USER']._serialized_start=130
|
||||
_globals['_USER']._serialized_end=214
|
||||
_globals['_USERLISTITEM']._serialized_start=217
|
||||
_globals['_USERLISTITEM']._serialized_end=391
|
||||
_globals['_USERTENANT']._serialized_start=393
|
||||
_globals['_USERTENANT']._serialized_end=493
|
||||
_globals['_CREATEUSERREQUEST']._serialized_start=495
|
||||
_globals['_CREATEUSERREQUEST']._serialized_end=591
|
||||
_globals['_CREATEUSERRESPONSE']._serialized_start=593
|
||||
_globals['_CREATEUSERRESPONSE']._serialized_end=625
|
||||
_globals['_GETUSERREQUEST']._serialized_start=627
|
||||
_globals['_GETUSERREQUEST']._serialized_end=655
|
||||
_globals['_GETUSERRESPONSE']._serialized_start=658
|
||||
_globals['_GETUSERRESPONSE']._serialized_end=796
|
||||
_globals['_UPDATEUSERREQUEST']._serialized_start=798
|
||||
_globals['_UPDATEUSERREQUEST']._serialized_end=842
|
||||
_globals['_DELETEUSERREQUEST']._serialized_start=844
|
||||
_globals['_DELETEUSERREQUEST']._serialized_end=875
|
||||
_globals['_LISTUSERSREQUEST']._serialized_start=877
|
||||
_globals['_LISTUSERSREQUEST']._serialized_end=926
|
||||
_globals['_LISTUSERSRESPONSE']._serialized_start=928
|
||||
_globals['_LISTUSERSRESPONSE']._serialized_end=1003
|
||||
_globals['_UPDATEUSERPASSWORDREQUEST']._serialized_start=1005
|
||||
_globals['_UPDATEUSERPASSWORDREQUEST']._serialized_end=1067
|
||||
_globals['_USERSERVICE']._serialized_start=1070
|
||||
_globals['_USERSERVICE']._serialized_end=1605
|
||||
# @@protoc_insertion_point(module_scope)
|
119
api/python/src/chirpstack_api/api/user_pb2.pyi
vendored
119
api/python/src/chirpstack_api/api/user_pb2.pyi
vendored
@ -1,119 +0,0 @@
|
||||
from google.api import annotations_pb2 as _annotations_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import empty_pb2 as _empty_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class User(_message.Message):
|
||||
__slots__ = ("id", "is_admin", "is_active", "email", "note")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ACTIVE_FIELD_NUMBER: _ClassVar[int]
|
||||
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
NOTE_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
is_admin: bool
|
||||
is_active: bool
|
||||
email: str
|
||||
note: str
|
||||
def __init__(self, id: _Optional[str] = ..., is_admin: bool = ..., is_active: bool = ..., email: _Optional[str] = ..., note: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class UserListItem(_message.Message):
|
||||
__slots__ = ("id", "created_at", "updated_at", "email", "is_admin", "is_active")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
EMAIL_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ACTIVE_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
email: str
|
||||
is_admin: bool
|
||||
is_active: bool
|
||||
def __init__(self, id: _Optional[str] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., email: _Optional[str] = ..., is_admin: bool = ..., is_active: bool = ...) -> None: ...
|
||||
|
||||
class UserTenant(_message.Message):
|
||||
__slots__ = ("tenant_id", "is_admin", "is_device_admin", "is_gateway_admin")
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_DEVICE_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
IS_GATEWAY_ADMIN_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
is_admin: bool
|
||||
is_device_admin: bool
|
||||
is_gateway_admin: bool
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., is_admin: bool = ..., is_device_admin: bool = ..., is_gateway_admin: bool = ...) -> None: ...
|
||||
|
||||
class CreateUserRequest(_message.Message):
|
||||
__slots__ = ("user", "password", "tenants")
|
||||
USER_FIELD_NUMBER: _ClassVar[int]
|
||||
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANTS_FIELD_NUMBER: _ClassVar[int]
|
||||
user: User
|
||||
password: str
|
||||
tenants: _containers.RepeatedCompositeFieldContainer[UserTenant]
|
||||
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ..., password: _Optional[str] = ..., tenants: _Optional[_Iterable[_Union[UserTenant, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class CreateUserResponse(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetUserRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class GetUserResponse(_message.Message):
|
||||
__slots__ = ("user", "created_at", "updated_at")
|
||||
USER_FIELD_NUMBER: _ClassVar[int]
|
||||
CREATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPDATED_AT_FIELD_NUMBER: _ClassVar[int]
|
||||
user: User
|
||||
created_at: _timestamp_pb2.Timestamp
|
||||
updated_at: _timestamp_pb2.Timestamp
|
||||
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ..., created_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., updated_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UpdateUserRequest(_message.Message):
|
||||
__slots__ = ("user",)
|
||||
USER_FIELD_NUMBER: _ClassVar[int]
|
||||
user: User
|
||||
def __init__(self, user: _Optional[_Union[User, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DeleteUserRequest(_message.Message):
|
||||
__slots__ = ("id",)
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
def __init__(self, id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class ListUsersRequest(_message.Message):
|
||||
__slots__ = ("limit", "offset")
|
||||
LIMIT_FIELD_NUMBER: _ClassVar[int]
|
||||
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
||||
limit: int
|
||||
offset: int
|
||||
def __init__(self, limit: _Optional[int] = ..., offset: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class ListUsersResponse(_message.Message):
|
||||
__slots__ = ("total_count", "result")
|
||||
TOTAL_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_FIELD_NUMBER: _ClassVar[int]
|
||||
total_count: int
|
||||
result: _containers.RepeatedCompositeFieldContainer[UserListItem]
|
||||
def __init__(self, total_count: _Optional[int] = ..., result: _Optional[_Iterable[_Union[UserListItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class UpdateUserPasswordRequest(_message.Message):
|
||||
__slots__ = ("user_id", "password")
|
||||
USER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
||||
user_id: str
|
||||
password: str
|
||||
def __init__(self, user_id: _Optional[str] = ..., password: _Optional[str] = ...) -> None: ...
|
241
api/python/src/chirpstack_api/api/user_pb2_grpc.py
vendored
241
api/python/src/chirpstack_api/api/user_pb2_grpc.py
vendored
@ -1,241 +0,0 @@
|
||||
# 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)
|
@ -1,54 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/common/common.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"chirpstack-api/common/common.proto\x12\x06\x63ommon\x1a\x1fgoogle/protobuf/timestamp.proto\"{\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\"\x91\x01\n\x06Metric\x12\x0c\n\x04name\x18\x01 \x01(\t\x12.\n\ntimestamps\x18\x02 \x03(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x08\x64\x61tasets\x18\x03 \x03(\x0b\x32\x15.common.MetricDataset\x12 \n\x04kind\x18\x04 \x01(\x0e\x32\x12.common.MetricKind\",\n\rMetricDataset\x12\r\n\x05label\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x03(\x02\"S\n\x11JoinServerContext\x12\x16\n\x0esession_key_id\x18\x01 \x01(\t\x12&\n\tapp_s_key\x18\x02 \x01(\x0b\x32\x13.common.KeyEnvelope*,\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*+\n\x0b\x41ggregation\x12\x08\n\x04HOUR\x10\x00\x12\x07\n\x03\x44\x41Y\x10\x01\x12\t\n\x05MONTH\x10\x02*2\n\nMetricKind\x12\x0b\n\x07\x43OUNTER\x10\x00\x12\x0c\n\x08\x41\x42SOLUTE\x10\x01\x12\t\n\x05GAUGE\x10\x02*4\n\x0b\x44\x65viceClass\x12\x0b\n\x07\x43LASS_A\x10\x00\x12\x0b\n\x07\x43LASS_B\x10\x01\x12\x0b\n\x07\x43LASS_C\x10\x02\x42i\n\x11io.chirpstack.apiB\x0b\x43ommonProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/common\xaa\x02\x11\x43hirpstack.Commonb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.common.common_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\021io.chirpstack.apiB\013CommonProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/common\252\002\021Chirpstack.Common'
|
||||
_globals['_MODULATION']._serialized_start=534
|
||||
_globals['_MODULATION']._serialized_end=578
|
||||
_globals['_REGION']._serialized_start=581
|
||||
_globals['_REGION']._serialized_end=751
|
||||
_globals['_MTYPE']._serialized_start=754
|
||||
_globals['_MTYPE']._serialized_end=933
|
||||
_globals['_MACVERSION']._serialized_start=935
|
||||
_globals['_MACVERSION']._serialized_end=1061
|
||||
_globals['_REGPARAMSREVISION']._serialized_start=1063
|
||||
_globals['_REGPARAMSREVISION']._serialized_end=1164
|
||||
_globals['_LOCATIONSOURCE']._serialized_start=1167
|
||||
_globals['_LOCATIONSOURCE']._serialized_end=1309
|
||||
_globals['_AGGREGATION']._serialized_start=1311
|
||||
_globals['_AGGREGATION']._serialized_end=1354
|
||||
_globals['_METRICKIND']._serialized_start=1356
|
||||
_globals['_METRICKIND']._serialized_end=1406
|
||||
_globals['_DEVICECLASS']._serialized_start=1408
|
||||
_globals['_DEVICECLASS']._serialized_end=1460
|
||||
_globals['_LOCATION']._serialized_start=79
|
||||
_globals['_LOCATION']._serialized_end=202
|
||||
_globals['_KEYENVELOPE']._serialized_start=204
|
||||
_globals['_KEYENVELOPE']._serialized_end=253
|
||||
_globals['_METRIC']._serialized_start=256
|
||||
_globals['_METRIC']._serialized_end=401
|
||||
_globals['_METRICDATASET']._serialized_start=403
|
||||
_globals['_METRICDATASET']._serialized_end=447
|
||||
_globals['_JOINSERVERCONTEXT']._serialized_start=449
|
||||
_globals['_JOINSERVERCONTEXT']._serialized_end=532
|
||||
# @@protoc_insertion_point(module_scope)
|
191
api/python/src/chirpstack_api/common/common_pb2.pyi
vendored
191
api/python/src/chirpstack_api/common/common_pb2.pyi
vendored
@ -1,191 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class Modulation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
LORA: _ClassVar[Modulation]
|
||||
FSK: _ClassVar[Modulation]
|
||||
LR_FHSS: _ClassVar[Modulation]
|
||||
|
||||
class Region(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
EU868: _ClassVar[Region]
|
||||
US915: _ClassVar[Region]
|
||||
CN779: _ClassVar[Region]
|
||||
EU433: _ClassVar[Region]
|
||||
AU915: _ClassVar[Region]
|
||||
CN470: _ClassVar[Region]
|
||||
AS923: _ClassVar[Region]
|
||||
AS923_2: _ClassVar[Region]
|
||||
AS923_3: _ClassVar[Region]
|
||||
AS923_4: _ClassVar[Region]
|
||||
KR920: _ClassVar[Region]
|
||||
IN865: _ClassVar[Region]
|
||||
RU864: _ClassVar[Region]
|
||||
ISM2400: _ClassVar[Region]
|
||||
|
||||
class MType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
JOIN_REQUEST: _ClassVar[MType]
|
||||
JOIN_ACCEPT: _ClassVar[MType]
|
||||
UNCONFIRMED_DATA_UP: _ClassVar[MType]
|
||||
UNCONFIRMED_DATA_DOWN: _ClassVar[MType]
|
||||
CONFIRMED_DATA_UP: _ClassVar[MType]
|
||||
CONFIRMED_DATA_DOWN: _ClassVar[MType]
|
||||
REJOIN_REQUEST: _ClassVar[MType]
|
||||
PROPRIETARY: _ClassVar[MType]
|
||||
|
||||
class MacVersion(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
LORAWAN_1_0_0: _ClassVar[MacVersion]
|
||||
LORAWAN_1_0_1: _ClassVar[MacVersion]
|
||||
LORAWAN_1_0_2: _ClassVar[MacVersion]
|
||||
LORAWAN_1_0_3: _ClassVar[MacVersion]
|
||||
LORAWAN_1_0_4: _ClassVar[MacVersion]
|
||||
LORAWAN_1_1_0: _ClassVar[MacVersion]
|
||||
|
||||
class RegParamsRevision(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
A: _ClassVar[RegParamsRevision]
|
||||
B: _ClassVar[RegParamsRevision]
|
||||
RP002_1_0_0: _ClassVar[RegParamsRevision]
|
||||
RP002_1_0_1: _ClassVar[RegParamsRevision]
|
||||
RP002_1_0_2: _ClassVar[RegParamsRevision]
|
||||
RP002_1_0_3: _ClassVar[RegParamsRevision]
|
||||
|
||||
class LocationSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
UNKNOWN: _ClassVar[LocationSource]
|
||||
GPS: _ClassVar[LocationSource]
|
||||
CONFIG: _ClassVar[LocationSource]
|
||||
GEO_RESOLVER_TDOA: _ClassVar[LocationSource]
|
||||
GEO_RESOLVER_RSSI: _ClassVar[LocationSource]
|
||||
GEO_RESOLVER_GNSS: _ClassVar[LocationSource]
|
||||
GEO_RESOLVER_WIFI: _ClassVar[LocationSource]
|
||||
|
||||
class Aggregation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
HOUR: _ClassVar[Aggregation]
|
||||
DAY: _ClassVar[Aggregation]
|
||||
MONTH: _ClassVar[Aggregation]
|
||||
|
||||
class MetricKind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
COUNTER: _ClassVar[MetricKind]
|
||||
ABSOLUTE: _ClassVar[MetricKind]
|
||||
GAUGE: _ClassVar[MetricKind]
|
||||
|
||||
class DeviceClass(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
CLASS_A: _ClassVar[DeviceClass]
|
||||
CLASS_B: _ClassVar[DeviceClass]
|
||||
CLASS_C: _ClassVar[DeviceClass]
|
||||
LORA: Modulation
|
||||
FSK: Modulation
|
||||
LR_FHSS: Modulation
|
||||
EU868: Region
|
||||
US915: Region
|
||||
CN779: Region
|
||||
EU433: Region
|
||||
AU915: Region
|
||||
CN470: Region
|
||||
AS923: Region
|
||||
AS923_2: Region
|
||||
AS923_3: Region
|
||||
AS923_4: Region
|
||||
KR920: Region
|
||||
IN865: Region
|
||||
RU864: Region
|
||||
ISM2400: Region
|
||||
JOIN_REQUEST: MType
|
||||
JOIN_ACCEPT: MType
|
||||
UNCONFIRMED_DATA_UP: MType
|
||||
UNCONFIRMED_DATA_DOWN: MType
|
||||
CONFIRMED_DATA_UP: MType
|
||||
CONFIRMED_DATA_DOWN: MType
|
||||
REJOIN_REQUEST: MType
|
||||
PROPRIETARY: MType
|
||||
LORAWAN_1_0_0: MacVersion
|
||||
LORAWAN_1_0_1: MacVersion
|
||||
LORAWAN_1_0_2: MacVersion
|
||||
LORAWAN_1_0_3: MacVersion
|
||||
LORAWAN_1_0_4: MacVersion
|
||||
LORAWAN_1_1_0: MacVersion
|
||||
A: RegParamsRevision
|
||||
B: RegParamsRevision
|
||||
RP002_1_0_0: RegParamsRevision
|
||||
RP002_1_0_1: RegParamsRevision
|
||||
RP002_1_0_2: RegParamsRevision
|
||||
RP002_1_0_3: RegParamsRevision
|
||||
UNKNOWN: LocationSource
|
||||
GPS: LocationSource
|
||||
CONFIG: LocationSource
|
||||
GEO_RESOLVER_TDOA: LocationSource
|
||||
GEO_RESOLVER_RSSI: LocationSource
|
||||
GEO_RESOLVER_GNSS: LocationSource
|
||||
GEO_RESOLVER_WIFI: LocationSource
|
||||
HOUR: Aggregation
|
||||
DAY: Aggregation
|
||||
MONTH: Aggregation
|
||||
COUNTER: MetricKind
|
||||
ABSOLUTE: MetricKind
|
||||
GAUGE: MetricKind
|
||||
CLASS_A: DeviceClass
|
||||
CLASS_B: DeviceClass
|
||||
CLASS_C: DeviceClass
|
||||
|
||||
class Location(_message.Message):
|
||||
__slots__ = ("latitude", "longitude", "altitude", "source", "accuracy")
|
||||
LATITUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
LONGITUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
ALTITUDE_FIELD_NUMBER: _ClassVar[int]
|
||||
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
||||
ACCURACY_FIELD_NUMBER: _ClassVar[int]
|
||||
latitude: float
|
||||
longitude: float
|
||||
altitude: float
|
||||
source: LocationSource
|
||||
accuracy: float
|
||||
def __init__(self, latitude: _Optional[float] = ..., longitude: _Optional[float] = ..., altitude: _Optional[float] = ..., source: _Optional[_Union[LocationSource, str]] = ..., accuracy: _Optional[float] = ...) -> None: ...
|
||||
|
||||
class KeyEnvelope(_message.Message):
|
||||
__slots__ = ("kek_label", "aes_key")
|
||||
KEK_LABEL_FIELD_NUMBER: _ClassVar[int]
|
||||
AES_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
kek_label: str
|
||||
aes_key: bytes
|
||||
def __init__(self, kek_label: _Optional[str] = ..., aes_key: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class Metric(_message.Message):
|
||||
__slots__ = ("name", "timestamps", "datasets", "kind")
|
||||
NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
TIMESTAMPS_FIELD_NUMBER: _ClassVar[int]
|
||||
DATASETS_FIELD_NUMBER: _ClassVar[int]
|
||||
KIND_FIELD_NUMBER: _ClassVar[int]
|
||||
name: str
|
||||
timestamps: _containers.RepeatedCompositeFieldContainer[_timestamp_pb2.Timestamp]
|
||||
datasets: _containers.RepeatedCompositeFieldContainer[MetricDataset]
|
||||
kind: MetricKind
|
||||
def __init__(self, name: _Optional[str] = ..., timestamps: _Optional[_Iterable[_Union[_timestamp_pb2.Timestamp, _Mapping]]] = ..., datasets: _Optional[_Iterable[_Union[MetricDataset, _Mapping]]] = ..., kind: _Optional[_Union[MetricKind, str]] = ...) -> None: ...
|
||||
|
||||
class MetricDataset(_message.Message):
|
||||
__slots__ = ("label", "data")
|
||||
LABEL_FIELD_NUMBER: _ClassVar[int]
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
label: str
|
||||
data: _containers.RepeatedScalarFieldContainer[float]
|
||||
def __init__(self, label: _Optional[str] = ..., data: _Optional[_Iterable[float]] = ...) -> None: ...
|
||||
|
||||
class JoinServerContext(_message.Message):
|
||||
__slots__ = ("session_key_id", "app_s_key")
|
||||
SESSION_KEY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
APP_S_KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
session_key_id: str
|
||||
app_s_key: KeyEnvelope
|
||||
def __init__(self, session_key_id: _Optional[str] = ..., app_s_key: _Optional[_Union[KeyEnvelope, _Mapping]] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
135
api/python/src/chirpstack_api/gw/gw_pb2.py
vendored
135
api/python/src/chirpstack_api/gw/gw_pb2.py
vendored
File diff suppressed because one or more lines are too long
603
api/python/src/chirpstack_api/gw/gw_pb2.pyi
vendored
603
api/python/src/chirpstack_api/gw/gw_pb2.pyi
vendored
@ -1,603 +0,0 @@
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import duration_pb2 as _duration_pb2
|
||||
from google.protobuf import struct_pb2 as _struct_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class CodeRate(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
CR_UNDEFINED: _ClassVar[CodeRate]
|
||||
CR_4_5: _ClassVar[CodeRate]
|
||||
CR_4_6: _ClassVar[CodeRate]
|
||||
CR_4_7: _ClassVar[CodeRate]
|
||||
CR_4_8: _ClassVar[CodeRate]
|
||||
CR_3_8: _ClassVar[CodeRate]
|
||||
CR_2_6: _ClassVar[CodeRate]
|
||||
CR_1_4: _ClassVar[CodeRate]
|
||||
CR_1_6: _ClassVar[CodeRate]
|
||||
CR_5_6: _ClassVar[CodeRate]
|
||||
CR_LI_4_5: _ClassVar[CodeRate]
|
||||
CR_LI_4_6: _ClassVar[CodeRate]
|
||||
CR_LI_4_8: _ClassVar[CodeRate]
|
||||
|
||||
class DownlinkTiming(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
IMMEDIATELY: _ClassVar[DownlinkTiming]
|
||||
DELAY: _ClassVar[DownlinkTiming]
|
||||
GPS_EPOCH: _ClassVar[DownlinkTiming]
|
||||
|
||||
class FineTimestampType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NONE: _ClassVar[FineTimestampType]
|
||||
ENCRYPTED: _ClassVar[FineTimestampType]
|
||||
PLAIN: _ClassVar[FineTimestampType]
|
||||
|
||||
class CRCStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
NO_CRC: _ClassVar[CRCStatus]
|
||||
BAD_CRC: _ClassVar[CRCStatus]
|
||||
CRC_OK: _ClassVar[CRCStatus]
|
||||
|
||||
class TxAckStatus(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
IGNORED: _ClassVar[TxAckStatus]
|
||||
OK: _ClassVar[TxAckStatus]
|
||||
TOO_LATE: _ClassVar[TxAckStatus]
|
||||
TOO_EARLY: _ClassVar[TxAckStatus]
|
||||
COLLISION_PACKET: _ClassVar[TxAckStatus]
|
||||
COLLISION_BEACON: _ClassVar[TxAckStatus]
|
||||
TX_FREQ: _ClassVar[TxAckStatus]
|
||||
TX_POWER: _ClassVar[TxAckStatus]
|
||||
GPS_UNLOCKED: _ClassVar[TxAckStatus]
|
||||
QUEUE_FULL: _ClassVar[TxAckStatus]
|
||||
INTERNAL_ERROR: _ClassVar[TxAckStatus]
|
||||
CR_UNDEFINED: CodeRate
|
||||
CR_4_5: CodeRate
|
||||
CR_4_6: CodeRate
|
||||
CR_4_7: CodeRate
|
||||
CR_4_8: CodeRate
|
||||
CR_3_8: CodeRate
|
||||
CR_2_6: CodeRate
|
||||
CR_1_4: CodeRate
|
||||
CR_1_6: CodeRate
|
||||
CR_5_6: CodeRate
|
||||
CR_LI_4_5: CodeRate
|
||||
CR_LI_4_6: CodeRate
|
||||
CR_LI_4_8: CodeRate
|
||||
IMMEDIATELY: DownlinkTiming
|
||||
DELAY: DownlinkTiming
|
||||
GPS_EPOCH: DownlinkTiming
|
||||
NONE: FineTimestampType
|
||||
ENCRYPTED: FineTimestampType
|
||||
PLAIN: FineTimestampType
|
||||
NO_CRC: CRCStatus
|
||||
BAD_CRC: CRCStatus
|
||||
CRC_OK: CRCStatus
|
||||
IGNORED: TxAckStatus
|
||||
OK: TxAckStatus
|
||||
TOO_LATE: TxAckStatus
|
||||
TOO_EARLY: TxAckStatus
|
||||
COLLISION_PACKET: TxAckStatus
|
||||
COLLISION_BEACON: TxAckStatus
|
||||
TX_FREQ: TxAckStatus
|
||||
TX_POWER: TxAckStatus
|
||||
GPS_UNLOCKED: TxAckStatus
|
||||
QUEUE_FULL: TxAckStatus
|
||||
INTERNAL_ERROR: TxAckStatus
|
||||
|
||||
class Modulation(_message.Message):
|
||||
__slots__ = ("lora", "fsk", "lr_fhss")
|
||||
LORA_FIELD_NUMBER: _ClassVar[int]
|
||||
FSK_FIELD_NUMBER: _ClassVar[int]
|
||||
LR_FHSS_FIELD_NUMBER: _ClassVar[int]
|
||||
lora: LoraModulationInfo
|
||||
fsk: FskModulationInfo
|
||||
lr_fhss: LrFhssModulationInfo
|
||||
def __init__(self, lora: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., lr_fhss: _Optional[_Union[LrFhssModulationInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UplinkTxInfoLegacy(_message.Message):
|
||||
__slots__ = ("frequency", "modulation", "lora_modulation_info", "fsk_modulation_info", "lr_fhss_modulation_info")
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
LORA_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
FSK_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
LR_FHSS_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency: int
|
||||
modulation: _common_pb2.Modulation
|
||||
lora_modulation_info: LoraModulationInfo
|
||||
fsk_modulation_info: FskModulationInfo
|
||||
lr_fhss_modulation_info: LrFhssModulationInfo
|
||||
def __init__(self, frequency: _Optional[int] = ..., modulation: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_info: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk_modulation_info: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., lr_fhss_modulation_info: _Optional[_Union[LrFhssModulationInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UplinkTxInfo(_message.Message):
|
||||
__slots__ = ("frequency", "modulation")
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency: int
|
||||
modulation: Modulation
|
||||
def __init__(self, frequency: _Optional[int] = ..., modulation: _Optional[_Union[Modulation, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class LoraModulationInfo(_message.Message):
|
||||
__slots__ = ("bandwidth", "spreading_factor", "code_rate_legacy", "code_rate", "polarization_inversion", "preamble", "no_crc")
|
||||
BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
||||
SPREADING_FACTOR_FIELD_NUMBER: _ClassVar[int]
|
||||
CODE_RATE_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
CODE_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
POLARIZATION_INVERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
PREAMBLE_FIELD_NUMBER: _ClassVar[int]
|
||||
NO_CRC_FIELD_NUMBER: _ClassVar[int]
|
||||
bandwidth: int
|
||||
spreading_factor: int
|
||||
code_rate_legacy: str
|
||||
code_rate: CodeRate
|
||||
polarization_inversion: bool
|
||||
preamble: int
|
||||
no_crc: bool
|
||||
def __init__(self, bandwidth: _Optional[int] = ..., spreading_factor: _Optional[int] = ..., code_rate_legacy: _Optional[str] = ..., code_rate: _Optional[_Union[CodeRate, str]] = ..., polarization_inversion: bool = ..., preamble: _Optional[int] = ..., no_crc: bool = ...) -> None: ...
|
||||
|
||||
class FskModulationInfo(_message.Message):
|
||||
__slots__ = ("frequency_deviation", "datarate")
|
||||
FREQUENCY_DEVIATION_FIELD_NUMBER: _ClassVar[int]
|
||||
DATARATE_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency_deviation: int
|
||||
datarate: int
|
||||
def __init__(self, frequency_deviation: _Optional[int] = ..., datarate: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class LrFhssModulationInfo(_message.Message):
|
||||
__slots__ = ("operating_channel_width", "code_rate_legacy", "code_rate", "grid_steps")
|
||||
OPERATING_CHANNEL_WIDTH_FIELD_NUMBER: _ClassVar[int]
|
||||
CODE_RATE_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
CODE_RATE_FIELD_NUMBER: _ClassVar[int]
|
||||
GRID_STEPS_FIELD_NUMBER: _ClassVar[int]
|
||||
operating_channel_width: int
|
||||
code_rate_legacy: str
|
||||
code_rate: CodeRate
|
||||
grid_steps: int
|
||||
def __init__(self, operating_channel_width: _Optional[int] = ..., code_rate_legacy: _Optional[str] = ..., code_rate: _Optional[_Union[CodeRate, str]] = ..., grid_steps: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class EncryptedFineTimestamp(_message.Message):
|
||||
__slots__ = ("aes_key_index", "encrypted_ns", "fpga_id")
|
||||
AES_KEY_INDEX_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCRYPTED_NS_FIELD_NUMBER: _ClassVar[int]
|
||||
FPGA_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
aes_key_index: int
|
||||
encrypted_ns: bytes
|
||||
fpga_id: bytes
|
||||
def __init__(self, aes_key_index: _Optional[int] = ..., encrypted_ns: _Optional[bytes] = ..., fpga_id: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class PlainFineTimestamp(_message.Message):
|
||||
__slots__ = ("time",)
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
time: _timestamp_pb2.Timestamp
|
||||
def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GatewayStats(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "time", "location", "config_version", "rx_packets_received", "rx_packets_received_ok", "tx_packets_received", "tx_packets_emitted", "metadata", "tx_packets_per_frequency", "rx_packets_per_frequency", "tx_packets_per_modulation", "rx_packets_per_modulation", "tx_packets_per_status")
|
||||
class MetadataEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
class TxPacketsPerFrequencyEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: int
|
||||
value: int
|
||||
def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ...
|
||||
class RxPacketsPerFrequencyEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: int
|
||||
value: int
|
||||
def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ...
|
||||
class TxPacketsPerStatusEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: int
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[int] = ...) -> None: ...
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
CONFIG_VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_RECEIVED_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_RECEIVED_OK_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_RECEIVED_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_EMITTED_FIELD_NUMBER: _ClassVar[int]
|
||||
METADATA_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_PACKETS_PER_MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_PACKETS_PER_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
location: _common_pb2.Location
|
||||
config_version: str
|
||||
rx_packets_received: int
|
||||
rx_packets_received_ok: int
|
||||
tx_packets_received: int
|
||||
tx_packets_emitted: int
|
||||
metadata: _containers.ScalarMap[str, str]
|
||||
tx_packets_per_frequency: _containers.ScalarMap[int, int]
|
||||
rx_packets_per_frequency: _containers.ScalarMap[int, int]
|
||||
tx_packets_per_modulation: _containers.RepeatedCompositeFieldContainer[PerModulationCount]
|
||||
rx_packets_per_modulation: _containers.RepeatedCompositeFieldContainer[PerModulationCount]
|
||||
tx_packets_per_status: _containers.ScalarMap[str, int]
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., config_version: _Optional[str] = ..., rx_packets_received: _Optional[int] = ..., rx_packets_received_ok: _Optional[int] = ..., tx_packets_received: _Optional[int] = ..., tx_packets_emitted: _Optional[int] = ..., metadata: _Optional[_Mapping[str, str]] = ..., tx_packets_per_frequency: _Optional[_Mapping[int, int]] = ..., rx_packets_per_frequency: _Optional[_Mapping[int, int]] = ..., tx_packets_per_modulation: _Optional[_Iterable[_Union[PerModulationCount, _Mapping]]] = ..., rx_packets_per_modulation: _Optional[_Iterable[_Union[PerModulationCount, _Mapping]]] = ..., tx_packets_per_status: _Optional[_Mapping[str, int]] = ...) -> None: ...
|
||||
|
||||
class PerModulationCount(_message.Message):
|
||||
__slots__ = ("modulation", "count")
|
||||
MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
modulation: Modulation
|
||||
count: int
|
||||
def __init__(self, modulation: _Optional[_Union[Modulation, _Mapping]] = ..., count: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class UplinkRxInfoLegacy(_message.Message):
|
||||
__slots__ = ("gateway_id", "time", "time_since_gps_epoch", "rssi", "lora_snr", "channel", "rf_chain", "board", "antenna", "location", "fine_timestamp_type", "encrypted_fine_timestamp", "plain_fine_timestamp", "context", "uplink_id", "crc_status", "metadata")
|
||||
class MetadataEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
||||
RSSI_FIELD_NUMBER: _ClassVar[int]
|
||||
LORA_SNR_FIELD_NUMBER: _ClassVar[int]
|
||||
CHANNEL_FIELD_NUMBER: _ClassVar[int]
|
||||
RF_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
||||
BOARD_FIELD_NUMBER: _ClassVar[int]
|
||||
ANTENNA_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
FINE_TIMESTAMP_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
ENCRYPTED_FINE_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAIN_FINE_TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
||||
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
CRC_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
METADATA_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: bytes
|
||||
time: _timestamp_pb2.Timestamp
|
||||
time_since_gps_epoch: _duration_pb2.Duration
|
||||
rssi: int
|
||||
lora_snr: float
|
||||
channel: int
|
||||
rf_chain: int
|
||||
board: int
|
||||
antenna: int
|
||||
location: _common_pb2.Location
|
||||
fine_timestamp_type: FineTimestampType
|
||||
encrypted_fine_timestamp: EncryptedFineTimestamp
|
||||
plain_fine_timestamp: PlainFineTimestamp
|
||||
context: bytes
|
||||
uplink_id: bytes
|
||||
crc_status: CRCStatus
|
||||
metadata: _containers.ScalarMap[str, str]
|
||||
def __init__(self, gateway_id: _Optional[bytes] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., rssi: _Optional[int] = ..., lora_snr: _Optional[float] = ..., channel: _Optional[int] = ..., rf_chain: _Optional[int] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., fine_timestamp_type: _Optional[_Union[FineTimestampType, str]] = ..., encrypted_fine_timestamp: _Optional[_Union[EncryptedFineTimestamp, _Mapping]] = ..., plain_fine_timestamp: _Optional[_Union[PlainFineTimestamp, _Mapping]] = ..., context: _Optional[bytes] = ..., uplink_id: _Optional[bytes] = ..., crc_status: _Optional[_Union[CRCStatus, str]] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class UplinkRxInfo(_message.Message):
|
||||
__slots__ = ("gateway_id", "uplink_id", "gw_time", "ns_time", "time_since_gps_epoch", "fine_time_since_gps_epoch", "rssi", "snr", "channel", "rf_chain", "board", "antenna", "location", "context", "metadata", "crc_status")
|
||||
class MetadataEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
UPLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GW_TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
NS_TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
||||
FINE_TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
||||
RSSI_FIELD_NUMBER: _ClassVar[int]
|
||||
SNR_FIELD_NUMBER: _ClassVar[int]
|
||||
CHANNEL_FIELD_NUMBER: _ClassVar[int]
|
||||
RF_CHAIN_FIELD_NUMBER: _ClassVar[int]
|
||||
BOARD_FIELD_NUMBER: _ClassVar[int]
|
||||
ANTENNA_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
METADATA_FIELD_NUMBER: _ClassVar[int]
|
||||
CRC_STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: str
|
||||
uplink_id: int
|
||||
gw_time: _timestamp_pb2.Timestamp
|
||||
ns_time: _timestamp_pb2.Timestamp
|
||||
time_since_gps_epoch: _duration_pb2.Duration
|
||||
fine_time_since_gps_epoch: _duration_pb2.Duration
|
||||
rssi: int
|
||||
snr: float
|
||||
channel: int
|
||||
rf_chain: int
|
||||
board: int
|
||||
antenna: int
|
||||
location: _common_pb2.Location
|
||||
context: bytes
|
||||
metadata: _containers.ScalarMap[str, str]
|
||||
crc_status: CRCStatus
|
||||
def __init__(self, gateway_id: _Optional[str] = ..., uplink_id: _Optional[int] = ..., gw_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., ns_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., fine_time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ..., rssi: _Optional[int] = ..., snr: _Optional[float] = ..., channel: _Optional[int] = ..., rf_chain: _Optional[int] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ..., context: _Optional[bytes] = ..., metadata: _Optional[_Mapping[str, str]] = ..., crc_status: _Optional[_Union[CRCStatus, str]] = ...) -> None: ...
|
||||
|
||||
class DownlinkTxInfoLegacy(_message.Message):
|
||||
__slots__ = ("gateway_id", "frequency", "power", "modulation", "lora_modulation_info", "fsk_modulation_info", "board", "antenna", "timing", "immediately_timing_info", "delay_timing_info", "gps_epoch_timing_info", "context")
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
POWER_FIELD_NUMBER: _ClassVar[int]
|
||||
MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
LORA_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
FSK_MODULATION_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
BOARD_FIELD_NUMBER: _ClassVar[int]
|
||||
ANTENNA_FIELD_NUMBER: _ClassVar[int]
|
||||
TIMING_FIELD_NUMBER: _ClassVar[int]
|
||||
IMMEDIATELY_TIMING_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DELAY_TIMING_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
GPS_EPOCH_TIMING_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id: bytes
|
||||
frequency: int
|
||||
power: int
|
||||
modulation: _common_pb2.Modulation
|
||||
lora_modulation_info: LoraModulationInfo
|
||||
fsk_modulation_info: FskModulationInfo
|
||||
board: int
|
||||
antenna: int
|
||||
timing: DownlinkTiming
|
||||
immediately_timing_info: ImmediatelyTimingInfo
|
||||
delay_timing_info: DelayTimingInfo
|
||||
gps_epoch_timing_info: GPSEpochTimingInfo
|
||||
context: bytes
|
||||
def __init__(self, gateway_id: _Optional[bytes] = ..., frequency: _Optional[int] = ..., power: _Optional[int] = ..., modulation: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_info: _Optional[_Union[LoraModulationInfo, _Mapping]] = ..., fsk_modulation_info: _Optional[_Union[FskModulationInfo, _Mapping]] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., timing: _Optional[_Union[DownlinkTiming, str]] = ..., immediately_timing_info: _Optional[_Union[ImmediatelyTimingInfo, _Mapping]] = ..., delay_timing_info: _Optional[_Union[DelayTimingInfo, _Mapping]] = ..., gps_epoch_timing_info: _Optional[_Union[GPSEpochTimingInfo, _Mapping]] = ..., context: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class DownlinkTxInfo(_message.Message):
|
||||
__slots__ = ("frequency", "power", "modulation", "board", "antenna", "timing", "context")
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
POWER_FIELD_NUMBER: _ClassVar[int]
|
||||
MODULATION_FIELD_NUMBER: _ClassVar[int]
|
||||
BOARD_FIELD_NUMBER: _ClassVar[int]
|
||||
ANTENNA_FIELD_NUMBER: _ClassVar[int]
|
||||
TIMING_FIELD_NUMBER: _ClassVar[int]
|
||||
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency: int
|
||||
power: int
|
||||
modulation: Modulation
|
||||
board: int
|
||||
antenna: int
|
||||
timing: Timing
|
||||
context: bytes
|
||||
def __init__(self, frequency: _Optional[int] = ..., power: _Optional[int] = ..., modulation: _Optional[_Union[Modulation, _Mapping]] = ..., board: _Optional[int] = ..., antenna: _Optional[int] = ..., timing: _Optional[_Union[Timing, _Mapping]] = ..., context: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class Timing(_message.Message):
|
||||
__slots__ = ("immediately", "delay", "gps_epoch")
|
||||
IMMEDIATELY_FIELD_NUMBER: _ClassVar[int]
|
||||
DELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
GPS_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
||||
immediately: ImmediatelyTimingInfo
|
||||
delay: DelayTimingInfo
|
||||
gps_epoch: GPSEpochTimingInfo
|
||||
def __init__(self, immediately: _Optional[_Union[ImmediatelyTimingInfo, _Mapping]] = ..., delay: _Optional[_Union[DelayTimingInfo, _Mapping]] = ..., gps_epoch: _Optional[_Union[GPSEpochTimingInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class ImmediatelyTimingInfo(_message.Message):
|
||||
__slots__ = ()
|
||||
def __init__(self) -> None: ...
|
||||
|
||||
class DelayTimingInfo(_message.Message):
|
||||
__slots__ = ("delay",)
|
||||
DELAY_FIELD_NUMBER: _ClassVar[int]
|
||||
delay: _duration_pb2.Duration
|
||||
def __init__(self, delay: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class GPSEpochTimingInfo(_message.Message):
|
||||
__slots__ = ("time_since_gps_epoch",)
|
||||
TIME_SINCE_GPS_EPOCH_FIELD_NUMBER: _ClassVar[int]
|
||||
time_since_gps_epoch: _duration_pb2.Duration
|
||||
def __init__(self, time_since_gps_epoch: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UplinkFrame(_message.Message):
|
||||
__slots__ = ("phy_payload", "tx_info_legacy", "rx_info_legacy", "tx_info", "rx_info")
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info_legacy: UplinkTxInfoLegacy
|
||||
rx_info_legacy: UplinkRxInfoLegacy
|
||||
tx_info: UplinkTxInfo
|
||||
rx_info: UplinkRxInfo
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info_legacy: _Optional[_Union[UplinkTxInfoLegacy, _Mapping]] = ..., rx_info_legacy: _Optional[_Union[UplinkRxInfoLegacy, _Mapping]] = ..., tx_info: _Optional[_Union[UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Union[UplinkRxInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class UplinkFrameSet(_message.Message):
|
||||
__slots__ = ("phy_payload", "tx_info", "rx_info")
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info: UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[UplinkRxInfo]
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[UplinkRxInfo, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class DownlinkFrame(_message.Message):
|
||||
__slots__ = ("downlink_id", "downlink_id_legacy", "items", "gateway_id_legacy", "gateway_id")
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
downlink_id: int
|
||||
downlink_id_legacy: bytes
|
||||
items: _containers.RepeatedCompositeFieldContainer[DownlinkFrameItem]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
def __init__(self, downlink_id: _Optional[int] = ..., downlink_id_legacy: _Optional[bytes] = ..., items: _Optional[_Iterable[_Union[DownlinkFrameItem, _Mapping]]] = ..., gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class DownlinkFrameItem(_message.Message):
|
||||
__slots__ = ("phy_payload", "tx_info_legacy", "tx_info")
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info_legacy: DownlinkTxInfoLegacy
|
||||
tx_info: DownlinkTxInfo
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info_legacy: _Optional[_Union[DownlinkTxInfoLegacy, _Mapping]] = ..., tx_info: _Optional[_Union[DownlinkTxInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DownlinkTxAck(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "downlink_id", "downlink_id_legacy", "items")
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
ITEMS_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
downlink_id: int
|
||||
downlink_id_legacy: bytes
|
||||
items: _containers.RepeatedCompositeFieldContainer[DownlinkTxAckItem]
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., downlink_id: _Optional[int] = ..., downlink_id_legacy: _Optional[bytes] = ..., items: _Optional[_Iterable[_Union[DownlinkTxAckItem, _Mapping]]] = ...) -> None: ...
|
||||
|
||||
class DownlinkTxAckItem(_message.Message):
|
||||
__slots__ = ("status",)
|
||||
STATUS_FIELD_NUMBER: _ClassVar[int]
|
||||
status: TxAckStatus
|
||||
def __init__(self, status: _Optional[_Union[TxAckStatus, str]] = ...) -> None: ...
|
||||
|
||||
class GatewayConfiguration(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "version", "channels", "stats_interval")
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
VERSION_FIELD_NUMBER: _ClassVar[int]
|
||||
CHANNELS_FIELD_NUMBER: _ClassVar[int]
|
||||
STATS_INTERVAL_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
version: str
|
||||
channels: _containers.RepeatedCompositeFieldContainer[ChannelConfiguration]
|
||||
stats_interval: _duration_pb2.Duration
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., version: _Optional[str] = ..., channels: _Optional[_Iterable[_Union[ChannelConfiguration, _Mapping]]] = ..., stats_interval: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class ChannelConfiguration(_message.Message):
|
||||
__slots__ = ("frequency", "modulation_legacy", "lora_modulation_config", "fsk_modulation_config", "board", "demodulator")
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
MODULATION_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
LORA_MODULATION_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
||||
FSK_MODULATION_CONFIG_FIELD_NUMBER: _ClassVar[int]
|
||||
BOARD_FIELD_NUMBER: _ClassVar[int]
|
||||
DEMODULATOR_FIELD_NUMBER: _ClassVar[int]
|
||||
frequency: int
|
||||
modulation_legacy: _common_pb2.Modulation
|
||||
lora_modulation_config: LoraModulationConfig
|
||||
fsk_modulation_config: FskModulationConfig
|
||||
board: int
|
||||
demodulator: int
|
||||
def __init__(self, frequency: _Optional[int] = ..., modulation_legacy: _Optional[_Union[_common_pb2.Modulation, str]] = ..., lora_modulation_config: _Optional[_Union[LoraModulationConfig, _Mapping]] = ..., fsk_modulation_config: _Optional[_Union[FskModulationConfig, _Mapping]] = ..., board: _Optional[int] = ..., demodulator: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class LoraModulationConfig(_message.Message):
|
||||
__slots__ = ("bandwidth_legacy", "bandwidth", "spreading_factors")
|
||||
BANDWIDTH_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
||||
SPREADING_FACTORS_FIELD_NUMBER: _ClassVar[int]
|
||||
bandwidth_legacy: int
|
||||
bandwidth: int
|
||||
spreading_factors: _containers.RepeatedScalarFieldContainer[int]
|
||||
def __init__(self, bandwidth_legacy: _Optional[int] = ..., bandwidth: _Optional[int] = ..., spreading_factors: _Optional[_Iterable[int]] = ...) -> None: ...
|
||||
|
||||
class FskModulationConfig(_message.Message):
|
||||
__slots__ = ("bandwidth_legacy", "bandwidth", "bitrate")
|
||||
BANDWIDTH_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
BANDWIDTH_FIELD_NUMBER: _ClassVar[int]
|
||||
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
||||
bandwidth_legacy: int
|
||||
bandwidth: int
|
||||
bitrate: int
|
||||
def __init__(self, bandwidth_legacy: _Optional[int] = ..., bandwidth: _Optional[int] = ..., bitrate: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class GatewayCommandExecRequest(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "command", "exec_id", "stdin", "environment")
|
||||
class EnvironmentEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
COMMAND_FIELD_NUMBER: _ClassVar[int]
|
||||
EXEC_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
STDIN_FIELD_NUMBER: _ClassVar[int]
|
||||
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
command: str
|
||||
exec_id: int
|
||||
stdin: bytes
|
||||
environment: _containers.ScalarMap[str, str]
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., command: _Optional[str] = ..., exec_id: _Optional[int] = ..., stdin: _Optional[bytes] = ..., environment: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class GatewayCommandExecResponse(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "exec_id", "stdout", "stderr", "error")
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
EXEC_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
STDOUT_FIELD_NUMBER: _ClassVar[int]
|
||||
STDERR_FIELD_NUMBER: _ClassVar[int]
|
||||
ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
exec_id: int
|
||||
stdout: bytes
|
||||
stderr: bytes
|
||||
error: str
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., exec_id: _Optional[int] = ..., stdout: _Optional[bytes] = ..., stderr: _Optional[bytes] = ..., error: _Optional[str] = ...) -> None: ...
|
||||
|
||||
class RawPacketForwarderEvent(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "payload")
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
payload: bytes
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., payload: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class RawPacketForwarderCommand(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "payload")
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
payload: bytes
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., payload: _Optional[bytes] = ...) -> None: ...
|
||||
|
||||
class ConnState(_message.Message):
|
||||
__slots__ = ("gateway_id_legacy", "gateway_id", "state")
|
||||
class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
OFFLINE: _ClassVar[ConnState.State]
|
||||
ONLINE: _ClassVar[ConnState.State]
|
||||
OFFLINE: ConnState.State
|
||||
ONLINE: ConnState.State
|
||||
GATEWAY_ID_LEGACY_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
STATE_FIELD_NUMBER: _ClassVar[int]
|
||||
gateway_id_legacy: bytes
|
||||
gateway_id: str
|
||||
state: ConnState.State
|
||||
def __init__(self, gateway_id_legacy: _Optional[bytes] = ..., gateway_id: _Optional[str] = ..., state: _Optional[_Union[ConnState.State, str]] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,261 +0,0 @@
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import struct_pb2 as _struct_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class LogLevel(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
INFO: _ClassVar[LogLevel]
|
||||
WARNING: _ClassVar[LogLevel]
|
||||
ERROR: _ClassVar[LogLevel]
|
||||
|
||||
class LogCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
||||
__slots__ = ()
|
||||
UNKNOWN: _ClassVar[LogCode]
|
||||
DOWNLINK_PAYLOAD_SIZE: _ClassVar[LogCode]
|
||||
UPLINK_CODEC: _ClassVar[LogCode]
|
||||
DOWNLINK_CODEC: _ClassVar[LogCode]
|
||||
OTAA: _ClassVar[LogCode]
|
||||
UPLINK_F_CNT_RESET: _ClassVar[LogCode]
|
||||
UPLINK_MIC: _ClassVar[LogCode]
|
||||
UPLINK_F_CNT_RETRANSMISSION: _ClassVar[LogCode]
|
||||
DOWNLINK_GATEWAY: _ClassVar[LogCode]
|
||||
RELAY_NEW_END_DEVICE: _ClassVar[LogCode]
|
||||
F_CNT_DOWN: _ClassVar[LogCode]
|
||||
INFO: LogLevel
|
||||
WARNING: LogLevel
|
||||
ERROR: LogLevel
|
||||
UNKNOWN: LogCode
|
||||
DOWNLINK_PAYLOAD_SIZE: LogCode
|
||||
UPLINK_CODEC: LogCode
|
||||
DOWNLINK_CODEC: LogCode
|
||||
OTAA: LogCode
|
||||
UPLINK_F_CNT_RESET: LogCode
|
||||
UPLINK_MIC: LogCode
|
||||
UPLINK_F_CNT_RETRANSMISSION: LogCode
|
||||
DOWNLINK_GATEWAY: LogCode
|
||||
RELAY_NEW_END_DEVICE: LogCode
|
||||
F_CNT_DOWN: LogCode
|
||||
|
||||
class DeviceInfo(_message.Message):
|
||||
__slots__ = ("tenant_id", "tenant_name", "application_id", "application_name", "device_profile_id", "device_profile_name", "device_name", "dev_eui", "device_class_enabled", "tags")
|
||||
class TagsEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
TENANT_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TENANT_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_PROFILE_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_PROFILE_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_CLASS_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
||||
TAGS_FIELD_NUMBER: _ClassVar[int]
|
||||
tenant_id: str
|
||||
tenant_name: str
|
||||
application_id: str
|
||||
application_name: str
|
||||
device_profile_id: str
|
||||
device_profile_name: str
|
||||
device_name: str
|
||||
dev_eui: str
|
||||
device_class_enabled: _common_pb2.DeviceClass
|
||||
tags: _containers.ScalarMap[str, str]
|
||||
def __init__(self, tenant_id: _Optional[str] = ..., tenant_name: _Optional[str] = ..., application_id: _Optional[str] = ..., application_name: _Optional[str] = ..., device_profile_id: _Optional[str] = ..., device_profile_name: _Optional[str] = ..., device_name: _Optional[str] = ..., dev_eui: _Optional[str] = ..., device_class_enabled: _Optional[_Union[_common_pb2.DeviceClass, str]] = ..., tags: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class UplinkRelayRxInfo(_message.Message):
|
||||
__slots__ = ("dev_eui", "frequency", "dr", "snr", "rssi", "wor_channel")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
FREQUENCY_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_FIELD_NUMBER: _ClassVar[int]
|
||||
SNR_FIELD_NUMBER: _ClassVar[int]
|
||||
RSSI_FIELD_NUMBER: _ClassVar[int]
|
||||
WOR_CHANNEL_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
frequency: int
|
||||
dr: int
|
||||
snr: int
|
||||
rssi: int
|
||||
wor_channel: int
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., frequency: _Optional[int] = ..., dr: _Optional[int] = ..., snr: _Optional[int] = ..., rssi: _Optional[int] = ..., wor_channel: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class UplinkEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "dev_addr", "adr", "dr", "f_cnt", "f_port", "confirmed", "data", "object", "rx_info", "tx_info", "relay_rx_info", "join_server_context")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
ADR_FIELD_NUMBER: _ClassVar[int]
|
||||
DR_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_FIELD_NUMBER: _ClassVar[int]
|
||||
F_PORT_FIELD_NUMBER: _ClassVar[int]
|
||||
CONFIRMED_FIELD_NUMBER: _ClassVar[int]
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
dev_addr: str
|
||||
adr: bool
|
||||
dr: int
|
||||
f_cnt: int
|
||||
f_port: int
|
||||
confirmed: bool
|
||||
data: bytes
|
||||
object: _struct_pb2.Struct
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
relay_rx_info: UplinkRelayRxInfo
|
||||
join_server_context: _common_pb2.JoinServerContext
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., dev_addr: _Optional[str] = ..., adr: bool = ..., dr: _Optional[int] = ..., f_cnt: _Optional[int] = ..., f_port: _Optional[int] = ..., confirmed: bool = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., relay_rx_info: _Optional[_Union[UplinkRelayRxInfo, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class JoinEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "dev_addr", "relay_rx_info", "join_server_context")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
RELAY_RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
JOIN_SERVER_CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
dev_addr: str
|
||||
relay_rx_info: UplinkRelayRxInfo
|
||||
join_server_context: _common_pb2.JoinServerContext
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., dev_addr: _Optional[str] = ..., relay_rx_info: _Optional[_Union[UplinkRelayRxInfo, _Mapping]] = ..., join_server_context: _Optional[_Union[_common_pb2.JoinServerContext, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class AckEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "queue_item_id", "acknowledged", "f_cnt_down")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
QUEUE_ITEM_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
ACKNOWLEDGED_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
queue_item_id: str
|
||||
acknowledged: bool
|
||||
f_cnt_down: int
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., queue_item_id: _Optional[str] = ..., acknowledged: bool = ..., f_cnt_down: _Optional[int] = ...) -> None: ...
|
||||
|
||||
class TxAckEvent(_message.Message):
|
||||
__slots__ = ("downlink_id", "time", "device_info", "queue_item_id", "f_cnt_down", "gateway_id", "tx_info")
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
QUEUE_ITEM_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
F_CNT_DOWN_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
downlink_id: int
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
queue_item_id: str
|
||||
f_cnt_down: int
|
||||
gateway_id: str
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
def __init__(self, downlink_id: _Optional[int] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., queue_item_id: _Optional[str] = ..., f_cnt_down: _Optional[int] = ..., gateway_id: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class LogEvent(_message.Message):
|
||||
__slots__ = ("time", "device_info", "level", "code", "description", "context")
|
||||
class ContextEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
||||
CODE_FIELD_NUMBER: _ClassVar[int]
|
||||
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
||||
CONTEXT_FIELD_NUMBER: _ClassVar[int]
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
level: LogLevel
|
||||
code: LogCode
|
||||
description: str
|
||||
context: _containers.ScalarMap[str, str]
|
||||
def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., level: _Optional[_Union[LogLevel, str]] = ..., code: _Optional[_Union[LogCode, str]] = ..., description: _Optional[str] = ..., context: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
||||
|
||||
class StatusEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "margin", "external_power_source", "battery_level_unavailable", "battery_level")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
MARGIN_FIELD_NUMBER: _ClassVar[int]
|
||||
EXTERNAL_POWER_SOURCE_FIELD_NUMBER: _ClassVar[int]
|
||||
BATTERY_LEVEL_UNAVAILABLE_FIELD_NUMBER: _ClassVar[int]
|
||||
BATTERY_LEVEL_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
margin: int
|
||||
external_power_source: bool
|
||||
battery_level_unavailable: bool
|
||||
battery_level: float
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., margin: _Optional[int] = ..., external_power_source: bool = ..., battery_level_unavailable: bool = ..., battery_level: _Optional[float] = ...) -> None: ...
|
||||
|
||||
class LocationEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "location")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
LOCATION_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
location: _common_pb2.Location
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., location: _Optional[_Union[_common_pb2.Location, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class IntegrationEvent(_message.Message):
|
||||
__slots__ = ("deduplication_id", "time", "device_info", "integration_name", "event_type", "object")
|
||||
DEDUPLICATION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
DEVICE_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
INTEGRATION_NAME_FIELD_NUMBER: _ClassVar[int]
|
||||
EVENT_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
||||
deduplication_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
device_info: DeviceInfo
|
||||
integration_name: str
|
||||
event_type: str
|
||||
object: _struct_pb2.Struct
|
||||
def __init__(self, deduplication_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., device_info: _Optional[_Union[DeviceInfo, _Mapping]] = ..., integration_name: _Optional[str] = ..., event_type: _Optional[str] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
||||
|
||||
class DownlinkCommand(_message.Message):
|
||||
__slots__ = ("id", "dev_eui", "confirmed", "f_port", "data", "object")
|
||||
ID_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
CONFIRMED_FIELD_NUMBER: _ClassVar[int]
|
||||
F_PORT_FIELD_NUMBER: _ClassVar[int]
|
||||
DATA_FIELD_NUMBER: _ClassVar[int]
|
||||
OBJECT_FIELD_NUMBER: _ClassVar[int]
|
||||
id: str
|
||||
dev_eui: str
|
||||
confirmed: bool
|
||||
f_port: int
|
||||
data: bytes
|
||||
object: _struct_pb2.Struct
|
||||
def __init__(self, id: _Optional[str] = ..., dev_eui: _Optional[str] = ..., confirmed: bool = ..., f_port: _Optional[int] = ..., data: _Optional[bytes] = ..., object: _Optional[_Union[_struct_pb2.Struct, _Mapping]] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
@ -1,34 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/stream/api_request.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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/stream/api_request.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x98\x01\n\rApiRequestLog\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.stream.ApiRequestLog.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42t\n\x18io.chirpstack.api.streamB\x0f\x41piRequestProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.api_request_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\017ApiRequestProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
|
||||
_globals['_APIREQUESTLOG_METADATAENTRY']._options = None
|
||||
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_options = b'8\001'
|
||||
_globals['_APIREQUESTLOG']._serialized_start=149
|
||||
_globals['_APIREQUESTLOG']._serialized_end=301
|
||||
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_start=254
|
||||
_globals['_APIREQUESTLOG_METADATAENTRY']._serialized_end=301
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,26 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class ApiRequestLog(_message.Message):
|
||||
__slots__ = ("service", "method", "metadata")
|
||||
class MetadataEntry(_message.Message):
|
||||
__slots__ = ("key", "value")
|
||||
KEY_FIELD_NUMBER: _ClassVar[int]
|
||||
VALUE_FIELD_NUMBER: _ClassVar[int]
|
||||
key: str
|
||||
value: str
|
||||
def __init__(self, key: _Optional[str] = ..., value: _Optional[str] = ...) -> None: ...
|
||||
SERVICE_FIELD_NUMBER: _ClassVar[int]
|
||||
METHOD_FIELD_NUMBER: _ClassVar[int]
|
||||
METADATA_FIELD_NUMBER: _ClassVar[int]
|
||||
service: str
|
||||
method: str
|
||||
metadata: _containers.ScalarMap[str, str]
|
||||
def __init__(self, service: _Optional[str] = ..., method: _Optional[str] = ..., metadata: _Optional[_Mapping[str, str]] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
@ -1,28 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/stream/backend_interfaces.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@protoc_insertion_point(imports)
|
||||
|
||||
_sym_db = _symbol_database.Default()
|
||||
|
||||
|
||||
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
||||
|
||||
|
||||
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.chirpstack-api/stream/backend_interfaces.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf3\x01\n\x18\x42\x61\x63kendInterfacesRequest\x12\x11\n\tsender_id\x18\x01 \x01(\t\x12\x13\n\x0breceiver_id\x18\x02 \x01(\t\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x16\n\x0etransaction_id\x18\x04 \x01(\r\x12\x14\n\x0cmessage_type\x18\x05 \x01(\t\x12\x13\n\x0bresult_code\x18\x06 \x01(\t\x12\x14\n\x0crequest_body\x18\x07 \x01(\t\x12\x15\n\rrequest_error\x18\x08 \x01(\t\x12\x15\n\rresponse_body\x18\t \x01(\tB{\n\x18io.chirpstack.api.streamB\x16\x42\x61\x63kendInterfacesProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.backend_interfaces_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\026BackendInterfacesProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
|
||||
_globals['_BACKENDINTERFACESREQUEST']._serialized_start=92
|
||||
_globals['_BACKENDINTERFACESREQUEST']._serialized_end=335
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,28 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class BackendInterfacesRequest(_message.Message):
|
||||
__slots__ = ("sender_id", "receiver_id", "time", "transaction_id", "message_type", "result_code", "request_body", "request_error", "response_body")
|
||||
SENDER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
RECEIVER_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
TRANSACTION_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
RESULT_CODE_FIELD_NUMBER: _ClassVar[int]
|
||||
REQUEST_BODY_FIELD_NUMBER: _ClassVar[int]
|
||||
REQUEST_ERROR_FIELD_NUMBER: _ClassVar[int]
|
||||
RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
|
||||
sender_id: str
|
||||
receiver_id: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
transaction_id: int
|
||||
message_type: str
|
||||
result_code: str
|
||||
request_body: str
|
||||
request_error: str
|
||||
response_body: str
|
||||
def __init__(self, sender_id: _Optional[str] = ..., receiver_id: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., transaction_id: _Optional[int] = ..., message_type: _Optional[str] = ..., result_code: _Optional[str] = ..., request_body: _Optional[str] = ..., request_error: _Optional[str] = ..., response_body: _Optional[str] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
@ -1,32 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/stream/frame.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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/stream/frame.proto\x12\x06stream\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"chirpstack-api/common/common.proto\x1a\x1a\x63hirpstack-api/gw/gw.proto\"\x90\x02\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\x12\x18\n\x10plaintext_f_opts\x18\x08 \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\t \x01(\x08\"\x9a\x02\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(\r\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(\t\x12\x18\n\x10plaintext_f_opts\x18\t \x01(\x08\x12\x1d\n\x15plaintext_frm_payload\x18\n \x01(\x08\x42o\n\x18io.chirpstack.api.streamB\nFrameProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.frame_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\nFrameProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
|
||||
_globals['_UPLINKFRAMELOG']._serialized_start=143
|
||||
_globals['_UPLINKFRAMELOG']._serialized_end=415
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_start=418
|
||||
_globals['_DOWNLINKFRAMELOG']._serialized_end=700
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,55 +0,0 @@
|
||||
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class UplinkFrameLog(_message.Message):
|
||||
__slots__ = ("phy_payload", "tx_info", "rx_info", "m_type", "dev_addr", "dev_eui", "time", "plaintext_f_opts", "plaintext_frm_payload")
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
time: _timestamp_pb2.Timestamp
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
||||
|
||||
class DownlinkFrameLog(_message.Message):
|
||||
__slots__ = ("time", "phy_payload", "tx_info", "downlink_id", "gateway_id", "m_type", "dev_addr", "dev_eui", "plaintext_f_opts", "plaintext_frm_payload")
|
||||
TIME_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
DOWNLINK_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
M_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_ADDR_FIELD_NUMBER: _ClassVar[int]
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_F_OPTS_FIELD_NUMBER: _ClassVar[int]
|
||||
PLAINTEXT_FRM_PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
||||
time: _timestamp_pb2.Timestamp
|
||||
phy_payload: bytes
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
downlink_id: int
|
||||
gateway_id: str
|
||||
m_type: _common_pb2.MType
|
||||
dev_addr: str
|
||||
dev_eui: str
|
||||
plaintext_f_opts: bool
|
||||
plaintext_frm_payload: bool
|
||||
def __init__(self, time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phy_payload: _Optional[bytes] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., downlink_id: _Optional[int] = ..., gateway_id: _Optional[str] = ..., m_type: _Optional[_Union[_common_pb2.MType, str]] = ..., dev_addr: _Optional[str] = ..., dev_eui: _Optional[str] = ..., plaintext_f_opts: bool = ..., plaintext_frm_payload: bool = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
31
api/python/src/chirpstack_api/stream/meta_pb2.py
vendored
31
api/python/src/chirpstack_api/stream/meta_pb2.py
vendored
@ -1,31 +0,0 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: chirpstack-api/stream/meta.proto
|
||||
# Protobuf Python Version: 4.25.1
|
||||
"""Generated protocol buffer code."""
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import descriptor_pool as _descriptor_pool
|
||||
from google.protobuf import symbol_database as _symbol_database
|
||||
from google.protobuf.internal import builder as _builder
|
||||
# @@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 chirpstack-api/stream/meta.proto\x12\x06stream\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(\tBn\n\x18io.chirpstack.api.streamB\tMetaProtoP\x01Z1github.com/chirpstack/chirpstack/api/go/v4/stream\xaa\x02\x11\x43hirpstack.Streamb\x06proto3')
|
||||
|
||||
_globals = globals()
|
||||
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
||||
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'chirpstack_api.stream.meta_pb2', _globals)
|
||||
if _descriptor._USE_C_DESCRIPTORS == False:
|
||||
_globals['DESCRIPTOR']._options = None
|
||||
_globals['DESCRIPTOR']._serialized_options = b'\n\030io.chirpstack.api.streamB\tMetaProtoP\001Z1github.com/chirpstack/chirpstack/api/go/v4/stream\252\002\021Chirpstack.Stream'
|
||||
_globals['_UPLINKMETA']._serialized_start=109
|
||||
_globals['_UPLINKMETA']._serialized_end=349
|
||||
_globals['_DOWNLINKMETA']._serialized_start=352
|
||||
_globals['_DOWNLINKMETA']._serialized_end=609
|
||||
# @@protoc_insertion_point(module_scope)
|
@ -1,46 +0,0 @@
|
||||
from chirpstack_api.common import common_pb2 as _common_pb2
|
||||
from chirpstack_api.gw import gw_pb2 as _gw_pb2
|
||||
from google.protobuf.internal import containers as _containers
|
||||
from google.protobuf import descriptor as _descriptor
|
||||
from google.protobuf import message as _message
|
||||
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
||||
|
||||
DESCRIPTOR: _descriptor.FileDescriptor
|
||||
|
||||
class UplinkMeta(_message.Message):
|
||||
__slots__ = ("dev_eui", "tx_info", "rx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
RX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
tx_info: _gw_pb2.UplinkTxInfo
|
||||
rx_info: _containers.RepeatedCompositeFieldContainer[_gw_pb2.UplinkRxInfo]
|
||||
phy_payload_byte_count: int
|
||||
mac_command_byte_count: int
|
||||
application_payload_byte_count: int
|
||||
message_type: _common_pb2.MType
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.UplinkTxInfo, _Mapping]] = ..., rx_info: _Optional[_Iterable[_Union[_gw_pb2.UplinkRxInfo, _Mapping]]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ...) -> None: ...
|
||||
|
||||
class DownlinkMeta(_message.Message):
|
||||
__slots__ = ("dev_eui", "multicast_group_id", "tx_info", "phy_payload_byte_count", "mac_command_byte_count", "application_payload_byte_count", "message_type", "gateway_id")
|
||||
DEV_EUI_FIELD_NUMBER: _ClassVar[int]
|
||||
MULTICAST_GROUP_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
TX_INFO_FIELD_NUMBER: _ClassVar[int]
|
||||
PHY_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MAC_COMMAND_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
APPLICATION_PAYLOAD_BYTE_COUNT_FIELD_NUMBER: _ClassVar[int]
|
||||
MESSAGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
||||
GATEWAY_ID_FIELD_NUMBER: _ClassVar[int]
|
||||
dev_eui: str
|
||||
multicast_group_id: str
|
||||
tx_info: _gw_pb2.DownlinkTxInfo
|
||||
phy_payload_byte_count: int
|
||||
mac_command_byte_count: int
|
||||
application_payload_byte_count: int
|
||||
message_type: _common_pb2.MType
|
||||
gateway_id: str
|
||||
def __init__(self, dev_eui: _Optional[str] = ..., multicast_group_id: _Optional[str] = ..., tx_info: _Optional[_Union[_gw_pb2.DownlinkTxInfo, _Mapping]] = ..., phy_payload_byte_count: _Optional[int] = ..., mac_command_byte_count: _Optional[int] = ..., application_payload_byte_count: _Optional[int] = ..., message_type: _Optional[_Union[_common_pb2.MType, str]] = ..., gateway_id: _Optional[str] = ...) -> None: ...
|
@ -1,4 +0,0 @@
|
||||
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
||||
"""Client and server classes corresponding to protobuf-defined services."""
|
||||
import grpc
|
||||
|
Reference in New Issue
Block a user