@uns-kit/cli 0.0.36 → 0.0.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +128 -128
- package/dist/index.js +11 -5
- package/package.json +8 -2
- package/templates/api/src/examples/api-example.ts +62 -62
- package/templates/azure-pipelines.yml +21 -21
- package/templates/codegen/codegen.ts +15 -15
- package/templates/codegen/src/uns/uns-tags.ts +1 -1
- package/templates/codegen/src/uns/uns-topics.ts +1 -1
- package/templates/config-files/config-docker.json +26 -26
- package/templates/config-files/config-localhost.json +26 -26
- package/templates/cron/src/examples/cron-example.ts +46 -46
- package/templates/default/README.md +32 -30
- package/templates/default/config.json +27 -27
- package/templates/default/gitignore +51 -51
- package/templates/default/package.json +38 -19
- package/templates/default/src/config/project.config.extension.example +23 -23
- package/templates/default/src/config/project.config.extension.ts +6 -6
- package/templates/default/src/examples/data-example.ts +68 -68
- package/templates/default/src/examples/load-test-data.ts +108 -108
- package/templates/default/src/examples/table-example.ts +66 -66
- package/templates/default/src/examples/uns-gateway-cli.ts +7 -7
- package/templates/default/src/index.ts +15 -15
- package/templates/default/src/uns/uns-tags.ts +2 -2
- package/templates/default/src/uns/uns-topics.ts +2 -2
- package/templates/default/tsconfig.json +29 -16
- package/templates/python/app/README.md +8 -8
- package/templates/python/examples/README.md +134 -134
- package/templates/python/examples/api_handler.py +28 -28
- package/templates/python/examples/data_publish.py +11 -11
- package/templates/python/examples/data_subscribe.py +8 -8
- package/templates/python/examples/data_transformer.py +17 -17
- package/templates/python/examples/table_transformer.py +15 -15
- package/templates/python/gateway/cli.py +75 -75
- package/templates/python/gateway/client.py +155 -155
- package/templates/python/gateway/manager.py +97 -97
- package/templates/python/proto/uns-gateway.proto +102 -102
- package/templates/python/pyproject.toml +4 -4
- package/templates/python/scripts/setup.sh +87 -87
- package/templates/temporal/src/examples/temporal-example.ts +35 -35
- package/templates/vscode/.vscode/launch.json +164 -164
- package/templates/vscode/.vscode/settings.json +9 -9
- package/templates/vscode/uns-kit.code-workspace +13 -13
- package/templates/python/gen/__init__.py +0 -1
- package/templates/python/gen/uns_gateway_pb2.py +0 -70
- package/templates/python/gen/uns_gateway_pb2_grpc.py +0 -312
|
@@ -1,164 +1,164 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "0.2.0",
|
|
3
|
-
"configurations": [
|
|
4
|
-
{
|
|
5
|
-
"type": "node",
|
|
6
|
-
"request": "launch",
|
|
7
|
-
"name": "index",
|
|
8
|
-
"runtimeArgs": [
|
|
9
|
-
"--enable-source-maps",
|
|
10
|
-
"--import",
|
|
11
|
-
"tsx",
|
|
12
|
-
],
|
|
13
|
-
"program": "${workspaceFolder}/src/index.ts",
|
|
14
|
-
"console": "internalConsole",
|
|
15
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
16
|
-
"outputCapture": "std",
|
|
17
|
-
"cwd": "${workspaceFolder}",
|
|
18
|
-
"sourceMaps": true,
|
|
19
|
-
"skipFiles": ["<node_internals>/**"],
|
|
20
|
-
"resolveSourceMapLocations": [
|
|
21
|
-
"${workspaceFolder}/**"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"type": "node",
|
|
26
|
-
"request": "launch",
|
|
27
|
-
"name": "demo: data-example",
|
|
28
|
-
"runtimeArgs": [
|
|
29
|
-
"--enable-source-maps",
|
|
30
|
-
"--import",
|
|
31
|
-
"tsx",
|
|
32
|
-
],
|
|
33
|
-
"program": "${workspaceFolder}/src/examples/data-example.ts",
|
|
34
|
-
"console": "internalConsole",
|
|
35
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
36
|
-
"outputCapture": "std",
|
|
37
|
-
"cwd": "${workspaceFolder}",
|
|
38
|
-
"sourceMaps": true,
|
|
39
|
-
"skipFiles": ["<node_internals>/**"],
|
|
40
|
-
"resolveSourceMapLocations": [
|
|
41
|
-
"${workspaceFolder}/**"
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "node",
|
|
46
|
-
"request": "launch",
|
|
47
|
-
"name": "demo: table-example",
|
|
48
|
-
"runtimeArgs": [
|
|
49
|
-
"--enable-source-maps",
|
|
50
|
-
"--import",
|
|
51
|
-
"tsx",
|
|
52
|
-
],
|
|
53
|
-
"program": "${workspaceFolder}/src/examples/table-example.ts",
|
|
54
|
-
"console": "internalConsole",
|
|
55
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
56
|
-
"outputCapture": "std",
|
|
57
|
-
"cwd": "${workspaceFolder}",
|
|
58
|
-
"sourceMaps": true,
|
|
59
|
-
"skipFiles": ["<node_internals>/**"],
|
|
60
|
-
"resolveSourceMapLocations": [
|
|
61
|
-
"${workspaceFolder}/**"
|
|
62
|
-
]
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"type": "node",
|
|
66
|
-
"request": "launch",
|
|
67
|
-
"name": "demo: load-test-data",
|
|
68
|
-
"runtimeArgs": [
|
|
69
|
-
"--enable-source-maps",
|
|
70
|
-
"--import",
|
|
71
|
-
"tsx",
|
|
72
|
-
],
|
|
73
|
-
"program": "${workspaceFolder}/src/examples/load-test-data.ts",
|
|
74
|
-
"console": "integratedTerminal",
|
|
75
|
-
"outputCapture": "std",
|
|
76
|
-
"cwd": "${workspaceFolder}",
|
|
77
|
-
"sourceMaps": true,
|
|
78
|
-
"skipFiles": ["<node_internals>/**"],
|
|
79
|
-
"resolveSourceMapLocations": [
|
|
80
|
-
"${workspaceFolder}/**"
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"type": "node",
|
|
85
|
-
"request": "launch",
|
|
86
|
-
"name": "demo: api-example-example",
|
|
87
|
-
"runtimeArgs": [
|
|
88
|
-
"--enable-source-maps",
|
|
89
|
-
"--import",
|
|
90
|
-
"tsx",
|
|
91
|
-
],
|
|
92
|
-
"program": "${workspaceFolder}/src/examples/api-example.ts",
|
|
93
|
-
"console": "internalConsole",
|
|
94
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
95
|
-
"outputCapture": "std",
|
|
96
|
-
"cwd": "${workspaceFolder}",
|
|
97
|
-
"sourceMaps": true,
|
|
98
|
-
"skipFiles": ["<node_internals>/**"],
|
|
99
|
-
"resolveSourceMapLocations": [
|
|
100
|
-
"${workspaceFolder}/**"
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
"type": "node",
|
|
105
|
-
"request": "launch",
|
|
106
|
-
"name": "demo: cron-example",
|
|
107
|
-
"runtimeArgs": [
|
|
108
|
-
"--enable-source-maps",
|
|
109
|
-
"--import",
|
|
110
|
-
"tsx",
|
|
111
|
-
],
|
|
112
|
-
"program": "${workspaceFolder}/src/examples/cron-example.ts",
|
|
113
|
-
"console": "internalConsole",
|
|
114
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
115
|
-
"outputCapture": "std",
|
|
116
|
-
"cwd": "${workspaceFolder}",
|
|
117
|
-
"sourceMaps": true,
|
|
118
|
-
"skipFiles": ["<node_internals>/**"],
|
|
119
|
-
"resolveSourceMapLocations": [
|
|
120
|
-
"${workspaceFolder}/**"
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"type": "node",
|
|
125
|
-
"request": "launch",
|
|
126
|
-
"name": "demo: temporal-example",
|
|
127
|
-
"runtimeArgs": [
|
|
128
|
-
"--enable-source-maps",
|
|
129
|
-
"--import",
|
|
130
|
-
"tsx",
|
|
131
|
-
],
|
|
132
|
-
"program": "${workspaceFolder}/src/examples/temporal-example.ts",
|
|
133
|
-
"console": "internalConsole",
|
|
134
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
135
|
-
"outputCapture": "std",
|
|
136
|
-
"cwd": "${workspaceFolder}",
|
|
137
|
-
"sourceMaps": true,
|
|
138
|
-
"skipFiles": ["<node_internals>/**"],
|
|
139
|
-
"resolveSourceMapLocations": [
|
|
140
|
-
"${workspaceFolder}/**"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
"type": "node",
|
|
145
|
-
"request": "launch",
|
|
146
|
-
"name": "demo: start uns-gateway-server",
|
|
147
|
-
"runtimeArgs": [
|
|
148
|
-
"--enable-source-maps",
|
|
149
|
-
"--import",
|
|
150
|
-
"tsx",
|
|
151
|
-
],
|
|
152
|
-
"program": "${workspaceFolder}/src/examples/uns-gateway-cli.ts",
|
|
153
|
-
"console": "internalConsole",
|
|
154
|
-
"internalConsoleOptions": "openOnSessionStart",
|
|
155
|
-
"outputCapture": "std",
|
|
156
|
-
"cwd": "${workspaceFolder}",
|
|
157
|
-
"sourceMaps": true,
|
|
158
|
-
"skipFiles": ["<node_internals>/**"],
|
|
159
|
-
"resolveSourceMapLocations": [
|
|
160
|
-
"${workspaceFolder}/**"
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
]
|
|
164
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
{
|
|
5
|
+
"type": "node",
|
|
6
|
+
"request": "launch",
|
|
7
|
+
"name": "index",
|
|
8
|
+
"runtimeArgs": [
|
|
9
|
+
"--enable-source-maps",
|
|
10
|
+
"--import",
|
|
11
|
+
"tsx",
|
|
12
|
+
],
|
|
13
|
+
"program": "${workspaceFolder}/src/index.ts",
|
|
14
|
+
"console": "internalConsole",
|
|
15
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
16
|
+
"outputCapture": "std",
|
|
17
|
+
"cwd": "${workspaceFolder}",
|
|
18
|
+
"sourceMaps": true,
|
|
19
|
+
"skipFiles": ["<node_internals>/**"],
|
|
20
|
+
"resolveSourceMapLocations": [
|
|
21
|
+
"${workspaceFolder}/**"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "node",
|
|
26
|
+
"request": "launch",
|
|
27
|
+
"name": "demo: data-example",
|
|
28
|
+
"runtimeArgs": [
|
|
29
|
+
"--enable-source-maps",
|
|
30
|
+
"--import",
|
|
31
|
+
"tsx",
|
|
32
|
+
],
|
|
33
|
+
"program": "${workspaceFolder}/src/examples/data-example.ts",
|
|
34
|
+
"console": "internalConsole",
|
|
35
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
36
|
+
"outputCapture": "std",
|
|
37
|
+
"cwd": "${workspaceFolder}",
|
|
38
|
+
"sourceMaps": true,
|
|
39
|
+
"skipFiles": ["<node_internals>/**"],
|
|
40
|
+
"resolveSourceMapLocations": [
|
|
41
|
+
"${workspaceFolder}/**"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "node",
|
|
46
|
+
"request": "launch",
|
|
47
|
+
"name": "demo: table-example",
|
|
48
|
+
"runtimeArgs": [
|
|
49
|
+
"--enable-source-maps",
|
|
50
|
+
"--import",
|
|
51
|
+
"tsx",
|
|
52
|
+
],
|
|
53
|
+
"program": "${workspaceFolder}/src/examples/table-example.ts",
|
|
54
|
+
"console": "internalConsole",
|
|
55
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
56
|
+
"outputCapture": "std",
|
|
57
|
+
"cwd": "${workspaceFolder}",
|
|
58
|
+
"sourceMaps": true,
|
|
59
|
+
"skipFiles": ["<node_internals>/**"],
|
|
60
|
+
"resolveSourceMapLocations": [
|
|
61
|
+
"${workspaceFolder}/**"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"type": "node",
|
|
66
|
+
"request": "launch",
|
|
67
|
+
"name": "demo: load-test-data",
|
|
68
|
+
"runtimeArgs": [
|
|
69
|
+
"--enable-source-maps",
|
|
70
|
+
"--import",
|
|
71
|
+
"tsx",
|
|
72
|
+
],
|
|
73
|
+
"program": "${workspaceFolder}/src/examples/load-test-data.ts",
|
|
74
|
+
"console": "integratedTerminal",
|
|
75
|
+
"outputCapture": "std",
|
|
76
|
+
"cwd": "${workspaceFolder}",
|
|
77
|
+
"sourceMaps": true,
|
|
78
|
+
"skipFiles": ["<node_internals>/**"],
|
|
79
|
+
"resolveSourceMapLocations": [
|
|
80
|
+
"${workspaceFolder}/**"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"type": "node",
|
|
85
|
+
"request": "launch",
|
|
86
|
+
"name": "demo: api-example-example",
|
|
87
|
+
"runtimeArgs": [
|
|
88
|
+
"--enable-source-maps",
|
|
89
|
+
"--import",
|
|
90
|
+
"tsx",
|
|
91
|
+
],
|
|
92
|
+
"program": "${workspaceFolder}/src/examples/api-example.ts",
|
|
93
|
+
"console": "internalConsole",
|
|
94
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
95
|
+
"outputCapture": "std",
|
|
96
|
+
"cwd": "${workspaceFolder}",
|
|
97
|
+
"sourceMaps": true,
|
|
98
|
+
"skipFiles": ["<node_internals>/**"],
|
|
99
|
+
"resolveSourceMapLocations": [
|
|
100
|
+
"${workspaceFolder}/**"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "node",
|
|
105
|
+
"request": "launch",
|
|
106
|
+
"name": "demo: cron-example",
|
|
107
|
+
"runtimeArgs": [
|
|
108
|
+
"--enable-source-maps",
|
|
109
|
+
"--import",
|
|
110
|
+
"tsx",
|
|
111
|
+
],
|
|
112
|
+
"program": "${workspaceFolder}/src/examples/cron-example.ts",
|
|
113
|
+
"console": "internalConsole",
|
|
114
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
115
|
+
"outputCapture": "std",
|
|
116
|
+
"cwd": "${workspaceFolder}",
|
|
117
|
+
"sourceMaps": true,
|
|
118
|
+
"skipFiles": ["<node_internals>/**"],
|
|
119
|
+
"resolveSourceMapLocations": [
|
|
120
|
+
"${workspaceFolder}/**"
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"type": "node",
|
|
125
|
+
"request": "launch",
|
|
126
|
+
"name": "demo: temporal-example",
|
|
127
|
+
"runtimeArgs": [
|
|
128
|
+
"--enable-source-maps",
|
|
129
|
+
"--import",
|
|
130
|
+
"tsx",
|
|
131
|
+
],
|
|
132
|
+
"program": "${workspaceFolder}/src/examples/temporal-example.ts",
|
|
133
|
+
"console": "internalConsole",
|
|
134
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
135
|
+
"outputCapture": "std",
|
|
136
|
+
"cwd": "${workspaceFolder}",
|
|
137
|
+
"sourceMaps": true,
|
|
138
|
+
"skipFiles": ["<node_internals>/**"],
|
|
139
|
+
"resolveSourceMapLocations": [
|
|
140
|
+
"${workspaceFolder}/**"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "node",
|
|
145
|
+
"request": "launch",
|
|
146
|
+
"name": "demo: start uns-gateway-server",
|
|
147
|
+
"runtimeArgs": [
|
|
148
|
+
"--enable-source-maps",
|
|
149
|
+
"--import",
|
|
150
|
+
"tsx",
|
|
151
|
+
],
|
|
152
|
+
"program": "${workspaceFolder}/src/examples/uns-gateway-cli.ts",
|
|
153
|
+
"console": "internalConsole",
|
|
154
|
+
"internalConsoleOptions": "openOnSessionStart",
|
|
155
|
+
"outputCapture": "std",
|
|
156
|
+
"cwd": "${workspaceFolder}",
|
|
157
|
+
"sourceMaps": true,
|
|
158
|
+
"skipFiles": ["<node_internals>/**"],
|
|
159
|
+
"resolveSourceMapLocations": [
|
|
160
|
+
"${workspaceFolder}/**"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
"npm.packageManager": "pnpm",
|
|
3
|
-
"json.schemas": [
|
|
4
|
-
{
|
|
5
|
-
"fileMatch": ["config.json"],
|
|
6
|
-
"url": "./config.schema.json"
|
|
7
|
-
}
|
|
8
|
-
]
|
|
9
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"npm.packageManager": "pnpm",
|
|
3
|
+
"json.schemas": [
|
|
4
|
+
{
|
|
5
|
+
"fileMatch": ["config.json"],
|
|
6
|
+
"url": "./config.schema.json"
|
|
7
|
+
}
|
|
8
|
+
]
|
|
9
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
{
|
|
2
|
-
"folders": [
|
|
3
|
-
{
|
|
4
|
-
"path": "."
|
|
5
|
-
}
|
|
6
|
-
],
|
|
7
|
-
"settings": {
|
|
8
|
-
"files.exclude": {
|
|
9
|
-
"dist": true,
|
|
10
|
-
"node_modules": true
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"folders": [
|
|
3
|
+
{
|
|
4
|
+
"path": "."
|
|
5
|
+
}
|
|
6
|
+
],
|
|
7
|
+
"settings": {
|
|
8
|
+
"files.exclude": {
|
|
9
|
+
"dist": true,
|
|
10
|
+
"node_modules": true
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# generated
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# -*- coding: utf-8 -*-
|
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
-
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
-
# source: uns-gateway.proto
|
|
5
|
-
# Protobuf Python Version: 6.31.1
|
|
6
|
-
"""Generated protocol buffer code."""
|
|
7
|
-
from google.protobuf import descriptor as _descriptor
|
|
8
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
-
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
-
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
-
from google.protobuf.internal import builder as _builder
|
|
12
|
-
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
-
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
6,
|
|
15
|
-
31,
|
|
16
|
-
1,
|
|
17
|
-
'',
|
|
18
|
-
'uns-gateway.proto'
|
|
19
|
-
)
|
|
20
|
-
# @@protoc_insertion_point(imports)
|
|
21
|
-
|
|
22
|
-
_sym_db = _symbol_database.Default()
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11uns-gateway.proto\x12\x03uns\"\xda\x01\n\x0ePublishRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tattribute\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12#\n\x1b\x61ttribute_needs_persistence\x18\x05 \x01(\x08\x12\x19\n\x04\x64\x61ta\x18\x06 \x01(\x0b\x32\t.uns.DataH\x00\x12\x1b\n\x05table\x18\x07 \x01(\x0b\x32\n.uns.TableH\x00\x12\x1b\n\x13value_is_cumulative\x18\x08 \x01(\x08\x42\t\n\x07\x63ontent\"|\n\x04\x44\x61ta\x12\x0c\n\x04time\x18\x01 \x01(\t\x12\x14\n\x0cvalue_number\x18\x02 \x01(\x01\x12\x14\n\x0cvalue_string\x18\x03 \x01(\t\x12\x0b\n\x03uom\x18\x04 \x01(\t\x12\x12\n\ndata_group\x18\x05 \x01(\t\x12\x19\n\x11\x66oreign_event_key\x18\x06 \x01(\t\"E\n\nTableValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x14\n\x0cvalue_number\x18\x02 \x01(\x01\x12\x14\n\x0cvalue_string\x18\x03 \x01(\t\"J\n\x05Table\x12\x0c\n\x04time\x18\x01 \x01(\t\x12\x1f\n\x06values\x18\x02 \x03(\x0b\x32\x0f.uns.TableValue\x12\x12\n\ndata_group\x18\x03 \x01(\t\"\"\n\x10SubscribeRequest\x12\x0e\n\x06topics\x18\x01 \x03(\t\"-\n\x0bMqttMessage\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\t\" \n\x03\x41\x63k\x12\n\n\x02ok\x18\x01 \x01(\x08\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"]\n\x0cReadyRequest\x12\x12\n\ntimeout_ms\x18\x01 \x01(\x05\x12\x13\n\x0bwait_output\x18\x02 \x01(\x08\x12\x12\n\nwait_input\x18\x03 \x01(\x08\x12\x10\n\x08wait_api\x18\x04 \x01(\x08\"R\n\rApiQueryParam\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x10\n\x08required\x18\x03 \x01(\x08\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\"\x8a\x01\n\x15RegisterApiGetRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tattribute\x18\x02 \x01(\t\x12\x17\n\x0f\x61pi_description\x18\x03 \x01(\t\x12\x0c\n\x04tags\x18\x04 \x03(\t\x12(\n\x0cquery_params\x18\x05 \x03(\x0b\x32\x12.uns.ApiQueryParam\";\n\x17UnregisterApiGetRequest\x12\r\n\x05topic\x18\x01 \x01(\t\x12\x11\n\tattribute\x18\x02 \x01(\t\"\x9b\x01\n\x08\x41piEvent\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12\x0c\n\x04path\x18\x03 \x01(\t\x12\'\n\x05query\x18\x04 \x03(\x0b\x32\x18.uns.ApiEvent.QueryEntry\x12\x0e\n\x06\x62\x65\x61rer\x18\x05 \x01(\t\x1a,\n\nQueryEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa1\x01\n\x10\x41piEventResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\x33\n\x07headers\x18\x04 \x03(\x0b\x32\".uns.ApiEventResponse.HeadersEntry\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xc4\x02\n\nUnsGateway\x12(\n\x07Publish\x12\x13.uns.PublishRequest\x1a\x08.uns.Ack\x12\x36\n\tSubscribe\x12\x15.uns.SubscribeRequest\x1a\x10.uns.MqttMessage0\x01\x12\x36\n\x0eRegisterApiGet\x12\x1a.uns.RegisterApiGetRequest\x1a\x08.uns.Ack\x12:\n\x10UnregisterApiGet\x12\x1c.uns.UnregisterApiGetRequest\x1a\x08.uns.Ack\x12:\n\x0e\x41piEventStream\x12\x15.uns.ApiEventResponse\x1a\r.uns.ApiEvent(\x01\x30\x01\x12$\n\x05Ready\x12\x11.uns.ReadyRequest\x1a\x08.uns.Ackb\x06proto3')
|
|
28
|
-
|
|
29
|
-
_globals = globals()
|
|
30
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'uns_gateway_pb2', _globals)
|
|
32
|
-
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
-
DESCRIPTOR._loaded_options = None
|
|
34
|
-
_globals['_APIEVENT_QUERYENTRY']._loaded_options = None
|
|
35
|
-
_globals['_APIEVENT_QUERYENTRY']._serialized_options = b'8\001'
|
|
36
|
-
_globals['_APIEVENTRESPONSE_HEADERSENTRY']._loaded_options = None
|
|
37
|
-
_globals['_APIEVENTRESPONSE_HEADERSENTRY']._serialized_options = b'8\001'
|
|
38
|
-
_globals['_PUBLISHREQUEST']._serialized_start=27
|
|
39
|
-
_globals['_PUBLISHREQUEST']._serialized_end=245
|
|
40
|
-
_globals['_DATA']._serialized_start=247
|
|
41
|
-
_globals['_DATA']._serialized_end=371
|
|
42
|
-
_globals['_TABLEVALUE']._serialized_start=373
|
|
43
|
-
_globals['_TABLEVALUE']._serialized_end=442
|
|
44
|
-
_globals['_TABLE']._serialized_start=444
|
|
45
|
-
_globals['_TABLE']._serialized_end=518
|
|
46
|
-
_globals['_SUBSCRIBEREQUEST']._serialized_start=520
|
|
47
|
-
_globals['_SUBSCRIBEREQUEST']._serialized_end=554
|
|
48
|
-
_globals['_MQTTMESSAGE']._serialized_start=556
|
|
49
|
-
_globals['_MQTTMESSAGE']._serialized_end=601
|
|
50
|
-
_globals['_ACK']._serialized_start=603
|
|
51
|
-
_globals['_ACK']._serialized_end=635
|
|
52
|
-
_globals['_READYREQUEST']._serialized_start=637
|
|
53
|
-
_globals['_READYREQUEST']._serialized_end=730
|
|
54
|
-
_globals['_APIQUERYPARAM']._serialized_start=732
|
|
55
|
-
_globals['_APIQUERYPARAM']._serialized_end=814
|
|
56
|
-
_globals['_REGISTERAPIGETREQUEST']._serialized_start=817
|
|
57
|
-
_globals['_REGISTERAPIGETREQUEST']._serialized_end=955
|
|
58
|
-
_globals['_UNREGISTERAPIGETREQUEST']._serialized_start=957
|
|
59
|
-
_globals['_UNREGISTERAPIGETREQUEST']._serialized_end=1016
|
|
60
|
-
_globals['_APIEVENT']._serialized_start=1019
|
|
61
|
-
_globals['_APIEVENT']._serialized_end=1174
|
|
62
|
-
_globals['_APIEVENT_QUERYENTRY']._serialized_start=1130
|
|
63
|
-
_globals['_APIEVENT_QUERYENTRY']._serialized_end=1174
|
|
64
|
-
_globals['_APIEVENTRESPONSE']._serialized_start=1177
|
|
65
|
-
_globals['_APIEVENTRESPONSE']._serialized_end=1338
|
|
66
|
-
_globals['_APIEVENTRESPONSE_HEADERSENTRY']._serialized_start=1292
|
|
67
|
-
_globals['_APIEVENTRESPONSE_HEADERSENTRY']._serialized_end=1338
|
|
68
|
-
_globals['_UNSGATEWAY']._serialized_start=1341
|
|
69
|
-
_globals['_UNSGATEWAY']._serialized_end=1665
|
|
70
|
-
# @@protoc_insertion_point(module_scope)
|