/
enums.go
145 lines (120 loc) · 5.09 KB
/
enums.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
package timeseriesinsights
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
// AccessPolicyRole enumerates the values for access policy role.
type AccessPolicyRole string
const (
// Contributor ...
Contributor AccessPolicyRole = "Contributor"
// Reader ...
Reader AccessPolicyRole = "Reader"
)
// PossibleAccessPolicyRoleValues returns an array of possible values for the AccessPolicyRole const type.
func PossibleAccessPolicyRoleValues() []AccessPolicyRole {
return []AccessPolicyRole{Contributor, Reader}
}
// Kind enumerates the values for kind.
type Kind string
const (
// KindEventSourceCreateOrUpdateParameters ...
KindEventSourceCreateOrUpdateParameters Kind = "EventSourceCreateOrUpdateParameters"
// KindMicrosoftEventHub ...
KindMicrosoftEventHub Kind = "Microsoft.EventHub"
// KindMicrosoftIoTHub ...
KindMicrosoftIoTHub Kind = "Microsoft.IoTHub"
)
// PossibleKindValues returns an array of possible values for the Kind const type.
func PossibleKindValues() []Kind {
return []Kind{KindEventSourceCreateOrUpdateParameters, KindMicrosoftEventHub, KindMicrosoftIoTHub}
}
// KindBasicEventSourceResource enumerates the values for kind basic event source resource.
type KindBasicEventSourceResource string
const (
// KindBasicEventSourceResourceKindEventSourceResource ...
KindBasicEventSourceResourceKindEventSourceResource KindBasicEventSourceResource = "EventSourceResource"
// KindBasicEventSourceResourceKindMicrosoftEventHub ...
KindBasicEventSourceResourceKindMicrosoftEventHub KindBasicEventSourceResource = "Microsoft.EventHub"
// KindBasicEventSourceResourceKindMicrosoftIotHub ...
KindBasicEventSourceResourceKindMicrosoftIotHub KindBasicEventSourceResource = "Microsoft.IotHub"
)
// PossibleKindBasicEventSourceResourceValues returns an array of possible values for the KindBasicEventSourceResource const type.
func PossibleKindBasicEventSourceResourceValues() []KindBasicEventSourceResource {
return []KindBasicEventSourceResource{KindBasicEventSourceResourceKindEventSourceResource, KindBasicEventSourceResourceKindMicrosoftEventHub, KindBasicEventSourceResourceKindMicrosoftIotHub}
}
// LocalTimestampFormat enumerates the values for local timestamp format.
type LocalTimestampFormat string
const (
// Embedded ...
Embedded LocalTimestampFormat = "Embedded"
// Iana ...
Iana LocalTimestampFormat = "Iana"
// TimeSpan ...
TimeSpan LocalTimestampFormat = "TimeSpan"
)
// PossibleLocalTimestampFormatValues returns an array of possible values for the LocalTimestampFormat const type.
func PossibleLocalTimestampFormatValues() []LocalTimestampFormat {
return []LocalTimestampFormat{Embedded, Iana, TimeSpan}
}
// ProvisioningState enumerates the values for provisioning state.
type ProvisioningState string
const (
// Accepted ...
Accepted ProvisioningState = "Accepted"
// Creating ...
Creating ProvisioningState = "Creating"
// Deleting ...
Deleting ProvisioningState = "Deleting"
// Failed ...
Failed ProvisioningState = "Failed"
// Succeeded ...
Succeeded ProvisioningState = "Succeeded"
// Updating ...
Updating ProvisioningState = "Updating"
)
// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
func PossibleProvisioningStateValues() []ProvisioningState {
return []ProvisioningState{Accepted, Creating, Deleting, Failed, Succeeded, Updating}
}
// ReferenceDataKeyPropertyType enumerates the values for reference data key property type.
type ReferenceDataKeyPropertyType string
const (
// Bool ...
Bool ReferenceDataKeyPropertyType = "Bool"
// DateTime ...
DateTime ReferenceDataKeyPropertyType = "DateTime"
// Double ...
Double ReferenceDataKeyPropertyType = "Double"
// String ...
String ReferenceDataKeyPropertyType = "String"
)
// PossibleReferenceDataKeyPropertyTypeValues returns an array of possible values for the ReferenceDataKeyPropertyType const type.
func PossibleReferenceDataKeyPropertyTypeValues() []ReferenceDataKeyPropertyType {
return []ReferenceDataKeyPropertyType{Bool, DateTime, Double, String}
}
// SkuName enumerates the values for sku name.
type SkuName string
const (
// S1 ...
S1 SkuName = "S1"
// S2 ...
S2 SkuName = "S2"
)
// PossibleSkuNameValues returns an array of possible values for the SkuName const type.
func PossibleSkuNameValues() []SkuName {
return []SkuName{S1, S2}
}
// StorageLimitExceededBehavior enumerates the values for storage limit exceeded behavior.
type StorageLimitExceededBehavior string
const (
// PauseIngress ...
PauseIngress StorageLimitExceededBehavior = "PauseIngress"
// PurgeOldData ...
PurgeOldData StorageLimitExceededBehavior = "PurgeOldData"
)
// PossibleStorageLimitExceededBehaviorValues returns an array of possible values for the StorageLimitExceededBehavior const type.
func PossibleStorageLimitExceededBehaviorValues() []StorageLimitExceededBehavior {
return []StorageLimitExceededBehavior{PauseIngress, PurgeOldData}
}