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 Capabilities string
52
53 const (
54
55 DeviceManagement Capabilities = "DeviceManagement"
56
57 None Capabilities = "None"
58 )
59
60
61 func PossibleCapabilitiesValues() []Capabilities {
62 return []Capabilities{DeviceManagement, None}
63 }
64
65
66 type EndpointHealthStatus string
67
68 const (
69
70 Dead EndpointHealthStatus = "dead"
71
72 Healthy EndpointHealthStatus = "healthy"
73
74 Unhealthy EndpointHealthStatus = "unhealthy"
75
76 Unknown EndpointHealthStatus = "unknown"
77 )
78
79
80 func PossibleEndpointHealthStatusValues() []EndpointHealthStatus {
81 return []EndpointHealthStatus{Dead, Healthy, Unhealthy, Unknown}
82 }
83
84
85 type IotHubNameUnavailabilityReason string
86
87 const (
88
89 AlreadyExists IotHubNameUnavailabilityReason = "AlreadyExists"
90
91 Invalid IotHubNameUnavailabilityReason = "Invalid"
92 )
93
94
95 func PossibleIotHubNameUnavailabilityReasonValues() []IotHubNameUnavailabilityReason {
96 return []IotHubNameUnavailabilityReason{AlreadyExists, Invalid}
97 }
98
99
100 type IotHubScaleType string
101
102 const (
103
104 IotHubScaleTypeAutomatic IotHubScaleType = "Automatic"
105
106 IotHubScaleTypeManual IotHubScaleType = "Manual"
107
108 IotHubScaleTypeNone IotHubScaleType = "None"
109 )
110
111
112 func PossibleIotHubScaleTypeValues() []IotHubScaleType {
113 return []IotHubScaleType{IotHubScaleTypeAutomatic, IotHubScaleTypeManual, IotHubScaleTypeNone}
114 }
115
116
117 type IotHubSku string
118
119 const (
120
121 B1 IotHubSku = "B1"
122
123 B2 IotHubSku = "B2"
124
125 B3 IotHubSku = "B3"
126
127 F1 IotHubSku = "F1"
128
129 S1 IotHubSku = "S1"
130
131 S2 IotHubSku = "S2"
132
133 S3 IotHubSku = "S3"
134 )
135
136
137 func PossibleIotHubSkuValues() []IotHubSku {
138 return []IotHubSku{B1, B2, B3, F1, S1, S2, S3}
139 }
140
141
142 type IotHubSkuTier string
143
144 const (
145
146 Basic IotHubSkuTier = "Basic"
147
148 Free IotHubSkuTier = "Free"
149
150 Standard IotHubSkuTier = "Standard"
151 )
152
153
154 func PossibleIotHubSkuTierValues() []IotHubSkuTier {
155 return []IotHubSkuTier{Basic, Free, Standard}
156 }
157
158
159 type IPFilterActionType string
160
161 const (
162
163 Accept IPFilterActionType = "Accept"
164
165 Reject IPFilterActionType = "Reject"
166 )
167
168
169 func PossibleIPFilterActionTypeValues() []IPFilterActionType {
170 return []IPFilterActionType{Accept, Reject}
171 }
172
173
174 type JobStatus string
175
176 const (
177
178 JobStatusCancelled JobStatus = "cancelled"
179
180 JobStatusCompleted JobStatus = "completed"
181
182 JobStatusEnqueued JobStatus = "enqueued"
183
184 JobStatusFailed JobStatus = "failed"
185
186 JobStatusRunning JobStatus = "running"
187
188 JobStatusUnknown JobStatus = "unknown"
189 )
190
191
192 func PossibleJobStatusValues() []JobStatus {
193 return []JobStatus{JobStatusCancelled, JobStatusCompleted, JobStatusEnqueued, JobStatusFailed, JobStatusRunning, JobStatusUnknown}
194 }
195
196
197 type JobType string
198
199 const (
200
201 JobTypeBackup JobType = "backup"
202
203 JobTypeExport JobType = "export"
204
205 JobTypeFactoryResetDevice JobType = "factoryResetDevice"
206
207 JobTypeFirmwareUpdate JobType = "firmwareUpdate"
208
209 JobTypeImport JobType = "import"
210
211 JobTypeReadDeviceProperties JobType = "readDeviceProperties"
212
213 JobTypeRebootDevice JobType = "rebootDevice"
214
215 JobTypeUnknown JobType = "unknown"
216
217 JobTypeUpdateDeviceConfiguration JobType = "updateDeviceConfiguration"
218
219 JobTypeWriteDeviceProperties JobType = "writeDeviceProperties"
220 )
221
222
223 func PossibleJobTypeValues() []JobType {
224 return []JobType{JobTypeBackup, JobTypeExport, JobTypeFactoryResetDevice, JobTypeFirmwareUpdate, JobTypeImport, JobTypeReadDeviceProperties, JobTypeRebootDevice, JobTypeUnknown, JobTypeUpdateDeviceConfiguration, JobTypeWriteDeviceProperties}
225 }
226
227
228 type OperationMonitoringLevel string
229
230 const (
231
232 OperationMonitoringLevelError OperationMonitoringLevel = "Error"
233
234 OperationMonitoringLevelErrorInformation OperationMonitoringLevel = "Error, Information"
235
236 OperationMonitoringLevelInformation OperationMonitoringLevel = "Information"
237
238 OperationMonitoringLevelNone OperationMonitoringLevel = "None"
239 )
240
241
242 func PossibleOperationMonitoringLevelValues() []OperationMonitoringLevel {
243 return []OperationMonitoringLevel{OperationMonitoringLevelError, OperationMonitoringLevelErrorInformation, OperationMonitoringLevelInformation, OperationMonitoringLevelNone}
244 }
245
246
247 type RouteErrorSeverity string
248
249 const (
250
251 Error RouteErrorSeverity = "error"
252
253 Warning RouteErrorSeverity = "warning"
254 )
255
256
257 func PossibleRouteErrorSeverityValues() []RouteErrorSeverity {
258 return []RouteErrorSeverity{Error, Warning}
259 }
260
261
262 type RoutingSource string
263
264 const (
265
266 RoutingSourceDeviceJobLifecycleEvents RoutingSource = "DeviceJobLifecycleEvents"
267
268 RoutingSourceDeviceLifecycleEvents RoutingSource = "DeviceLifecycleEvents"
269
270 RoutingSourceDeviceMessages RoutingSource = "DeviceMessages"
271
272 RoutingSourceInvalid RoutingSource = "Invalid"
273
274 RoutingSourceTwinChangeEvents RoutingSource = "TwinChangeEvents"
275 )
276
277
278 func PossibleRoutingSourceValues() []RoutingSource {
279 return []RoutingSource{RoutingSourceDeviceJobLifecycleEvents, RoutingSourceDeviceLifecycleEvents, RoutingSourceDeviceMessages, RoutingSourceInvalid, RoutingSourceTwinChangeEvents}
280 }
281
282
283 type TestResultStatus string
284
285 const (
286
287 False TestResultStatus = "false"
288
289 True TestResultStatus = "true"
290
291 Undefined TestResultStatus = "undefined"
292 )
293
294
295 func PossibleTestResultStatusValues() []TestResultStatus {
296 return []TestResultStatus{False, True, Undefined}
297 }
298
View as plain text