@scaleway/sdk 2.72.0 → 2.73.0
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/dist/api/account/v3/api.gen.cjs +13 -32
- package/dist/api/account/v3/api.gen.d.ts +17 -36
- package/dist/api/account/v3/api.gen.js +13 -32
- package/dist/api/account/v3/types.gen.d.ts +187 -85
- package/dist/api/applesilicon/v1alpha1/api.gen.cjs +19 -46
- package/dist/api/applesilicon/v1alpha1/api.gen.d.ts +24 -49
- package/dist/api/applesilicon/v1alpha1/api.gen.js +19 -46
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +310 -135
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +2 -5
- package/dist/api/audit_trail/v1alpha1/api.gen.d.ts +4 -8
- package/dist/api/audit_trail/v1alpha1/api.gen.js +2 -5
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +110 -82
- package/dist/api/baremetal/v1/api.gen.cjs +28 -61
- package/dist/api/baremetal/v1/api.gen.d.ts +29 -60
- package/dist/api/baremetal/v1/api.gen.js +28 -61
- package/dist/api/baremetal/v1/types.gen.d.ts +802 -315
- package/dist/api/baremetal/v3/api.gen.cjs +7 -14
- package/dist/api/baremetal/v3/api.gen.d.ts +10 -15
- package/dist/api/baremetal/v3/api.gen.js +7 -14
- package/dist/api/baremetal/v3/types.gen.d.ts +82 -32
- package/dist/api/billing/v2beta1/api.gen.cjs +11 -20
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -19
- package/dist/api/billing/v2beta1/api.gen.js +11 -20
- package/dist/api/billing/v2beta1/types.gen.d.ts +231 -102
- package/dist/api/block/v1/api.gen.cjs +37 -55
- package/dist/api/block/v1/api.gen.d.ts +19 -37
- package/dist/api/block/v1/api.gen.js +37 -55
- package/dist/api/block/v1/types.gen.d.ts +306 -125
- package/dist/api/block/v1alpha1/api.gen.cjs +45 -64
- package/dist/api/block/v1alpha1/api.gen.d.ts +22 -41
- package/dist/api/block/v1alpha1/api.gen.js +45 -64
- package/dist/api/block/v1alpha1/types.gen.d.ts +327 -132
- package/dist/api/cockpit/v1/api.gen.cjs +100 -156
- package/dist/api/cockpit/v1/api.gen.d.ts +53 -112
- package/dist/api/cockpit/v1/api.gen.js +100 -156
- package/dist/api/cockpit/v1/types.gen.d.ts +567 -246
- package/dist/api/container/v1beta1/api.gen.cjs +7 -14
- package/dist/api/container/v1beta1/api.gen.d.ts +9 -16
- package/dist/api/container/v1beta1/api.gen.js +7 -14
- package/dist/api/container/v1beta1/types.gen.d.ts +648 -322
- package/dist/api/dedibox/v1/api.gen.cjs +45 -69
- package/dist/api/dedibox/v1/api.gen.d.ts +52 -62
- package/dist/api/dedibox/v1/api.gen.js +45 -69
- package/dist/api/dedibox/v1/types.gen.d.ts +1765 -645
- package/dist/api/domain/v2beta1/api.gen.cjs +119 -178
- package/dist/api/domain/v2beta1/api.gen.d.ts +71 -130
- package/dist/api/domain/v2beta1/api.gen.js +119 -178
- package/dist/api/domain/v2beta1/content.gen.d.ts +1 -4
- package/dist/api/domain/v2beta1/types.gen.d.ts +411 -199
- package/dist/api/flexibleip/v1alpha1/api.gen.cjs +10 -25
- package/dist/api/flexibleip/v1alpha1/api.gen.d.ts +12 -28
- package/dist/api/flexibleip/v1alpha1/api.gen.js +10 -25
- package/dist/api/flexibleip/v1alpha1/types.gen.d.ts +186 -78
- package/dist/api/inference/v1/api.gen.cjs +8 -11
- package/dist/api/inference/v1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1/api.gen.js +8 -11
- package/dist/api/inference/v1/types.gen.d.ts +330 -150
- package/dist/api/inference/v1beta1/api.gen.cjs +8 -11
- package/dist/api/inference/v1beta1/api.gen.d.ts +6 -9
- package/dist/api/inference/v1beta1/api.gen.js +8 -11
- package/dist/api/inference/v1beta1/types.gen.d.ts +341 -154
- package/dist/api/instance/v1/api.gen.cjs +64 -113
- package/dist/api/instance/v1/api.gen.d.ts +54 -103
- package/dist/api/instance/v1/api.gen.js +64 -113
- package/dist/api/instance/v1/types.gen.d.ts +1351 -598
- package/dist/api/instance/v1/types.private.gen.d.ts +131 -59
- package/dist/api/interlink/v1beta1/api.gen.cjs +21 -67
- package/dist/api/interlink/v1beta1/api.gen.d.ts +23 -70
- package/dist/api/interlink/v1beta1/api.gen.js +21 -67
- package/dist/api/interlink/v1beta1/marshalling.gen.cjs +2 -0
- package/dist/api/interlink/v1beta1/marshalling.gen.js +2 -0
- package/dist/api/interlink/v1beta1/types.gen.d.ts +464 -216
- package/dist/api/interlink/v1beta1/validation-rules.gen.cjs +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.d.ts +8 -0
- package/dist/api/interlink/v1beta1/validation-rules.gen.js +8 -0
- package/dist/api/iot/v1/api.gen.cjs +37 -70
- package/dist/api/iot/v1/api.gen.d.ts +34 -67
- package/dist/api/iot/v1/api.gen.js +37 -70
- package/dist/api/iot/v1/types.gen.d.ts +566 -321
- package/dist/api/ipam/v1/api.gen.cjs +6 -26
- package/dist/api/ipam/v1/api.gen.d.ts +8 -29
- package/dist/api/ipam/v1/api.gen.js +6 -26
- package/dist/api/ipam/v1/types.gen.d.ts +146 -105
- package/dist/api/jobs/v1alpha1/api.gen.cjs +2 -4
- package/dist/api/jobs/v1alpha1/api.gen.d.ts +4 -6
- package/dist/api/jobs/v1alpha1/api.gen.js +2 -4
- package/dist/api/jobs/v1alpha1/types.gen.d.ts +165 -91
- package/dist/api/k8s/v1/api.gen.cjs +33 -78
- package/dist/api/k8s/v1/api.gen.d.ts +27 -72
- package/dist/api/k8s/v1/api.gen.js +33 -78
- package/dist/api/k8s/v1/types.gen.d.ts +743 -506
- package/dist/api/key_manager/v1alpha1/api.gen.cjs +21 -57
- package/dist/api/key_manager/v1alpha1/api.gen.d.ts +19 -56
- package/dist/api/key_manager/v1alpha1/api.gen.js +21 -57
- package/dist/api/key_manager/v1alpha1/types.gen.d.ts +196 -114
- package/dist/api/marketplace/v2/api.gen.cjs +8 -21
- package/dist/api/marketplace/v2/api.gen.d.ts +10 -24
- package/dist/api/marketplace/v2/api.gen.js +8 -21
- package/dist/api/marketplace/v2/types.gen.d.ts +94 -41
- package/dist/api/mnq/v1beta1/api.gen.cjs +24 -76
- package/dist/api/mnq/v1beta1/api.gen.d.ts +30 -82
- package/dist/api/mnq/v1beta1/api.gen.js +24 -76
- package/dist/api/mnq/v1beta1/types.gen.d.ts +342 -169
- package/dist/api/mongodb/v1alpha1/api.gen.cjs +19 -62
- package/dist/api/mongodb/v1alpha1/api.gen.d.ts +21 -64
- package/dist/api/mongodb/v1alpha1/api.gen.js +19 -62
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +443 -189
- package/dist/api/qaas/v1alpha1/api.gen.cjs +17 -34
- package/dist/api/qaas/v1alpha1/api.gen.d.ts +19 -36
- package/dist/api/qaas/v1alpha1/api.gen.js +17 -34
- package/dist/api/qaas/v1alpha1/types.gen.d.ts +502 -174
- package/dist/api/rdb/v1/api.gen.cjs +62 -202
- package/dist/api/rdb/v1/api.gen.d.ts +60 -201
- package/dist/api/rdb/v1/api.gen.js +62 -202
- package/dist/api/rdb/v1/types.gen.d.ts +1005 -524
- package/dist/api/redis/v1/api.gen.cjs +23 -83
- package/dist/api/redis/v1/api.gen.d.ts +25 -85
- package/dist/api/redis/v1/api.gen.js +23 -83
- package/dist/api/redis/v1/types.gen.d.ts +447 -170
- package/dist/api/registry/v1/api.gen.cjs +12 -40
- package/dist/api/registry/v1/api.gen.d.ts +14 -42
- package/dist/api/registry/v1/api.gen.js +12 -40
- package/dist/api/registry/v1/types.gen.d.ts +200 -116
- package/dist/api/secret/v1beta1/api.gen.cjs +19 -47
- package/dist/api/secret/v1beta1/api.gen.d.ts +21 -51
- package/dist/api/secret/v1beta1/api.gen.js +19 -47
- package/dist/api/secret/v1beta1/types.gen.d.ts +359 -224
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.cjs +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.d.ts +11 -29
- package/dist/api/serverless_sqldb/v1alpha1/api.gen.js +9 -27
- package/dist/api/serverless_sqldb/v1alpha1/types.gen.d.ts +168 -76
- package/dist/api/tem/v1alpha1/api.gen.cjs +22 -58
- package/dist/api/tem/v1alpha1/api.gen.d.ts +24 -60
- package/dist/api/tem/v1alpha1/api.gen.js +22 -58
- package/dist/api/tem/v1alpha1/types.gen.d.ts +761 -338
- package/dist/api/test/v1/api.gen.cjs +8 -11
- package/dist/api/test/v1/api.gen.d.ts +6 -9
- package/dist/api/test/v1/api.gen.js +8 -11
- package/dist/api/test/v1/types.gen.d.ts +21 -10
- package/dist/client/dist/package.json.cjs +1 -1
- package/dist/client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.cjs +1 -1
- package/node_modules/@scaleway/sdk-client/dist/package.json.js +1 -1
- package/node_modules/@scaleway/sdk-client/package.json +1 -2
- package/package.json +2 -2
- package/node_modules/@scaleway/sdk-client/LICENSE +0 -191
|
@@ -14,21 +14,23 @@ export type RouteRouteType = 'unknown' | 's3' | 'database' | 'rest';
|
|
|
14
14
|
export type RouteS3ConfigS3Strategy = 'unknown' | 'per_topic' | 'per_message';
|
|
15
15
|
export interface DeviceMessageFiltersRule {
|
|
16
16
|
/**
|
|
17
|
-
* If set to `accept`, all topics in the topics list will be allowed, with all
|
|
18
|
-
|
|
19
|
-
* list will be denied, with all other topics being allowed.
|
|
17
|
+
* If set to `accept`, all topics in the topics list will be allowed, with all other topics being denied.
|
|
18
|
+
If set to `reject`, all topics in the topics list will be denied, with all other topics being allowed.
|
|
20
19
|
*/
|
|
21
20
|
policy: DeviceMessageFiltersRulePolicy;
|
|
22
21
|
/**
|
|
23
|
-
* List of topics to accept or reject. It must be valid MQTT topics and up to
|
|
24
|
-
* 65535 characters.
|
|
22
|
+
* List of topics to accept or reject. It must be valid MQTT topics and up to 65535 characters.
|
|
25
23
|
*/
|
|
26
24
|
topics?: string[];
|
|
27
25
|
}
|
|
28
26
|
export interface DeviceMessageFilters {
|
|
29
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Filtering rule to restrict topics the device can publish to.
|
|
29
|
+
*/
|
|
30
30
|
publish?: DeviceMessageFiltersRule;
|
|
31
|
-
/**
|
|
31
|
+
/**
|
|
32
|
+
* Filtering rule to restrict topics the device can subscribe to.
|
|
33
|
+
*/
|
|
32
34
|
subscribe?: DeviceMessageFiltersRule;
|
|
33
35
|
}
|
|
34
36
|
export interface HubTwinsGraphiteConfig {
|
|
@@ -39,56 +41,87 @@ export interface Certificate {
|
|
|
39
41
|
key: string;
|
|
40
42
|
}
|
|
41
43
|
export interface Device {
|
|
42
|
-
/**
|
|
44
|
+
/**
|
|
45
|
+
* Device ID, also used as MQTT Client ID or username.
|
|
46
|
+
*/
|
|
43
47
|
id: string;
|
|
44
|
-
/**
|
|
48
|
+
/**
|
|
49
|
+
* Device name.
|
|
50
|
+
*/
|
|
45
51
|
name: string;
|
|
46
|
-
/**
|
|
52
|
+
/**
|
|
53
|
+
* Device description.
|
|
54
|
+
*/
|
|
47
55
|
description: string;
|
|
48
|
-
/**
|
|
56
|
+
/**
|
|
57
|
+
* Device status.
|
|
58
|
+
*/
|
|
49
59
|
status: DeviceStatus;
|
|
50
|
-
/**
|
|
60
|
+
/**
|
|
61
|
+
* Hub ID.
|
|
62
|
+
*/
|
|
51
63
|
hubId: string;
|
|
52
|
-
/**
|
|
64
|
+
/**
|
|
65
|
+
* Last connection/activity date of a device.
|
|
66
|
+
*/
|
|
53
67
|
lastActivityAt?: Date;
|
|
54
|
-
/**
|
|
68
|
+
/**
|
|
69
|
+
* Defines whether the device is connected to the Hub.
|
|
70
|
+
*/
|
|
55
71
|
isConnected: boolean;
|
|
56
72
|
/**
|
|
57
|
-
* Defines whether to allow the device to connect to the Hub without TLS
|
|
58
|
-
* mutual authentication.
|
|
73
|
+
* Defines whether to allow the device to connect to the Hub without TLS mutual authentication.
|
|
59
74
|
*/
|
|
60
75
|
allowInsecure: boolean;
|
|
61
76
|
/**
|
|
62
|
-
* Defines whether to allow multiple physical devices to connect to the Hub
|
|
63
|
-
* with this device's credentials.
|
|
77
|
+
* Defines whether to allow multiple physical devices to connect to the Hub with this device's credentials.
|
|
64
78
|
*/
|
|
65
79
|
allowMultipleConnections: boolean;
|
|
66
|
-
/**
|
|
80
|
+
/**
|
|
81
|
+
* Filter-sets to restrict the topics the device can publish/subscribe to.
|
|
82
|
+
*/
|
|
67
83
|
messageFilters?: DeviceMessageFilters;
|
|
68
84
|
/**
|
|
69
|
-
* Assigning a custom certificate allows a device to authenticate using that
|
|
70
|
-
* specific certificate without checking the Hub's CA certificate.
|
|
85
|
+
* Assigning a custom certificate allows a device to authenticate using that specific certificate without checking the Hub's CA certificate.
|
|
71
86
|
*/
|
|
72
87
|
hasCustomCertificate: boolean;
|
|
73
|
-
/**
|
|
88
|
+
/**
|
|
89
|
+
* Date at which the device was added.
|
|
90
|
+
*/
|
|
74
91
|
createdAt?: Date;
|
|
75
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Date at which the device was last modified.
|
|
94
|
+
*/
|
|
76
95
|
updatedAt?: Date;
|
|
77
96
|
}
|
|
78
97
|
export interface Network {
|
|
79
|
-
/**
|
|
98
|
+
/**
|
|
99
|
+
* Network ID.
|
|
100
|
+
*/
|
|
80
101
|
id: string;
|
|
81
|
-
/**
|
|
102
|
+
/**
|
|
103
|
+
* Network name.
|
|
104
|
+
*/
|
|
82
105
|
name: string;
|
|
83
|
-
/**
|
|
106
|
+
/**
|
|
107
|
+
* Type of network to connect with.
|
|
108
|
+
*/
|
|
84
109
|
type: NetworkNetworkType;
|
|
85
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Endpoint to use for interacting with the network.
|
|
112
|
+
*/
|
|
86
113
|
endpoint: string;
|
|
87
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Hub ID to connect the Network to.
|
|
116
|
+
*/
|
|
88
117
|
hubId: string;
|
|
89
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* Date at which the network was created.
|
|
120
|
+
*/
|
|
90
121
|
createdAt?: Date;
|
|
91
|
-
/**
|
|
122
|
+
/**
|
|
123
|
+
* This prefix will be prepended to all topics for this Network.
|
|
124
|
+
*/
|
|
92
125
|
topicPrefix: string;
|
|
93
126
|
}
|
|
94
127
|
export interface CreateRouteRequestDatabaseConfig {
|
|
@@ -112,125 +145,176 @@ export interface CreateRouteRequestS3Config {
|
|
|
112
145
|
strategy: RouteS3ConfigS3Strategy;
|
|
113
146
|
}
|
|
114
147
|
export interface Hub {
|
|
115
|
-
/**
|
|
148
|
+
/**
|
|
149
|
+
* Hub ID.
|
|
150
|
+
*/
|
|
116
151
|
id: string;
|
|
117
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Hub name.
|
|
154
|
+
*/
|
|
118
155
|
name: string;
|
|
119
|
-
/**
|
|
156
|
+
/**
|
|
157
|
+
* Current status of the Hub.
|
|
158
|
+
*/
|
|
120
159
|
status: HubStatus;
|
|
121
|
-
/**
|
|
160
|
+
/**
|
|
161
|
+
* Hub feature set.
|
|
162
|
+
*/
|
|
122
163
|
productPlan: HubProductPlan;
|
|
123
|
-
/**
|
|
164
|
+
/**
|
|
165
|
+
* Defines whether the hub has been enabled.
|
|
166
|
+
*/
|
|
124
167
|
enabled: boolean;
|
|
125
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Number of registered devices.
|
|
170
|
+
*/
|
|
126
171
|
deviceCount: number;
|
|
127
|
-
/**
|
|
172
|
+
/**
|
|
173
|
+
* Number of currently connected devices.
|
|
174
|
+
*/
|
|
128
175
|
connectedDeviceCount: number;
|
|
129
176
|
/**
|
|
130
|
-
* Devices should be connected to this host. Port may be 1883 (MQTT), 8883
|
|
131
|
-
* (MQTT over TLS), 80 (MQTT over Websocket) or 443 (MQTT over Websocket over
|
|
132
|
-
* TLS).
|
|
177
|
+
* Devices should be connected to this host. Port may be 1883 (MQTT), 8883 (MQTT over TLS), 80 (MQTT over Websocket) or 443 (MQTT over Websocket over TLS).
|
|
133
178
|
*/
|
|
134
179
|
endpoint: string;
|
|
135
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Defines whether to disable Hub events.
|
|
182
|
+
*/
|
|
136
183
|
disableEvents: boolean;
|
|
137
|
-
/**
|
|
184
|
+
/**
|
|
185
|
+
* Hub events topic prefix.
|
|
186
|
+
*/
|
|
138
187
|
eventsTopicPrefix: string;
|
|
139
|
-
/**
|
|
188
|
+
/**
|
|
189
|
+
* Region of the Hub.
|
|
190
|
+
*/
|
|
140
191
|
region: ScwRegion;
|
|
141
|
-
/**
|
|
192
|
+
/**
|
|
193
|
+
* Hub creation date.
|
|
194
|
+
*/
|
|
142
195
|
createdAt?: Date;
|
|
143
|
-
/**
|
|
196
|
+
/**
|
|
197
|
+
* Hub last modification date.
|
|
198
|
+
*/
|
|
144
199
|
updatedAt?: Date;
|
|
145
|
-
/**
|
|
200
|
+
/**
|
|
201
|
+
* Project owning the resource.
|
|
202
|
+
*/
|
|
146
203
|
projectId: string;
|
|
147
|
-
/**
|
|
204
|
+
/**
|
|
205
|
+
* Organization owning the resource.
|
|
206
|
+
*/
|
|
148
207
|
organizationId: string;
|
|
149
208
|
/**
|
|
150
|
-
* When an unknown device connects to your hub using a valid certificate
|
|
151
|
-
* chain, it will be automatically provisioned inside your Hub. The Hub uses
|
|
152
|
-
* the common name of the device certifcate to find out if a device with the
|
|
153
|
-
* same name already exists. This setting can only be enabled on a hub with a
|
|
154
|
-
* custom certificate authority.
|
|
209
|
+
* When an unknown device connects to your hub using a valid certificate chain, it will be automatically provisioned inside your Hub. The Hub uses the common name of the device certifcate to find out if a device with the same name already exists. This setting can only be enabled on a hub with a custom certificate authority.
|
|
155
210
|
*/
|
|
156
211
|
enableDeviceAutoProvisioning: boolean;
|
|
157
212
|
/**
|
|
158
|
-
* Flag is automatically set to `false` after Hub creation, as Hub
|
|
159
|
-
* certificates are managed by Scaleway. Once a custom certificate authority
|
|
160
|
-
* is set, the flag will be set to `true`.
|
|
213
|
+
* Flag is automatically set to `false` after Hub creation, as Hub certificates are managed by Scaleway. Once a custom certificate authority is set, the flag will be set to `true`.
|
|
161
214
|
*/
|
|
162
215
|
hasCustomCa: boolean;
|
|
163
216
|
/**
|
|
164
217
|
* BETA - not implemented yet.
|
|
165
218
|
*
|
|
166
|
-
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be
|
|
167
|
-
* set.
|
|
219
|
+
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be set.
|
|
168
220
|
*/
|
|
169
221
|
twinsGraphiteConfig?: HubTwinsGraphiteConfig;
|
|
170
222
|
}
|
|
171
223
|
export interface RouteSummary {
|
|
172
|
-
/**
|
|
224
|
+
/**
|
|
225
|
+
* Route ID.
|
|
226
|
+
*/
|
|
173
227
|
id: string;
|
|
174
|
-
/**
|
|
228
|
+
/**
|
|
229
|
+
* Route name.
|
|
230
|
+
*/
|
|
175
231
|
name: string;
|
|
176
|
-
/**
|
|
232
|
+
/**
|
|
233
|
+
* Hub ID of the route.
|
|
234
|
+
*/
|
|
177
235
|
hubId: string;
|
|
178
236
|
/**
|
|
179
|
-
* Topic the route subscribes to. It must be a valid MQTT topic and up to
|
|
180
|
-
* 65535 characters.
|
|
237
|
+
* Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
|
|
181
238
|
*/
|
|
182
239
|
topic: string;
|
|
183
|
-
/**
|
|
240
|
+
/**
|
|
241
|
+
* Route type.
|
|
242
|
+
*/
|
|
184
243
|
type: RouteRouteType;
|
|
185
|
-
/**
|
|
244
|
+
/**
|
|
245
|
+
* Date at which the route was created.
|
|
246
|
+
*/
|
|
186
247
|
createdAt?: Date;
|
|
187
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Date at which the route was last updated.
|
|
250
|
+
*/
|
|
188
251
|
updatedAt?: Date;
|
|
189
252
|
}
|
|
190
253
|
export interface ListTwinDocumentsResponseDocumentSummary {
|
|
191
|
-
/**
|
|
254
|
+
/**
|
|
255
|
+
* Name of the document.
|
|
256
|
+
*/
|
|
192
257
|
documentName: string;
|
|
193
258
|
}
|
|
194
259
|
export interface RouteDatabaseConfig {
|
|
195
260
|
/**
|
|
196
|
-
* Database engine the route will connect to. If not specified, the default
|
|
197
|
-
* database will be 'PostgreSQL'.
|
|
261
|
+
* Database engine the route will connect to. If not specified, the default database will be 'PostgreSQL'.
|
|
198
262
|
*/
|
|
199
263
|
engine: RouteDatabaseConfigEngine;
|
|
200
|
-
/**
|
|
264
|
+
/**
|
|
265
|
+
* Database host.
|
|
266
|
+
*/
|
|
201
267
|
host: string;
|
|
202
|
-
/**
|
|
268
|
+
/**
|
|
269
|
+
* Database port.
|
|
270
|
+
*/
|
|
203
271
|
port: number;
|
|
204
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* Database name.
|
|
274
|
+
*/
|
|
205
275
|
dbname: string;
|
|
206
|
-
/**
|
|
276
|
+
/**
|
|
277
|
+
* Database username. Make sure this account can execute the provided query.
|
|
278
|
+
*/
|
|
207
279
|
username: string;
|
|
208
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Database password.
|
|
282
|
+
*/
|
|
209
283
|
password: string;
|
|
210
284
|
/**
|
|
211
|
-
* SQL query to be executed ($TOPIC and $PAYLOAD variables are available, see
|
|
212
|
-
* documentation).
|
|
285
|
+
* SQL query to be executed ($TOPIC and $PAYLOAD variables are available, see documentation).
|
|
213
286
|
*/
|
|
214
287
|
query: string;
|
|
215
288
|
}
|
|
216
289
|
export interface RouteRestConfig {
|
|
217
|
-
/**
|
|
290
|
+
/**
|
|
291
|
+
* HTTP verb used to call REST URI.
|
|
292
|
+
*/
|
|
218
293
|
verb: RouteRestConfigHttpVerb;
|
|
219
|
-
/**
|
|
294
|
+
/**
|
|
295
|
+
* URI of the REST endpoint.
|
|
296
|
+
*/
|
|
220
297
|
uri: string;
|
|
221
|
-
/**
|
|
298
|
+
/**
|
|
299
|
+
* HTTP call extra headers.
|
|
300
|
+
*/
|
|
222
301
|
headers: Record<string, string>;
|
|
223
302
|
}
|
|
224
303
|
export interface RouteS3Config {
|
|
225
|
-
/**
|
|
304
|
+
/**
|
|
305
|
+
* Region of the Amazon S3 route's destination bucket (e.g., 'fr-par').
|
|
306
|
+
*/
|
|
226
307
|
bucketRegion: string;
|
|
227
|
-
/**
|
|
308
|
+
/**
|
|
309
|
+
* Destination bucket name of the Amazon S3 route.
|
|
310
|
+
*/
|
|
228
311
|
bucketName: string;
|
|
229
|
-
/**
|
|
312
|
+
/**
|
|
313
|
+
* Optional string to prefix object names with.
|
|
314
|
+
*/
|
|
230
315
|
objectPrefix: string;
|
|
231
316
|
/**
|
|
232
|
-
* How the Amazon S3 route's objects will be created: one per topic or one per
|
|
233
|
-
* message.
|
|
317
|
+
* How the Amazon S3 route's objects will be created: one per topic or one per message.
|
|
234
318
|
*/
|
|
235
319
|
strategy: RouteS3ConfigS3Strategy;
|
|
236
320
|
}
|
|
@@ -256,263 +340,305 @@ export interface UpdateRouteRequestS3Config {
|
|
|
256
340
|
}
|
|
257
341
|
export type CreateDeviceRequest = {
|
|
258
342
|
/**
|
|
259
|
-
* Region to target. If none is passed will use default region from the
|
|
260
|
-
* config.
|
|
343
|
+
* Region to target. If none is passed will use default region from the config.
|
|
261
344
|
*/
|
|
262
345
|
region?: ScwRegion;
|
|
263
|
-
/**
|
|
346
|
+
/**
|
|
347
|
+
* Device name.
|
|
348
|
+
*/
|
|
264
349
|
name?: string;
|
|
265
|
-
/**
|
|
350
|
+
/**
|
|
351
|
+
* Hub ID of the device.
|
|
352
|
+
*/
|
|
266
353
|
hubId: string;
|
|
267
354
|
/**
|
|
268
|
-
* Defines whether to allow plain and server-authenticated SSL connections in
|
|
269
|
-
* addition to mutually-authenticated ones.
|
|
355
|
+
* Defines whether to allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones.
|
|
270
356
|
*/
|
|
271
357
|
allowInsecure: boolean;
|
|
272
358
|
/**
|
|
273
|
-
* Defines whether to allow multiple physical devices to connect with this
|
|
274
|
-
* device's credentials.
|
|
359
|
+
* Defines whether to allow multiple physical devices to connect with this device's credentials.
|
|
275
360
|
*/
|
|
276
361
|
allowMultipleConnections: boolean;
|
|
277
362
|
/**
|
|
278
|
-
* Filter-sets to authorize or deny the device to publish/subscribe to
|
|
279
|
-
* specific topics.
|
|
363
|
+
* Filter-sets to authorize or deny the device to publish/subscribe to specific topics.
|
|
280
364
|
*/
|
|
281
365
|
messageFilters?: DeviceMessageFilters;
|
|
282
|
-
/**
|
|
366
|
+
/**
|
|
367
|
+
* Device description.
|
|
368
|
+
*/
|
|
283
369
|
description?: string;
|
|
284
370
|
};
|
|
285
371
|
export interface CreateDeviceResponse {
|
|
286
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* Information related to the created device.
|
|
374
|
+
*/
|
|
287
375
|
device?: Device;
|
|
288
|
-
/**
|
|
376
|
+
/**
|
|
377
|
+
* Device certificate.
|
|
378
|
+
*/
|
|
289
379
|
certificate?: Certificate;
|
|
290
380
|
}
|
|
291
381
|
export type CreateHubRequest = {
|
|
292
382
|
/**
|
|
293
|
-
* Region to target. If none is passed will use default region from the
|
|
294
|
-
* config.
|
|
383
|
+
* Region to target. If none is passed will use default region from the config.
|
|
295
384
|
*/
|
|
296
385
|
region?: ScwRegion;
|
|
297
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* Hub name (up to 255 characters).
|
|
388
|
+
*/
|
|
298
389
|
name?: string;
|
|
299
390
|
/**
|
|
300
|
-
* Project/Organization ID to filter for, only Hubs from this
|
|
301
|
-
* Project/Organization will be returned.
|
|
391
|
+
* Project/Organization ID to filter for, only Hubs from this Project/Organization will be returned.
|
|
302
392
|
*/
|
|
303
393
|
projectId?: string;
|
|
304
|
-
/**
|
|
394
|
+
/**
|
|
395
|
+
* Hub product plan.
|
|
396
|
+
*/
|
|
305
397
|
productPlan: HubProductPlan;
|
|
306
|
-
/**
|
|
398
|
+
/**
|
|
399
|
+
* Disable Hub events.
|
|
400
|
+
*/
|
|
307
401
|
disableEvents?: boolean;
|
|
308
|
-
/**
|
|
402
|
+
/**
|
|
403
|
+
* Topic prefix (default '$SCW/events') of Hub events.
|
|
404
|
+
*/
|
|
309
405
|
eventsTopicPrefix?: string;
|
|
310
406
|
/**
|
|
311
407
|
* BETA - not implemented yet.
|
|
312
408
|
*
|
|
313
|
-
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be
|
|
314
|
-
* set.
|
|
409
|
+
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be set.
|
|
315
410
|
*/
|
|
316
411
|
twinsGraphiteConfig?: HubTwinsGraphiteConfig;
|
|
317
412
|
};
|
|
318
413
|
export type CreateNetworkRequest = {
|
|
319
414
|
/**
|
|
320
|
-
* Region to target. If none is passed will use default region from the
|
|
321
|
-
* config.
|
|
415
|
+
* Region to target. If none is passed will use default region from the config.
|
|
322
416
|
*/
|
|
323
417
|
region?: ScwRegion;
|
|
324
|
-
/**
|
|
418
|
+
/**
|
|
419
|
+
* Network name.
|
|
420
|
+
*/
|
|
325
421
|
name?: string;
|
|
326
|
-
/**
|
|
422
|
+
/**
|
|
423
|
+
* Type of network to connect with.
|
|
424
|
+
*/
|
|
327
425
|
type: NetworkNetworkType;
|
|
328
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Hub ID to connect the Network to.
|
|
428
|
+
*/
|
|
329
429
|
hubId: string;
|
|
330
|
-
/**
|
|
430
|
+
/**
|
|
431
|
+
* Topic prefix for the Network.
|
|
432
|
+
*/
|
|
331
433
|
topicPrefix: string;
|
|
332
434
|
};
|
|
333
435
|
export interface CreateNetworkResponse {
|
|
334
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* Information related to the created network.
|
|
438
|
+
*/
|
|
335
439
|
network?: Network;
|
|
336
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* Endpoint Key to keep secret. This cannot be retrieved later.
|
|
442
|
+
*/
|
|
337
443
|
secret: string;
|
|
338
444
|
}
|
|
339
445
|
export type CreateRouteRequest = {
|
|
340
446
|
/**
|
|
341
|
-
* Region to target. If none is passed will use default region from the
|
|
342
|
-
* config.
|
|
447
|
+
* Region to target. If none is passed will use default region from the config.
|
|
343
448
|
*/
|
|
344
449
|
region?: ScwRegion;
|
|
345
|
-
/**
|
|
450
|
+
/**
|
|
451
|
+
* Route name.
|
|
452
|
+
*/
|
|
346
453
|
name?: string;
|
|
347
|
-
/**
|
|
454
|
+
/**
|
|
455
|
+
* Hub ID of the route.
|
|
456
|
+
*/
|
|
348
457
|
hubId: string;
|
|
349
458
|
/**
|
|
350
|
-
* Topic the route subscribes to. It must be a valid MQTT topic and up to
|
|
351
|
-
* 65535 characters.
|
|
459
|
+
* Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
|
|
352
460
|
*/
|
|
353
461
|
topic: string;
|
|
354
462
|
/**
|
|
355
463
|
* If creating Amazon S3 Routes, Amazon S3-specific configuration fields.
|
|
356
464
|
*
|
|
357
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
358
|
-
* could be set.
|
|
465
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
359
466
|
*/
|
|
360
467
|
s3Config?: CreateRouteRequestS3Config;
|
|
361
468
|
/**
|
|
362
469
|
* If creating Database Route, DB-specific configuration fields.
|
|
363
470
|
*
|
|
364
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
365
|
-
* could be set.
|
|
471
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
366
472
|
*/
|
|
367
473
|
dbConfig?: CreateRouteRequestDatabaseConfig;
|
|
368
474
|
/**
|
|
369
475
|
* If creating Rest Route, Rest-specific configuration fields.
|
|
370
476
|
*
|
|
371
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
372
|
-
* could be set.
|
|
477
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
373
478
|
*/
|
|
374
479
|
restConfig?: CreateRouteRequestRestConfig;
|
|
375
480
|
};
|
|
376
481
|
export type DeleteDeviceRequest = {
|
|
377
482
|
/**
|
|
378
|
-
* Region to target. If none is passed will use default region from the
|
|
379
|
-
* config.
|
|
483
|
+
* Region to target. If none is passed will use default region from the config.
|
|
380
484
|
*/
|
|
381
485
|
region?: ScwRegion;
|
|
382
|
-
/**
|
|
486
|
+
/**
|
|
487
|
+
* Device ID.
|
|
488
|
+
*/
|
|
383
489
|
deviceId: string;
|
|
384
490
|
};
|
|
385
491
|
export type DeleteHubRequest = {
|
|
386
492
|
/**
|
|
387
|
-
* Region to target. If none is passed will use default region from the
|
|
388
|
-
* config.
|
|
493
|
+
* Region to target. If none is passed will use default region from the config.
|
|
389
494
|
*/
|
|
390
495
|
region?: ScwRegion;
|
|
391
|
-
/**
|
|
496
|
+
/**
|
|
497
|
+
* Hub ID.
|
|
498
|
+
*/
|
|
392
499
|
hubId: string;
|
|
393
500
|
/**
|
|
394
|
-
* Defines whether to force the deletion of devices added to this Hub or
|
|
395
|
-
* reject the operation.
|
|
501
|
+
* Defines whether to force the deletion of devices added to this Hub or reject the operation.
|
|
396
502
|
*/
|
|
397
503
|
deleteDevices?: boolean;
|
|
398
504
|
};
|
|
399
505
|
export type DeleteNetworkRequest = {
|
|
400
506
|
/**
|
|
401
|
-
* Region to target. If none is passed will use default region from the
|
|
402
|
-
* config.
|
|
507
|
+
* Region to target. If none is passed will use default region from the config.
|
|
403
508
|
*/
|
|
404
509
|
region?: ScwRegion;
|
|
405
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* Network ID.
|
|
512
|
+
*/
|
|
406
513
|
networkId: string;
|
|
407
514
|
};
|
|
408
515
|
export type DeleteRouteRequest = {
|
|
409
516
|
/**
|
|
410
|
-
* Region to target. If none is passed will use default region from the
|
|
411
|
-
* config.
|
|
517
|
+
* Region to target. If none is passed will use default region from the config.
|
|
412
518
|
*/
|
|
413
519
|
region?: ScwRegion;
|
|
414
|
-
/**
|
|
520
|
+
/**
|
|
521
|
+
* Route ID.
|
|
522
|
+
*/
|
|
415
523
|
routeId: string;
|
|
416
524
|
};
|
|
417
525
|
export type DeleteTwinDocumentRequest = {
|
|
418
526
|
/**
|
|
419
|
-
* Region to target. If none is passed will use default region from the
|
|
420
|
-
* config.
|
|
527
|
+
* Region to target. If none is passed will use default region from the config.
|
|
421
528
|
*/
|
|
422
529
|
region?: ScwRegion;
|
|
423
|
-
/**
|
|
530
|
+
/**
|
|
531
|
+
* Twin ID.
|
|
532
|
+
*/
|
|
424
533
|
twinId: string;
|
|
425
|
-
/**
|
|
534
|
+
/**
|
|
535
|
+
* Name of the document.
|
|
536
|
+
*/
|
|
426
537
|
documentName: string;
|
|
427
538
|
};
|
|
428
539
|
export type DeleteTwinDocumentsRequest = {
|
|
429
540
|
/**
|
|
430
|
-
* Region to target. If none is passed will use default region from the
|
|
431
|
-
* config.
|
|
541
|
+
* Region to target. If none is passed will use default region from the config.
|
|
432
542
|
*/
|
|
433
543
|
region?: ScwRegion;
|
|
434
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Twin ID.
|
|
546
|
+
*/
|
|
435
547
|
twinId: string;
|
|
436
548
|
};
|
|
437
549
|
export type DisableDeviceRequest = {
|
|
438
550
|
/**
|
|
439
|
-
* Region to target. If none is passed will use default region from the
|
|
440
|
-
* config.
|
|
551
|
+
* Region to target. If none is passed will use default region from the config.
|
|
441
552
|
*/
|
|
442
553
|
region?: ScwRegion;
|
|
443
|
-
/**
|
|
554
|
+
/**
|
|
555
|
+
* Device ID.
|
|
556
|
+
*/
|
|
444
557
|
deviceId: string;
|
|
445
558
|
};
|
|
446
559
|
export type DisableHubRequest = {
|
|
447
560
|
/**
|
|
448
|
-
* Region to target. If none is passed will use default region from the
|
|
449
|
-
* config.
|
|
561
|
+
* Region to target. If none is passed will use default region from the config.
|
|
450
562
|
*/
|
|
451
563
|
region?: ScwRegion;
|
|
452
|
-
/**
|
|
564
|
+
/**
|
|
565
|
+
* Hub ID.
|
|
566
|
+
*/
|
|
453
567
|
hubId: string;
|
|
454
568
|
};
|
|
455
569
|
export type EnableDeviceRequest = {
|
|
456
570
|
/**
|
|
457
|
-
* Region to target. If none is passed will use default region from the
|
|
458
|
-
* config.
|
|
571
|
+
* Region to target. If none is passed will use default region from the config.
|
|
459
572
|
*/
|
|
460
573
|
region?: ScwRegion;
|
|
461
|
-
/**
|
|
574
|
+
/**
|
|
575
|
+
* Device ID.
|
|
576
|
+
*/
|
|
462
577
|
deviceId: string;
|
|
463
578
|
};
|
|
464
579
|
export type EnableHubRequest = {
|
|
465
580
|
/**
|
|
466
|
-
* Region to target. If none is passed will use default region from the
|
|
467
|
-
* config.
|
|
581
|
+
* Region to target. If none is passed will use default region from the config.
|
|
468
582
|
*/
|
|
469
583
|
region?: ScwRegion;
|
|
470
|
-
/**
|
|
584
|
+
/**
|
|
585
|
+
* Hub ID.
|
|
586
|
+
*/
|
|
471
587
|
hubId: string;
|
|
472
588
|
};
|
|
473
589
|
export type GetDeviceCertificateRequest = {
|
|
474
590
|
/**
|
|
475
|
-
* Region to target. If none is passed will use default region from the
|
|
476
|
-
* config.
|
|
591
|
+
* Region to target. If none is passed will use default region from the config.
|
|
477
592
|
*/
|
|
478
593
|
region?: ScwRegion;
|
|
479
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* Device ID.
|
|
596
|
+
*/
|
|
480
597
|
deviceId: string;
|
|
481
598
|
};
|
|
482
599
|
export interface GetDeviceCertificateResponse {
|
|
483
|
-
/**
|
|
600
|
+
/**
|
|
601
|
+
* Information related to the created device.
|
|
602
|
+
*/
|
|
484
603
|
device?: Device;
|
|
485
|
-
/**
|
|
604
|
+
/**
|
|
605
|
+
* Device certificate.
|
|
606
|
+
*/
|
|
486
607
|
certificatePem: string;
|
|
487
608
|
}
|
|
488
609
|
export type GetDeviceMetricsRequest = {
|
|
489
610
|
/**
|
|
490
|
-
* Region to target. If none is passed will use default region from the
|
|
491
|
-
* config.
|
|
611
|
+
* Region to target. If none is passed will use default region from the config.
|
|
492
612
|
*/
|
|
493
613
|
region?: ScwRegion;
|
|
494
|
-
/**
|
|
614
|
+
/**
|
|
615
|
+
* Device ID.
|
|
616
|
+
*/
|
|
495
617
|
deviceId: string;
|
|
496
|
-
/**
|
|
618
|
+
/**
|
|
619
|
+
* Start date used to compute the best scale for the returned metrics.
|
|
620
|
+
*/
|
|
497
621
|
startDate?: Date;
|
|
498
622
|
};
|
|
499
623
|
export interface GetDeviceMetricsResponse {
|
|
500
|
-
/**
|
|
624
|
+
/**
|
|
625
|
+
* Metrics for a device over the requested period.
|
|
626
|
+
*/
|
|
501
627
|
metrics: TimeSeries[];
|
|
502
628
|
}
|
|
503
629
|
export type GetDeviceRequest = {
|
|
504
630
|
/**
|
|
505
|
-
* Region to target. If none is passed will use default region from the
|
|
506
|
-
* config.
|
|
631
|
+
* Region to target. If none is passed will use default region from the config.
|
|
507
632
|
*/
|
|
508
633
|
region?: ScwRegion;
|
|
509
|
-
/**
|
|
634
|
+
/**
|
|
635
|
+
* Device ID.
|
|
636
|
+
*/
|
|
510
637
|
deviceId: string;
|
|
511
638
|
};
|
|
512
639
|
export type GetHubCARequest = {
|
|
513
640
|
/**
|
|
514
|
-
* Region to target. If none is passed will use default region from the
|
|
515
|
-
* config.
|
|
641
|
+
* Region to target. If none is passed will use default region from the config.
|
|
516
642
|
*/
|
|
517
643
|
region?: ScwRegion;
|
|
518
644
|
hubId: string;
|
|
@@ -522,277 +648,373 @@ export interface GetHubCAResponse {
|
|
|
522
648
|
}
|
|
523
649
|
export type GetHubMetricsRequest = {
|
|
524
650
|
/**
|
|
525
|
-
* Region to target. If none is passed will use default region from the
|
|
526
|
-
* config.
|
|
651
|
+
* Region to target. If none is passed will use default region from the config.
|
|
527
652
|
*/
|
|
528
653
|
region?: ScwRegion;
|
|
529
|
-
/**
|
|
654
|
+
/**
|
|
655
|
+
* Hub ID.
|
|
656
|
+
*/
|
|
530
657
|
hubId: string;
|
|
531
|
-
/**
|
|
658
|
+
/**
|
|
659
|
+
* Start date used to compute the best scale for returned metrics.
|
|
660
|
+
*/
|
|
532
661
|
startDate?: Date;
|
|
533
662
|
};
|
|
534
663
|
export interface GetHubMetricsResponse {
|
|
535
|
-
/**
|
|
664
|
+
/**
|
|
665
|
+
* Metrics for a Hub over the requested period.
|
|
666
|
+
*/
|
|
536
667
|
metrics: TimeSeries[];
|
|
537
668
|
}
|
|
538
669
|
export type GetHubRequest = {
|
|
539
670
|
/**
|
|
540
|
-
* Region to target. If none is passed will use default region from the
|
|
541
|
-
* config.
|
|
671
|
+
* Region to target. If none is passed will use default region from the config.
|
|
542
672
|
*/
|
|
543
673
|
region?: ScwRegion;
|
|
544
|
-
/**
|
|
674
|
+
/**
|
|
675
|
+
* Hub ID.
|
|
676
|
+
*/
|
|
545
677
|
hubId: string;
|
|
546
678
|
};
|
|
547
679
|
export type GetNetworkRequest = {
|
|
548
680
|
/**
|
|
549
|
-
* Region to target. If none is passed will use default region from the
|
|
550
|
-
* config.
|
|
681
|
+
* Region to target. If none is passed will use default region from the config.
|
|
551
682
|
*/
|
|
552
683
|
region?: ScwRegion;
|
|
553
|
-
/**
|
|
684
|
+
/**
|
|
685
|
+
* Network ID.
|
|
686
|
+
*/
|
|
554
687
|
networkId: string;
|
|
555
688
|
};
|
|
556
689
|
export type GetRouteRequest = {
|
|
557
690
|
/**
|
|
558
|
-
* Region to target. If none is passed will use default region from the
|
|
559
|
-
* config.
|
|
691
|
+
* Region to target. If none is passed will use default region from the config.
|
|
560
692
|
*/
|
|
561
693
|
region?: ScwRegion;
|
|
562
|
-
/**
|
|
694
|
+
/**
|
|
695
|
+
* Route ID.
|
|
696
|
+
*/
|
|
563
697
|
routeId: string;
|
|
564
698
|
};
|
|
565
699
|
export type GetTwinDocumentRequest = {
|
|
566
700
|
/**
|
|
567
|
-
* Region to target. If none is passed will use default region from the
|
|
568
|
-
* config.
|
|
701
|
+
* Region to target. If none is passed will use default region from the config.
|
|
569
702
|
*/
|
|
570
703
|
region?: ScwRegion;
|
|
571
|
-
/**
|
|
704
|
+
/**
|
|
705
|
+
* Twin ID.
|
|
706
|
+
*/
|
|
572
707
|
twinId: string;
|
|
573
|
-
/**
|
|
708
|
+
/**
|
|
709
|
+
* Name of the document.
|
|
710
|
+
*/
|
|
574
711
|
documentName: string;
|
|
575
712
|
};
|
|
576
713
|
export type ListDevicesRequest = {
|
|
577
714
|
/**
|
|
578
|
-
* Region to target. If none is passed will use default region from the
|
|
579
|
-
* config.
|
|
715
|
+
* Region to target. If none is passed will use default region from the config.
|
|
580
716
|
*/
|
|
581
717
|
region?: ScwRegion;
|
|
582
|
-
/**
|
|
718
|
+
/**
|
|
719
|
+
* Page number to return, from the paginated results.
|
|
720
|
+
*/
|
|
583
721
|
page?: number;
|
|
584
|
-
/**
|
|
722
|
+
/**
|
|
723
|
+
* Number of devices to return within a page. Maximum value is 100.
|
|
724
|
+
*/
|
|
585
725
|
pageSize?: number;
|
|
586
|
-
/**
|
|
726
|
+
/**
|
|
727
|
+
* Ordering of requested devices.
|
|
728
|
+
*/
|
|
587
729
|
orderBy?: ListDevicesRequestOrderBy;
|
|
588
|
-
/**
|
|
730
|
+
/**
|
|
731
|
+
* Name to filter for, only devices with this name will be returned.
|
|
732
|
+
*/
|
|
589
733
|
name?: string;
|
|
590
|
-
/**
|
|
734
|
+
/**
|
|
735
|
+
* Hub ID to filter for, only devices attached to this Hub will be returned.
|
|
736
|
+
*/
|
|
591
737
|
hubId?: string;
|
|
592
|
-
/**
|
|
738
|
+
/**
|
|
739
|
+
* Defines wheter to filter the allow_insecure flag.
|
|
740
|
+
*/
|
|
593
741
|
allowInsecure?: boolean;
|
|
594
|
-
/**
|
|
742
|
+
/**
|
|
743
|
+
* Device status (enabled, disabled, etc.).
|
|
744
|
+
*/
|
|
595
745
|
status?: DeviceStatus;
|
|
596
746
|
};
|
|
597
747
|
export interface ListDevicesResponse {
|
|
598
|
-
/**
|
|
748
|
+
/**
|
|
749
|
+
* Total number of devices.
|
|
750
|
+
*/
|
|
599
751
|
totalCount: number;
|
|
600
|
-
/**
|
|
752
|
+
/**
|
|
753
|
+
* Page of devices.
|
|
754
|
+
*/
|
|
601
755
|
devices: Device[];
|
|
602
756
|
}
|
|
603
757
|
export type ListHubsRequest = {
|
|
604
758
|
/**
|
|
605
|
-
* Region to target. If none is passed will use default region from the
|
|
606
|
-
* config.
|
|
759
|
+
* Region to target. If none is passed will use default region from the config.
|
|
607
760
|
*/
|
|
608
761
|
region?: ScwRegion;
|
|
609
|
-
/**
|
|
762
|
+
/**
|
|
763
|
+
* Page number to return, from the paginated results.
|
|
764
|
+
*/
|
|
610
765
|
page?: number;
|
|
611
|
-
/**
|
|
766
|
+
/**
|
|
767
|
+
* Number of Hubs to return within a page. Maximum value is 100.
|
|
768
|
+
*/
|
|
612
769
|
pageSize?: number;
|
|
613
|
-
/**
|
|
770
|
+
/**
|
|
771
|
+
* Sort order of Hubs in the response.
|
|
772
|
+
*/
|
|
614
773
|
orderBy?: ListHubsRequestOrderBy;
|
|
615
|
-
/**
|
|
774
|
+
/**
|
|
775
|
+
* Only list Hubs of this Project ID.
|
|
776
|
+
*/
|
|
616
777
|
projectId?: string;
|
|
617
|
-
/**
|
|
778
|
+
/**
|
|
779
|
+
* Only list Hubs of this Organization ID.
|
|
780
|
+
*/
|
|
618
781
|
organizationId?: string;
|
|
619
|
-
/**
|
|
782
|
+
/**
|
|
783
|
+
* Hub name.
|
|
784
|
+
*/
|
|
620
785
|
name?: string;
|
|
621
786
|
};
|
|
622
787
|
export interface ListHubsResponse {
|
|
623
|
-
/**
|
|
788
|
+
/**
|
|
789
|
+
* Total number of Hubs.
|
|
790
|
+
*/
|
|
624
791
|
totalCount: number;
|
|
625
|
-
/**
|
|
792
|
+
/**
|
|
793
|
+
* A page of hubs.
|
|
794
|
+
*/
|
|
626
795
|
hubs: Hub[];
|
|
627
796
|
}
|
|
628
797
|
export type ListNetworksRequest = {
|
|
629
798
|
/**
|
|
630
|
-
* Region to target. If none is passed will use default region from the
|
|
631
|
-
* config.
|
|
799
|
+
* Region to target. If none is passed will use default region from the config.
|
|
632
800
|
*/
|
|
633
801
|
region?: ScwRegion;
|
|
634
|
-
/**
|
|
802
|
+
/**
|
|
803
|
+
* Page number to return, from the paginated results.
|
|
804
|
+
*/
|
|
635
805
|
page?: number;
|
|
636
|
-
/**
|
|
806
|
+
/**
|
|
807
|
+
* Number of networks to return. The maximum value is 100.
|
|
808
|
+
*/
|
|
637
809
|
pageSize?: number;
|
|
638
|
-
/**
|
|
810
|
+
/**
|
|
811
|
+
* Ordering of requested routes.
|
|
812
|
+
*/
|
|
639
813
|
orderBy?: ListNetworksRequestOrderBy;
|
|
640
|
-
/**
|
|
814
|
+
/**
|
|
815
|
+
* Network name to filter for.
|
|
816
|
+
*/
|
|
641
817
|
name?: string;
|
|
642
|
-
/**
|
|
818
|
+
/**
|
|
819
|
+
* Hub ID to filter for.
|
|
820
|
+
*/
|
|
643
821
|
hubId?: string;
|
|
644
|
-
/**
|
|
822
|
+
/**
|
|
823
|
+
* Topic prefix to filter for.
|
|
824
|
+
*/
|
|
645
825
|
topicPrefix?: string;
|
|
646
826
|
};
|
|
647
827
|
export interface ListNetworksResponse {
|
|
648
|
-
/**
|
|
828
|
+
/**
|
|
829
|
+
* Total number of Networks.
|
|
830
|
+
*/
|
|
649
831
|
totalCount: number;
|
|
650
|
-
/**
|
|
832
|
+
/**
|
|
833
|
+
* Page of networks.
|
|
834
|
+
*/
|
|
651
835
|
networks: Network[];
|
|
652
836
|
}
|
|
653
837
|
export type ListRoutesRequest = {
|
|
654
838
|
/**
|
|
655
|
-
* Region to target. If none is passed will use default region from the
|
|
656
|
-
* config.
|
|
839
|
+
* Region to target. If none is passed will use default region from the config.
|
|
657
840
|
*/
|
|
658
841
|
region?: ScwRegion;
|
|
659
|
-
/**
|
|
842
|
+
/**
|
|
843
|
+
* Page number to return, from the paginated results.
|
|
844
|
+
*/
|
|
660
845
|
page?: number;
|
|
661
|
-
/**
|
|
846
|
+
/**
|
|
847
|
+
* Number of routes to return within a page. Maximum value is 100.
|
|
848
|
+
*/
|
|
662
849
|
pageSize?: number;
|
|
663
|
-
/**
|
|
850
|
+
/**
|
|
851
|
+
* Ordering of requested routes.
|
|
852
|
+
*/
|
|
664
853
|
orderBy?: ListRoutesRequestOrderBy;
|
|
665
|
-
/**
|
|
854
|
+
/**
|
|
855
|
+
* Hub ID to filter for.
|
|
856
|
+
*/
|
|
666
857
|
hubId?: string;
|
|
667
|
-
/**
|
|
858
|
+
/**
|
|
859
|
+
* Route name to filter for.
|
|
860
|
+
*/
|
|
668
861
|
name?: string;
|
|
669
862
|
};
|
|
670
863
|
export interface ListRoutesResponse {
|
|
671
|
-
/**
|
|
864
|
+
/**
|
|
865
|
+
* Total number of routes.
|
|
866
|
+
*/
|
|
672
867
|
totalCount: number;
|
|
673
|
-
/**
|
|
868
|
+
/**
|
|
869
|
+
* Page of routes.
|
|
870
|
+
*/
|
|
674
871
|
routes: RouteSummary[];
|
|
675
872
|
}
|
|
676
873
|
export type ListTwinDocumentsRequest = {
|
|
677
874
|
/**
|
|
678
|
-
* Region to target. If none is passed will use default region from the
|
|
679
|
-
* config.
|
|
875
|
+
* Region to target. If none is passed will use default region from the config.
|
|
680
876
|
*/
|
|
681
877
|
region?: ScwRegion;
|
|
682
|
-
/**
|
|
878
|
+
/**
|
|
879
|
+
* Twin ID.
|
|
880
|
+
*/
|
|
683
881
|
twinId: string;
|
|
684
882
|
};
|
|
685
883
|
export interface ListTwinDocumentsResponse {
|
|
686
|
-
/**
|
|
884
|
+
/**
|
|
885
|
+
* List of the twin document.
|
|
886
|
+
*/
|
|
687
887
|
documents: ListTwinDocumentsResponseDocumentSummary[];
|
|
688
888
|
}
|
|
689
889
|
export type PatchTwinDocumentRequest = {
|
|
690
890
|
/**
|
|
691
|
-
* Region to target. If none is passed will use default region from the
|
|
692
|
-
* config.
|
|
891
|
+
* Region to target. If none is passed will use default region from the config.
|
|
693
892
|
*/
|
|
694
893
|
region?: ScwRegion;
|
|
695
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* Twin ID.
|
|
896
|
+
*/
|
|
696
897
|
twinId: string;
|
|
697
|
-
/**
|
|
898
|
+
/**
|
|
899
|
+
* Name of the document.
|
|
900
|
+
*/
|
|
698
901
|
documentName: string;
|
|
699
902
|
/**
|
|
700
|
-
* If set, ensures that the current version of the document matches before
|
|
701
|
-
* persisting the update.
|
|
903
|
+
* If set, ensures that the current version of the document matches before persisting the update.
|
|
702
904
|
*/
|
|
703
905
|
version?: number;
|
|
704
906
|
/**
|
|
705
|
-
* A json data that will be applied on the document's current data.
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
907
|
+
* A json data that will be applied on the document's current data.
|
|
908
|
+
Patching rules:
|
|
909
|
+
* The patch goes recursively through the patch objects.
|
|
910
|
+
* If the patch object property is null, it is removed from the final object.
|
|
911
|
+
* If the patch object property is a value (number, strings, bool, arrays), it is replaced.
|
|
912
|
+
* If the patch object property is an object, the previous rules will be applied recursively on it.
|
|
711
913
|
*/
|
|
712
914
|
data?: Record<string, unknown>;
|
|
713
915
|
};
|
|
714
916
|
export type PutTwinDocumentRequest = {
|
|
715
917
|
/**
|
|
716
|
-
* Region to target. If none is passed will use default region from the
|
|
717
|
-
* config.
|
|
918
|
+
* Region to target. If none is passed will use default region from the config.
|
|
718
919
|
*/
|
|
719
920
|
region?: ScwRegion;
|
|
720
|
-
/**
|
|
921
|
+
/**
|
|
922
|
+
* Twin ID.
|
|
923
|
+
*/
|
|
721
924
|
twinId: string;
|
|
722
|
-
/**
|
|
925
|
+
/**
|
|
926
|
+
* Name of the document.
|
|
927
|
+
*/
|
|
723
928
|
documentName: string;
|
|
724
929
|
/**
|
|
725
|
-
* If set, ensures that the current version of the document matches before
|
|
726
|
-
* persisting the update.
|
|
930
|
+
* If set, ensures that the current version of the document matches before persisting the update.
|
|
727
931
|
*/
|
|
728
932
|
version?: number;
|
|
729
|
-
/**
|
|
933
|
+
/**
|
|
934
|
+
* New data that will replace the contents of the document.
|
|
935
|
+
*/
|
|
730
936
|
data?: Record<string, unknown>;
|
|
731
937
|
};
|
|
732
938
|
export type RenewDeviceCertificateRequest = {
|
|
733
939
|
/**
|
|
734
|
-
* Region to target. If none is passed will use default region from the
|
|
735
|
-
* config.
|
|
940
|
+
* Region to target. If none is passed will use default region from the config.
|
|
736
941
|
*/
|
|
737
942
|
region?: ScwRegion;
|
|
738
|
-
/**
|
|
943
|
+
/**
|
|
944
|
+
* Device ID.
|
|
945
|
+
*/
|
|
739
946
|
deviceId: string;
|
|
740
947
|
};
|
|
741
948
|
export interface RenewDeviceCertificateResponse {
|
|
742
|
-
/**
|
|
949
|
+
/**
|
|
950
|
+
* Information related to the created device.
|
|
951
|
+
*/
|
|
743
952
|
device?: Device;
|
|
744
|
-
/**
|
|
953
|
+
/**
|
|
954
|
+
* Device certificate.
|
|
955
|
+
*/
|
|
745
956
|
certificate?: Certificate;
|
|
746
957
|
}
|
|
747
958
|
export interface Route {
|
|
748
|
-
/**
|
|
959
|
+
/**
|
|
960
|
+
* Route ID.
|
|
961
|
+
*/
|
|
749
962
|
id: string;
|
|
750
|
-
/**
|
|
963
|
+
/**
|
|
964
|
+
* Route name.
|
|
965
|
+
*/
|
|
751
966
|
name: string;
|
|
752
|
-
/**
|
|
967
|
+
/**
|
|
968
|
+
* Hub ID of the route.
|
|
969
|
+
*/
|
|
753
970
|
hubId: string;
|
|
754
971
|
/**
|
|
755
|
-
* Topic the route subscribes to. It must be a valid MQTT topic and up to
|
|
756
|
-
* 65535 characters.
|
|
972
|
+
* Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
|
|
757
973
|
*/
|
|
758
974
|
topic: string;
|
|
759
|
-
/**
|
|
975
|
+
/**
|
|
976
|
+
* Route type.
|
|
977
|
+
*/
|
|
760
978
|
type: RouteRouteType;
|
|
761
|
-
/**
|
|
979
|
+
/**
|
|
980
|
+
* Date at which the route was created.
|
|
981
|
+
*/
|
|
762
982
|
createdAt?: Date;
|
|
763
983
|
/**
|
|
764
984
|
* When using Amazon S3 Routes, Amazon S3-specific configuration fields.
|
|
765
985
|
*
|
|
766
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
767
|
-
* could be set.
|
|
986
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
768
987
|
*/
|
|
769
988
|
s3Config?: RouteS3Config;
|
|
770
989
|
/**
|
|
771
990
|
* When using Database Route, DB-specific configuration fields.
|
|
772
991
|
*
|
|
773
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
774
|
-
* could be set.
|
|
992
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
775
993
|
*/
|
|
776
994
|
dbConfig?: RouteDatabaseConfig;
|
|
777
995
|
/**
|
|
778
996
|
* When using Rest Route, Rest-specific configuration fields.
|
|
779
997
|
*
|
|
780
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
781
|
-
* could be set.
|
|
998
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
782
999
|
*/
|
|
783
1000
|
restConfig?: RouteRestConfig;
|
|
784
|
-
/**
|
|
1001
|
+
/**
|
|
1002
|
+
* Date at which the route was last updated.
|
|
1003
|
+
*/
|
|
785
1004
|
updatedAt?: Date;
|
|
786
1005
|
}
|
|
787
1006
|
export type SetDeviceCertificateRequest = {
|
|
788
1007
|
/**
|
|
789
|
-
* Region to target. If none is passed will use default region from the
|
|
790
|
-
* config.
|
|
1008
|
+
* Region to target. If none is passed will use default region from the config.
|
|
791
1009
|
*/
|
|
792
1010
|
region?: ScwRegion;
|
|
793
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Device ID.
|
|
1013
|
+
*/
|
|
794
1014
|
deviceId: string;
|
|
795
|
-
/**
|
|
1015
|
+
/**
|
|
1016
|
+
* PEM-encoded custom certificate.
|
|
1017
|
+
*/
|
|
796
1018
|
certificatePem: string;
|
|
797
1019
|
};
|
|
798
1020
|
export interface SetDeviceCertificateResponse {
|
|
@@ -801,116 +1023,139 @@ export interface SetDeviceCertificateResponse {
|
|
|
801
1023
|
}
|
|
802
1024
|
export type SetHubCARequest = {
|
|
803
1025
|
/**
|
|
804
|
-
* Region to target. If none is passed will use default region from the
|
|
805
|
-
* config.
|
|
1026
|
+
* Region to target. If none is passed will use default region from the config.
|
|
806
1027
|
*/
|
|
807
1028
|
region?: ScwRegion;
|
|
808
|
-
/**
|
|
1029
|
+
/**
|
|
1030
|
+
* Hub ID.
|
|
1031
|
+
*/
|
|
809
1032
|
hubId: string;
|
|
810
|
-
/**
|
|
1033
|
+
/**
|
|
1034
|
+
* CA's PEM-encoded certificate.
|
|
1035
|
+
*/
|
|
811
1036
|
caCertPem: string;
|
|
812
1037
|
/**
|
|
813
|
-
* Challenge is a PEM-encoded certificate that acts as proof of possession of
|
|
814
|
-
* the CA. It must be signed by the CA, and have a Common Name equal to the
|
|
815
|
-
* Hub ID.
|
|
1038
|
+
* Challenge is a PEM-encoded certificate that acts as proof of possession of the CA. It must be signed by the CA, and have a Common Name equal to the Hub ID.
|
|
816
1039
|
*/
|
|
817
1040
|
challengeCertPem: string;
|
|
818
1041
|
};
|
|
819
1042
|
export interface TwinDocument {
|
|
820
|
-
/**
|
|
1043
|
+
/**
|
|
1044
|
+
* Parent twin ID of the document.
|
|
1045
|
+
*/
|
|
821
1046
|
twinId: string;
|
|
822
|
-
/**
|
|
1047
|
+
/**
|
|
1048
|
+
* Name of the document.
|
|
1049
|
+
*/
|
|
823
1050
|
documentName: string;
|
|
824
|
-
/**
|
|
1051
|
+
/**
|
|
1052
|
+
* New version of the document.
|
|
1053
|
+
*/
|
|
825
1054
|
version: number;
|
|
826
|
-
/**
|
|
1055
|
+
/**
|
|
1056
|
+
* New data related to the document.
|
|
1057
|
+
*/
|
|
827
1058
|
data?: Record<string, unknown>;
|
|
828
1059
|
}
|
|
829
1060
|
export type UpdateDeviceRequest = {
|
|
830
1061
|
/**
|
|
831
|
-
* Region to target. If none is passed will use default region from the
|
|
832
|
-
* config.
|
|
1062
|
+
* Region to target. If none is passed will use default region from the config.
|
|
833
1063
|
*/
|
|
834
1064
|
region?: ScwRegion;
|
|
835
|
-
/**
|
|
1065
|
+
/**
|
|
1066
|
+
* Device ID.
|
|
1067
|
+
*/
|
|
836
1068
|
deviceId: string;
|
|
837
|
-
/**
|
|
1069
|
+
/**
|
|
1070
|
+
* Description for the device.
|
|
1071
|
+
*/
|
|
838
1072
|
description?: string;
|
|
839
1073
|
/**
|
|
840
|
-
* Defines whether to allow plain and server-authenticated SSL connections in
|
|
841
|
-
* addition to mutually-authenticated ones.
|
|
1074
|
+
* Defines whether to allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones.
|
|
842
1075
|
*/
|
|
843
1076
|
allowInsecure?: boolean;
|
|
844
1077
|
/**
|
|
845
|
-
* Defines whether to allow multiple physical devices to connect with this
|
|
846
|
-
* device's credentials.
|
|
1078
|
+
* Defines whether to allow multiple physical devices to connect with this device's credentials.
|
|
847
1079
|
*/
|
|
848
1080
|
allowMultipleConnections?: boolean;
|
|
849
|
-
/**
|
|
1081
|
+
/**
|
|
1082
|
+
* Filter-sets to restrict the topics the device can publish/subscribe to.
|
|
1083
|
+
*/
|
|
850
1084
|
messageFilters?: DeviceMessageFilters;
|
|
851
|
-
/**
|
|
1085
|
+
/**
|
|
1086
|
+
* Change Hub for this device, additional fees may apply, see IoT Hub pricing.
|
|
1087
|
+
*/
|
|
852
1088
|
hubId?: string;
|
|
853
1089
|
};
|
|
854
1090
|
export type UpdateHubRequest = {
|
|
855
1091
|
/**
|
|
856
|
-
* Region to target. If none is passed will use default region from the
|
|
857
|
-
* config.
|
|
1092
|
+
* Region to target. If none is passed will use default region from the config.
|
|
858
1093
|
*/
|
|
859
1094
|
region?: ScwRegion;
|
|
860
|
-
/**
|
|
1095
|
+
/**
|
|
1096
|
+
* ID of the Hub you want to update.
|
|
1097
|
+
*/
|
|
861
1098
|
hubId: string;
|
|
862
|
-
/**
|
|
1099
|
+
/**
|
|
1100
|
+
* Hub name (up to 255 characters).
|
|
1101
|
+
*/
|
|
863
1102
|
name?: string;
|
|
864
|
-
/**
|
|
1103
|
+
/**
|
|
1104
|
+
* Hub product plan.
|
|
1105
|
+
*/
|
|
865
1106
|
productPlan?: HubProductPlan;
|
|
866
|
-
/**
|
|
1107
|
+
/**
|
|
1108
|
+
* Disable Hub events.
|
|
1109
|
+
*/
|
|
867
1110
|
disableEvents?: boolean;
|
|
868
|
-
/**
|
|
1111
|
+
/**
|
|
1112
|
+
* Topic prefix of Hub events.
|
|
1113
|
+
*/
|
|
869
1114
|
eventsTopicPrefix?: string;
|
|
870
|
-
/**
|
|
1115
|
+
/**
|
|
1116
|
+
* Enable device auto provisioning.
|
|
1117
|
+
*/
|
|
871
1118
|
enableDeviceAutoProvisioning?: boolean;
|
|
872
1119
|
/**
|
|
873
1120
|
* BETA - not implemented yet.
|
|
874
1121
|
*
|
|
875
|
-
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be
|
|
876
|
-
* set.
|
|
1122
|
+
* One-of ('twinsDbConfig'): at most one of 'twinsGraphiteConfig' could be set.
|
|
877
1123
|
*/
|
|
878
1124
|
twinsGraphiteConfig?: HubTwinsGraphiteConfig;
|
|
879
1125
|
};
|
|
880
1126
|
export type UpdateRouteRequest = {
|
|
881
1127
|
/**
|
|
882
|
-
* Region to target. If none is passed will use default region from the
|
|
883
|
-
* config.
|
|
1128
|
+
* Region to target. If none is passed will use default region from the config.
|
|
884
1129
|
*/
|
|
885
1130
|
region?: ScwRegion;
|
|
886
|
-
/**
|
|
1131
|
+
/**
|
|
1132
|
+
* Route id.
|
|
1133
|
+
*/
|
|
887
1134
|
routeId: string;
|
|
888
|
-
/**
|
|
1135
|
+
/**
|
|
1136
|
+
* Route name.
|
|
1137
|
+
*/
|
|
889
1138
|
name?: string;
|
|
890
1139
|
/**
|
|
891
|
-
* Topic the route subscribes to. It must be a valid MQTT topic and up to
|
|
892
|
-
* 65535 characters.
|
|
1140
|
+
* Topic the route subscribes to. It must be a valid MQTT topic and up to 65535 characters.
|
|
893
1141
|
*/
|
|
894
1142
|
topic?: string;
|
|
895
1143
|
/**
|
|
896
1144
|
* When updating Amazon S3 Route, Amazon S3-specific configuration fields.
|
|
897
1145
|
*
|
|
898
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
899
|
-
* could be set.
|
|
1146
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
900
1147
|
*/
|
|
901
1148
|
s3Config?: UpdateRouteRequestS3Config;
|
|
902
1149
|
/**
|
|
903
1150
|
* When updating Database Route, DB-specific configuration fields.
|
|
904
1151
|
*
|
|
905
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
906
|
-
* could be set.
|
|
1152
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
907
1153
|
*/
|
|
908
1154
|
dbConfig?: UpdateRouteRequestDatabaseConfig;
|
|
909
1155
|
/**
|
|
910
1156
|
* When updating Rest Route, Rest-specific configuration fields.
|
|
911
1157
|
*
|
|
912
|
-
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig'
|
|
913
|
-
* could be set.
|
|
1158
|
+
* One-of ('config'): at most one of 's3Config', 'dbConfig', 'restConfig' could be set.
|
|
914
1159
|
*/
|
|
915
1160
|
restConfig?: UpdateRouteRequestRestConfig;
|
|
916
1161
|
};
|