-
Notifications
You must be signed in to change notification settings - Fork 840
/
models.go
386 lines (350 loc) · 18.9 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
// +build go1.9
// Copyright 2019 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// This code was auto-generated by:
// github.com/Azure/azure-sdk-for-go/tools/profileBuilder
package devices
import (
"context"
original "github.com/Azure/azure-sdk-for-go/services/iothub/mgmt/2018-04-01/devices"
)
const (
DefaultBaseURI = original.DefaultBaseURI
)
type AccessRights = original.AccessRights
const (
DeviceConnect AccessRights = original.DeviceConnect
RegistryRead AccessRights = original.RegistryRead
RegistryReadDeviceConnect AccessRights = original.RegistryReadDeviceConnect
RegistryReadRegistryWrite AccessRights = original.RegistryReadRegistryWrite
RegistryReadRegistryWriteDeviceConnect AccessRights = original.RegistryReadRegistryWriteDeviceConnect
RegistryReadRegistryWriteServiceConnect AccessRights = original.RegistryReadRegistryWriteServiceConnect
RegistryReadRegistryWriteServiceConnectDeviceConnect AccessRights = original.RegistryReadRegistryWriteServiceConnectDeviceConnect
RegistryReadServiceConnect AccessRights = original.RegistryReadServiceConnect
RegistryReadServiceConnectDeviceConnect AccessRights = original.RegistryReadServiceConnectDeviceConnect
RegistryWrite AccessRights = original.RegistryWrite
RegistryWriteDeviceConnect AccessRights = original.RegistryWriteDeviceConnect
RegistryWriteServiceConnect AccessRights = original.RegistryWriteServiceConnect
RegistryWriteServiceConnectDeviceConnect AccessRights = original.RegistryWriteServiceConnectDeviceConnect
ServiceConnect AccessRights = original.ServiceConnect
ServiceConnectDeviceConnect AccessRights = original.ServiceConnectDeviceConnect
)
type Capabilities = original.Capabilities
const (
DeviceManagement Capabilities = original.DeviceManagement
None Capabilities = original.None
)
type EndpointHealthStatus = original.EndpointHealthStatus
const (
Dead EndpointHealthStatus = original.Dead
Healthy EndpointHealthStatus = original.Healthy
Unhealthy EndpointHealthStatus = original.Unhealthy
Unknown EndpointHealthStatus = original.Unknown
)
type IPFilterActionType = original.IPFilterActionType
const (
Accept IPFilterActionType = original.Accept
Reject IPFilterActionType = original.Reject
)
type IotHubNameUnavailabilityReason = original.IotHubNameUnavailabilityReason
const (
AlreadyExists IotHubNameUnavailabilityReason = original.AlreadyExists
Invalid IotHubNameUnavailabilityReason = original.Invalid
)
type IotHubScaleType = original.IotHubScaleType
const (
IotHubScaleTypeAutomatic IotHubScaleType = original.IotHubScaleTypeAutomatic
IotHubScaleTypeManual IotHubScaleType = original.IotHubScaleTypeManual
IotHubScaleTypeNone IotHubScaleType = original.IotHubScaleTypeNone
)
type IotHubSku = original.IotHubSku
const (
B1 IotHubSku = original.B1
B2 IotHubSku = original.B2
B3 IotHubSku = original.B3
F1 IotHubSku = original.F1
S1 IotHubSku = original.S1
S2 IotHubSku = original.S2
S3 IotHubSku = original.S3
)
type IotHubSkuTier = original.IotHubSkuTier
const (
Basic IotHubSkuTier = original.Basic
Free IotHubSkuTier = original.Free
Standard IotHubSkuTier = original.Standard
)
type JobStatus = original.JobStatus
const (
JobStatusCancelled JobStatus = original.JobStatusCancelled
JobStatusCompleted JobStatus = original.JobStatusCompleted
JobStatusEnqueued JobStatus = original.JobStatusEnqueued
JobStatusFailed JobStatus = original.JobStatusFailed
JobStatusRunning JobStatus = original.JobStatusRunning
JobStatusUnknown JobStatus = original.JobStatusUnknown
)
type JobType = original.JobType
const (
JobTypeBackup JobType = original.JobTypeBackup
JobTypeExport JobType = original.JobTypeExport
JobTypeFactoryResetDevice JobType = original.JobTypeFactoryResetDevice
JobTypeFirmwareUpdate JobType = original.JobTypeFirmwareUpdate
JobTypeImport JobType = original.JobTypeImport
JobTypeReadDeviceProperties JobType = original.JobTypeReadDeviceProperties
JobTypeRebootDevice JobType = original.JobTypeRebootDevice
JobTypeUnknown JobType = original.JobTypeUnknown
JobTypeUpdateDeviceConfiguration JobType = original.JobTypeUpdateDeviceConfiguration
JobTypeWriteDeviceProperties JobType = original.JobTypeWriteDeviceProperties
)
type OperationMonitoringLevel = original.OperationMonitoringLevel
const (
OperationMonitoringLevelError OperationMonitoringLevel = original.OperationMonitoringLevelError
OperationMonitoringLevelErrorInformation OperationMonitoringLevel = original.OperationMonitoringLevelErrorInformation
OperationMonitoringLevelInformation OperationMonitoringLevel = original.OperationMonitoringLevelInformation
OperationMonitoringLevelNone OperationMonitoringLevel = original.OperationMonitoringLevelNone
)
type RouteErrorSeverity = original.RouteErrorSeverity
const (
Error RouteErrorSeverity = original.Error
Warning RouteErrorSeverity = original.Warning
)
type RoutingSource = original.RoutingSource
const (
RoutingSourceDeviceJobLifecycleEvents RoutingSource = original.RoutingSourceDeviceJobLifecycleEvents
RoutingSourceDeviceLifecycleEvents RoutingSource = original.RoutingSourceDeviceLifecycleEvents
RoutingSourceDeviceMessages RoutingSource = original.RoutingSourceDeviceMessages
RoutingSourceInvalid RoutingSource = original.RoutingSourceInvalid
RoutingSourceTwinChangeEvents RoutingSource = original.RoutingSourceTwinChangeEvents
)
type TestResultStatus = original.TestResultStatus
const (
False TestResultStatus = original.False
True TestResultStatus = original.True
Undefined TestResultStatus = original.Undefined
)
type BaseClient = original.BaseClient
type CertificateBodyDescription = original.CertificateBodyDescription
type CertificateDescription = original.CertificateDescription
type CertificateListDescription = original.CertificateListDescription
type CertificateProperties = original.CertificateProperties
type CertificatePropertiesWithNonce = original.CertificatePropertiesWithNonce
type CertificateVerificationDescription = original.CertificateVerificationDescription
type CertificateWithNonceDescription = original.CertificateWithNonceDescription
type CertificatesClient = original.CertificatesClient
type CloudToDeviceProperties = original.CloudToDeviceProperties
type EndpointHealthData = original.EndpointHealthData
type EndpointHealthDataListResult = original.EndpointHealthDataListResult
type EndpointHealthDataListResultIterator = original.EndpointHealthDataListResultIterator
type EndpointHealthDataListResultPage = original.EndpointHealthDataListResultPage
type ErrorDetails = original.ErrorDetails
type EventHubConsumerGroupInfo = original.EventHubConsumerGroupInfo
type EventHubConsumerGroupsListResult = original.EventHubConsumerGroupsListResult
type EventHubConsumerGroupsListResultIterator = original.EventHubConsumerGroupsListResultIterator
type EventHubConsumerGroupsListResultPage = original.EventHubConsumerGroupsListResultPage
type EventHubProperties = original.EventHubProperties
type ExportDevicesRequest = original.ExportDevicesRequest
type FallbackRouteProperties = original.FallbackRouteProperties
type FeedbackProperties = original.FeedbackProperties
type IPFilterRule = original.IPFilterRule
type ImportDevicesRequest = original.ImportDevicesRequest
type IotHubCapacity = original.IotHubCapacity
type IotHubDescription = original.IotHubDescription
type IotHubDescriptionListResult = original.IotHubDescriptionListResult
type IotHubDescriptionListResultIterator = original.IotHubDescriptionListResultIterator
type IotHubDescriptionListResultPage = original.IotHubDescriptionListResultPage
type IotHubNameAvailabilityInfo = original.IotHubNameAvailabilityInfo
type IotHubProperties = original.IotHubProperties
type IotHubQuotaMetricInfo = original.IotHubQuotaMetricInfo
type IotHubQuotaMetricInfoListResult = original.IotHubQuotaMetricInfoListResult
type IotHubQuotaMetricInfoListResultIterator = original.IotHubQuotaMetricInfoListResultIterator
type IotHubQuotaMetricInfoListResultPage = original.IotHubQuotaMetricInfoListResultPage
type IotHubResourceClient = original.IotHubResourceClient
type IotHubResourceCreateOrUpdateFuture = original.IotHubResourceCreateOrUpdateFuture
type IotHubResourceDeleteFuture = original.IotHubResourceDeleteFuture
type IotHubResourceUpdateFuture = original.IotHubResourceUpdateFuture
type IotHubSkuDescription = original.IotHubSkuDescription
type IotHubSkuDescriptionListResult = original.IotHubSkuDescriptionListResult
type IotHubSkuDescriptionListResultIterator = original.IotHubSkuDescriptionListResultIterator
type IotHubSkuDescriptionListResultPage = original.IotHubSkuDescriptionListResultPage
type IotHubSkuInfo = original.IotHubSkuInfo
type JobResponse = original.JobResponse
type JobResponseListResult = original.JobResponseListResult
type JobResponseListResultIterator = original.JobResponseListResultIterator
type JobResponseListResultPage = original.JobResponseListResultPage
type MatchedRoute = original.MatchedRoute
type MessagingEndpointProperties = original.MessagingEndpointProperties
type Name = original.Name
type Operation = original.Operation
type OperationDisplay = original.OperationDisplay
type OperationInputs = original.OperationInputs
type OperationListResult = original.OperationListResult
type OperationListResultIterator = original.OperationListResultIterator
type OperationListResultPage = original.OperationListResultPage
type OperationsClient = original.OperationsClient
type OperationsMonitoringProperties = original.OperationsMonitoringProperties
type RegistryStatistics = original.RegistryStatistics
type Resource = original.Resource
type ResourceProviderCommonClient = original.ResourceProviderCommonClient
type RouteCompilationError = original.RouteCompilationError
type RouteErrorPosition = original.RouteErrorPosition
type RouteErrorRange = original.RouteErrorRange
type RouteProperties = original.RouteProperties
type RoutingEndpoints = original.RoutingEndpoints
type RoutingEventHubProperties = original.RoutingEventHubProperties
type RoutingMessage = original.RoutingMessage
type RoutingProperties = original.RoutingProperties
type RoutingServiceBusQueueEndpointProperties = original.RoutingServiceBusQueueEndpointProperties
type RoutingServiceBusTopicEndpointProperties = original.RoutingServiceBusTopicEndpointProperties
type RoutingStorageContainerProperties = original.RoutingStorageContainerProperties
type RoutingTwin = original.RoutingTwin
type RoutingTwinProperties = original.RoutingTwinProperties
type SetObject = original.SetObject
type SharedAccessSignatureAuthorizationRule = original.SharedAccessSignatureAuthorizationRule
type SharedAccessSignatureAuthorizationRuleListResult = original.SharedAccessSignatureAuthorizationRuleListResult
type SharedAccessSignatureAuthorizationRuleListResultIterator = original.SharedAccessSignatureAuthorizationRuleListResultIterator
type SharedAccessSignatureAuthorizationRuleListResultPage = original.SharedAccessSignatureAuthorizationRuleListResultPage
type StorageEndpointProperties = original.StorageEndpointProperties
type TagsResource = original.TagsResource
type TestAllRoutesInput = original.TestAllRoutesInput
type TestAllRoutesResult = original.TestAllRoutesResult
type TestRouteInput = original.TestRouteInput
type TestRouteResult = original.TestRouteResult
type TestRouteResultDetails = original.TestRouteResultDetails
type UserSubscriptionQuota = original.UserSubscriptionQuota
type UserSubscriptionQuotaListResult = original.UserSubscriptionQuotaListResult
func New(subscriptionID string) BaseClient {
return original.New(subscriptionID)
}
func NewCertificatesClient(subscriptionID string) CertificatesClient {
return original.NewCertificatesClient(subscriptionID)
}
func NewCertificatesClientWithBaseURI(baseURI string, subscriptionID string) CertificatesClient {
return original.NewCertificatesClientWithBaseURI(baseURI, subscriptionID)
}
func NewEndpointHealthDataListResultIterator(page EndpointHealthDataListResultPage) EndpointHealthDataListResultIterator {
return original.NewEndpointHealthDataListResultIterator(page)
}
func NewEndpointHealthDataListResultPage(getNextPage func(context.Context, EndpointHealthDataListResult) (EndpointHealthDataListResult, error)) EndpointHealthDataListResultPage {
return original.NewEndpointHealthDataListResultPage(getNextPage)
}
func NewEventHubConsumerGroupsListResultIterator(page EventHubConsumerGroupsListResultPage) EventHubConsumerGroupsListResultIterator {
return original.NewEventHubConsumerGroupsListResultIterator(page)
}
func NewEventHubConsumerGroupsListResultPage(getNextPage func(context.Context, EventHubConsumerGroupsListResult) (EventHubConsumerGroupsListResult, error)) EventHubConsumerGroupsListResultPage {
return original.NewEventHubConsumerGroupsListResultPage(getNextPage)
}
func NewIotHubDescriptionListResultIterator(page IotHubDescriptionListResultPage) IotHubDescriptionListResultIterator {
return original.NewIotHubDescriptionListResultIterator(page)
}
func NewIotHubDescriptionListResultPage(getNextPage func(context.Context, IotHubDescriptionListResult) (IotHubDescriptionListResult, error)) IotHubDescriptionListResultPage {
return original.NewIotHubDescriptionListResultPage(getNextPage)
}
func NewIotHubQuotaMetricInfoListResultIterator(page IotHubQuotaMetricInfoListResultPage) IotHubQuotaMetricInfoListResultIterator {
return original.NewIotHubQuotaMetricInfoListResultIterator(page)
}
func NewIotHubQuotaMetricInfoListResultPage(getNextPage func(context.Context, IotHubQuotaMetricInfoListResult) (IotHubQuotaMetricInfoListResult, error)) IotHubQuotaMetricInfoListResultPage {
return original.NewIotHubQuotaMetricInfoListResultPage(getNextPage)
}
func NewIotHubResourceClient(subscriptionID string) IotHubResourceClient {
return original.NewIotHubResourceClient(subscriptionID)
}
func NewIotHubResourceClientWithBaseURI(baseURI string, subscriptionID string) IotHubResourceClient {
return original.NewIotHubResourceClientWithBaseURI(baseURI, subscriptionID)
}
func NewIotHubSkuDescriptionListResultIterator(page IotHubSkuDescriptionListResultPage) IotHubSkuDescriptionListResultIterator {
return original.NewIotHubSkuDescriptionListResultIterator(page)
}
func NewIotHubSkuDescriptionListResultPage(getNextPage func(context.Context, IotHubSkuDescriptionListResult) (IotHubSkuDescriptionListResult, error)) IotHubSkuDescriptionListResultPage {
return original.NewIotHubSkuDescriptionListResultPage(getNextPage)
}
func NewJobResponseListResultIterator(page JobResponseListResultPage) JobResponseListResultIterator {
return original.NewJobResponseListResultIterator(page)
}
func NewJobResponseListResultPage(getNextPage func(context.Context, JobResponseListResult) (JobResponseListResult, error)) JobResponseListResultPage {
return original.NewJobResponseListResultPage(getNextPage)
}
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator {
return original.NewOperationListResultIterator(page)
}
func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage {
return original.NewOperationListResultPage(getNextPage)
}
func NewOperationsClient(subscriptionID string) OperationsClient {
return original.NewOperationsClient(subscriptionID)
}
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient {
return original.NewOperationsClientWithBaseURI(baseURI, subscriptionID)
}
func NewResourceProviderCommonClient(subscriptionID string) ResourceProviderCommonClient {
return original.NewResourceProviderCommonClient(subscriptionID)
}
func NewResourceProviderCommonClientWithBaseURI(baseURI string, subscriptionID string) ResourceProviderCommonClient {
return original.NewResourceProviderCommonClientWithBaseURI(baseURI, subscriptionID)
}
func NewSharedAccessSignatureAuthorizationRuleListResultIterator(page SharedAccessSignatureAuthorizationRuleListResultPage) SharedAccessSignatureAuthorizationRuleListResultIterator {
return original.NewSharedAccessSignatureAuthorizationRuleListResultIterator(page)
}
func NewSharedAccessSignatureAuthorizationRuleListResultPage(getNextPage func(context.Context, SharedAccessSignatureAuthorizationRuleListResult) (SharedAccessSignatureAuthorizationRuleListResult, error)) SharedAccessSignatureAuthorizationRuleListResultPage {
return original.NewSharedAccessSignatureAuthorizationRuleListResultPage(getNextPage)
}
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient {
return original.NewWithBaseURI(baseURI, subscriptionID)
}
func PossibleAccessRightsValues() []AccessRights {
return original.PossibleAccessRightsValues()
}
func PossibleCapabilitiesValues() []Capabilities {
return original.PossibleCapabilitiesValues()
}
func PossibleEndpointHealthStatusValues() []EndpointHealthStatus {
return original.PossibleEndpointHealthStatusValues()
}
func PossibleIPFilterActionTypeValues() []IPFilterActionType {
return original.PossibleIPFilterActionTypeValues()
}
func PossibleIotHubNameUnavailabilityReasonValues() []IotHubNameUnavailabilityReason {
return original.PossibleIotHubNameUnavailabilityReasonValues()
}
func PossibleIotHubScaleTypeValues() []IotHubScaleType {
return original.PossibleIotHubScaleTypeValues()
}
func PossibleIotHubSkuTierValues() []IotHubSkuTier {
return original.PossibleIotHubSkuTierValues()
}
func PossibleIotHubSkuValues() []IotHubSku {
return original.PossibleIotHubSkuValues()
}
func PossibleJobStatusValues() []JobStatus {
return original.PossibleJobStatusValues()
}
func PossibleJobTypeValues() []JobType {
return original.PossibleJobTypeValues()
}
func PossibleOperationMonitoringLevelValues() []OperationMonitoringLevel {
return original.PossibleOperationMonitoringLevelValues()
}
func PossibleRouteErrorSeverityValues() []RouteErrorSeverity {
return original.PossibleRouteErrorSeverityValues()
}
func PossibleRoutingSourceValues() []RoutingSource {
return original.PossibleRoutingSourceValues()
}
func PossibleTestResultStatusValues() []TestResultStatus {
return original.PossibleTestResultStatusValues()
}
func UserAgent() string {
return original.UserAgent() + " profiles/latest"
}
func Version() string {
return original.Version()
}