1 package devices
2
3
4
5
6
7
8
9
10 type AccessRights string
11
12 const (
13
14 DeviceConnect AccessRights = "DeviceConnect"
15
16 RegistryRead AccessRights = "RegistryRead"
17
18 RegistryReadDeviceConnect AccessRights = "RegistryRead, DeviceConnect"
19
20 RegistryReadRegistryWrite AccessRights = "RegistryRead, RegistryWrite"
21
22 RegistryReadRegistryWriteDeviceConnect AccessRights = "RegistryRead, RegistryWrite, DeviceConnect"
23
24 RegistryReadRegistryWriteServiceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect"
25
26 RegistryReadRegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryRead, RegistryWrite, ServiceConnect, DeviceConnect"
27
28 RegistryReadServiceConnect AccessRights = "RegistryRead, ServiceConnect"
29
30 RegistryReadServiceConnectDeviceConnect AccessRights = "RegistryRead, ServiceConnect, DeviceConnect"
31
32 RegistryWrite AccessRights = "RegistryWrite"
33
34 RegistryWriteDeviceConnect AccessRights = "RegistryWrite, DeviceConnect"
35
36 RegistryWriteServiceConnect AccessRights = "RegistryWrite, ServiceConnect"
37
38 RegistryWriteServiceConnectDeviceConnect AccessRights = "RegistryWrite, ServiceConnect, DeviceConnect"
39
40 ServiceConnect AccessRights = "ServiceConnect"
41
42 ServiceConnectDeviceConnect AccessRights = "ServiceConnect, DeviceConnect"
43 )
44
45
46 func PossibleAccessRightsValues() []AccessRights {
47 return []AccessRights{DeviceConnect, RegistryRead, RegistryReadDeviceConnect, RegistryReadRegistryWrite, RegistryReadRegistryWriteDeviceConnect, RegistryReadRegistryWriteServiceConnect, RegistryReadRegistryWriteServiceConnectDeviceConnect, RegistryReadServiceConnect, RegistryReadServiceConnectDeviceConnect, RegistryWrite, RegistryWriteDeviceConnect, RegistryWriteServiceConnect, RegistryWriteServiceConnectDeviceConnect, ServiceConnect, ServiceConnectDeviceConnect}
48 }
49
50
51 type AuthenticationType string
52
53 const (
54
55 IdentityBased AuthenticationType = "identityBased"
56
57 KeyBased AuthenticationType = "keyBased"
58 )
59
60
61 func PossibleAuthenticationTypeValues() []AuthenticationType {
62 return []AuthenticationType{IdentityBased, KeyBased}
63 }
64
65
66 type Capabilities string
67
68 const (
69
70 DeviceManagement Capabilities = "DeviceManagement"
71
72 None Capabilities = "None"
73 )
74
75
76 func PossibleCapabilitiesValues() []Capabilities {
77 return []Capabilities{DeviceManagement, None}
78 }
79
80
81 type Encoding string
82
83 const (
84
85 Avro Encoding = "Avro"
86
87 AvroDeflate Encoding = "AvroDeflate"
88
89 JSON Encoding = "JSON"
90 )
91
92
93 func PossibleEncodingValues() []Encoding {
94 return []Encoding{Avro, AvroDeflate, JSON}
95 }
96
97
98 type EndpointHealthStatus string
99
100 const (
101
102 Dead EndpointHealthStatus = "dead"
103
104 Healthy EndpointHealthStatus = "healthy"
105
106 Unhealthy EndpointHealthStatus = "unhealthy"
107
108 Unknown EndpointHealthStatus = "unknown"
109 )
110
111
112 func PossibleEndpointHealthStatusValues() []EndpointHealthStatus {
113 return []EndpointHealthStatus{Dead, Healthy, Unhealthy, Unknown}
114 }
115
116
117 type IotHubNameUnavailabilityReason string
118
119 const (
120
121 AlreadyExists IotHubNameUnavailabilityReason = "AlreadyExists"
122
123 Invalid IotHubNameUnavailabilityReason = "Invalid"
124 )
125
126
127 func PossibleIotHubNameUnavailabilityReasonValues() []IotHubNameUnavailabilityReason {
128 return []IotHubNameUnavailabilityReason{AlreadyExists, Invalid}
129 }
130
131
132 type IotHubReplicaRoleType string
133
134 const (
135
136 Primary IotHubReplicaRoleType = "primary"
137
138 Secondary IotHubReplicaRoleType = "secondary"
139 )
140
141
142 func PossibleIotHubReplicaRoleTypeValues() []IotHubReplicaRoleType {
143 return []IotHubReplicaRoleType{Primary, Secondary}
144 }
145
146
147 type IotHubScaleType string
148
149 const (
150
151 IotHubScaleTypeAutomatic IotHubScaleType = "Automatic"
152
153 IotHubScaleTypeManual IotHubScaleType = "Manual"
154
155 IotHubScaleTypeNone IotHubScaleType = "None"
156 )
157
158
159 func PossibleIotHubScaleTypeValues() []IotHubScaleType {
160 return []IotHubScaleType{IotHubScaleTypeAutomatic, IotHubScaleTypeManual, IotHubScaleTypeNone}
161 }
162
163
164 type IotHubSku string
165
166 const (
167
168 B1 IotHubSku = "B1"
169
170 B2 IotHubSku = "B2"
171
172 B3 IotHubSku = "B3"
173
174 F1 IotHubSku = "F1"
175
176 S1 IotHubSku = "S1"
177
178 S2 IotHubSku = "S2"
179
180 S3 IotHubSku = "S3"
181 )
182
183
184 func PossibleIotHubSkuValues() []IotHubSku {
185 return []IotHubSku{B1, B2, B3, F1, S1, S2, S3}
186 }
187
188
189 type IotHubSkuTier string
190
191 const (
192
193 Basic IotHubSkuTier = "Basic"
194
195 Free IotHubSkuTier = "Free"
196
197 Standard IotHubSkuTier = "Standard"
198 )
199
200
201 func PossibleIotHubSkuTierValues() []IotHubSkuTier {
202 return []IotHubSkuTier{Basic, Free, Standard}
203 }
204
205
206 type IPFilterActionType string
207
208 const (
209
210 Accept IPFilterActionType = "Accept"
211
212 Reject IPFilterActionType = "Reject"
213 )
214
215
216 func PossibleIPFilterActionTypeValues() []IPFilterActionType {
217 return []IPFilterActionType{Accept, Reject}
218 }
219
220
221 type JobStatus string
222
223 const (
224
225 JobStatusCancelled JobStatus = "cancelled"
226
227 JobStatusCompleted JobStatus = "completed"
228
229 JobStatusEnqueued JobStatus = "enqueued"
230
231 JobStatusFailed JobStatus = "failed"
232
233 JobStatusRunning JobStatus = "running"
234
235 JobStatusUnknown JobStatus = "unknown"
236 )
237
238
239 func PossibleJobStatusValues() []JobStatus {
240 return []JobStatus{JobStatusCancelled, JobStatusCompleted, JobStatusEnqueued, JobStatusFailed, JobStatusRunning, JobStatusUnknown}
241 }
242
243
244 type JobType string
245
246 const (
247
248 JobTypeBackup JobType = "backup"
249
250 JobTypeExport JobType = "export"
251
252 JobTypeFactoryResetDevice JobType = "factoryResetDevice"
253
254 JobTypeFirmwareUpdate JobType = "firmwareUpdate"
255
256 JobTypeImport JobType = "import"
257
258 JobTypeReadDeviceProperties JobType = "readDeviceProperties"
259
260 JobTypeRebootDevice JobType = "rebootDevice"
261
262 JobTypeUnknown JobType = "unknown"
263
264 JobTypeUpdateDeviceConfiguration JobType = "updateDeviceConfiguration"
265
266 JobTypeWriteDeviceProperties JobType = "writeDeviceProperties"
267 )
268
269
270 func PossibleJobTypeValues() []JobType {
271 return []JobType{JobTypeBackup, JobTypeExport, JobTypeFactoryResetDevice, JobTypeFirmwareUpdate, JobTypeImport, JobTypeReadDeviceProperties, JobTypeRebootDevice, JobTypeUnknown, JobTypeUpdateDeviceConfiguration, JobTypeWriteDeviceProperties}
272 }
273
274
275 type PrivateLinkServiceConnectionStatus string
276
277 const (
278
279 Approved PrivateLinkServiceConnectionStatus = "Approved"
280
281 Disconnected PrivateLinkServiceConnectionStatus = "Disconnected"
282
283 Pending PrivateLinkServiceConnectionStatus = "Pending"
284
285 Rejected PrivateLinkServiceConnectionStatus = "Rejected"
286 )
287
288
289 func PossiblePrivateLinkServiceConnectionStatusValues() []PrivateLinkServiceConnectionStatus {
290 return []PrivateLinkServiceConnectionStatus{Approved, Disconnected, Pending, Rejected}
291 }
292
293
294 type PublicNetworkAccess string
295
296 const (
297
298 Disabled PublicNetworkAccess = "Disabled"
299
300 Enabled PublicNetworkAccess = "Enabled"
301 )
302
303
304 func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
305 return []PublicNetworkAccess{Disabled, Enabled}
306 }
307
308
309 type RouteErrorSeverity string
310
311 const (
312
313 Error RouteErrorSeverity = "error"
314
315 Warning RouteErrorSeverity = "warning"
316 )
317
318
319 func PossibleRouteErrorSeverityValues() []RouteErrorSeverity {
320 return []RouteErrorSeverity{Error, Warning}
321 }
322
323
324 type RoutingSource string
325
326 const (
327
328 RoutingSourceDeviceJobLifecycleEvents RoutingSource = "DeviceJobLifecycleEvents"
329
330 RoutingSourceDeviceLifecycleEvents RoutingSource = "DeviceLifecycleEvents"
331
332 RoutingSourceDeviceMessages RoutingSource = "DeviceMessages"
333
334 RoutingSourceInvalid RoutingSource = "Invalid"
335
336 RoutingSourceTwinChangeEvents RoutingSource = "TwinChangeEvents"
337 )
338
339
340 func PossibleRoutingSourceValues() []RoutingSource {
341 return []RoutingSource{RoutingSourceDeviceJobLifecycleEvents, RoutingSourceDeviceLifecycleEvents, RoutingSourceDeviceMessages, RoutingSourceInvalid, RoutingSourceTwinChangeEvents}
342 }
343
344
345 type TestResultStatus string
346
347 const (
348
349 False TestResultStatus = "false"
350
351 True TestResultStatus = "true"
352
353 Undefined TestResultStatus = "undefined"
354 )
355
356
357 func PossibleTestResultStatusValues() []TestResultStatus {
358 return []TestResultStatus{False, True, Undefined}
359 }
360
View as plain text