/
constants.go
249 lines (207 loc) · 9.04 KB
/
constants.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
//go:build go1.18
// +build go1.18
// 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. DO NOT EDIT.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package armcontainerinstance
const (
moduleName = "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerinstance/armcontainerinstance"
moduleVersion = "v2.4.0"
)
// ContainerGroupIPAddressType - Specifies if the IP is exposed to the public internet or private VNET.
type ContainerGroupIPAddressType string
const (
ContainerGroupIPAddressTypePrivate ContainerGroupIPAddressType = "Private"
ContainerGroupIPAddressTypePublic ContainerGroupIPAddressType = "Public"
)
// PossibleContainerGroupIPAddressTypeValues returns the possible values for the ContainerGroupIPAddressType const type.
func PossibleContainerGroupIPAddressTypeValues() []ContainerGroupIPAddressType {
return []ContainerGroupIPAddressType{
ContainerGroupIPAddressTypePrivate,
ContainerGroupIPAddressTypePublic,
}
}
// ContainerGroupNetworkProtocol - The protocol associated with the port.
type ContainerGroupNetworkProtocol string
const (
ContainerGroupNetworkProtocolTCP ContainerGroupNetworkProtocol = "TCP"
ContainerGroupNetworkProtocolUDP ContainerGroupNetworkProtocol = "UDP"
)
// PossibleContainerGroupNetworkProtocolValues returns the possible values for the ContainerGroupNetworkProtocol const type.
func PossibleContainerGroupNetworkProtocolValues() []ContainerGroupNetworkProtocol {
return []ContainerGroupNetworkProtocol{
ContainerGroupNetworkProtocolTCP,
ContainerGroupNetworkProtocolUDP,
}
}
// ContainerGroupPriority - The priority of the container group.
type ContainerGroupPriority string
const (
ContainerGroupPriorityRegular ContainerGroupPriority = "Regular"
ContainerGroupPrioritySpot ContainerGroupPriority = "Spot"
)
// PossibleContainerGroupPriorityValues returns the possible values for the ContainerGroupPriority const type.
func PossibleContainerGroupPriorityValues() []ContainerGroupPriority {
return []ContainerGroupPriority{
ContainerGroupPriorityRegular,
ContainerGroupPrioritySpot,
}
}
// ContainerGroupRestartPolicy - Restart policy for all containers within the container group.
// * Always Always restart
// * OnFailure Restart on failure
// * Never Never restart
type ContainerGroupRestartPolicy string
const (
ContainerGroupRestartPolicyAlways ContainerGroupRestartPolicy = "Always"
ContainerGroupRestartPolicyNever ContainerGroupRestartPolicy = "Never"
ContainerGroupRestartPolicyOnFailure ContainerGroupRestartPolicy = "OnFailure"
)
// PossibleContainerGroupRestartPolicyValues returns the possible values for the ContainerGroupRestartPolicy const type.
func PossibleContainerGroupRestartPolicyValues() []ContainerGroupRestartPolicy {
return []ContainerGroupRestartPolicy{
ContainerGroupRestartPolicyAlways,
ContainerGroupRestartPolicyNever,
ContainerGroupRestartPolicyOnFailure,
}
}
// ContainerGroupSKU - The container group SKU.
type ContainerGroupSKU string
const (
ContainerGroupSKUConfidential ContainerGroupSKU = "Confidential"
ContainerGroupSKUDedicated ContainerGroupSKU = "Dedicated"
ContainerGroupSKUStandard ContainerGroupSKU = "Standard"
)
// PossibleContainerGroupSKUValues returns the possible values for the ContainerGroupSKU const type.
func PossibleContainerGroupSKUValues() []ContainerGroupSKU {
return []ContainerGroupSKU{
ContainerGroupSKUConfidential,
ContainerGroupSKUDedicated,
ContainerGroupSKUStandard,
}
}
// ContainerInstanceOperationsOrigin - The intended executor of the operation.
type ContainerInstanceOperationsOrigin string
const (
ContainerInstanceOperationsOriginSystem ContainerInstanceOperationsOrigin = "System"
ContainerInstanceOperationsOriginUser ContainerInstanceOperationsOrigin = "User"
)
// PossibleContainerInstanceOperationsOriginValues returns the possible values for the ContainerInstanceOperationsOrigin const type.
func PossibleContainerInstanceOperationsOriginValues() []ContainerInstanceOperationsOrigin {
return []ContainerInstanceOperationsOrigin{
ContainerInstanceOperationsOriginSystem,
ContainerInstanceOperationsOriginUser,
}
}
// ContainerNetworkProtocol - The protocol associated with the port.
type ContainerNetworkProtocol string
const (
ContainerNetworkProtocolTCP ContainerNetworkProtocol = "TCP"
ContainerNetworkProtocolUDP ContainerNetworkProtocol = "UDP"
)
// PossibleContainerNetworkProtocolValues returns the possible values for the ContainerNetworkProtocol const type.
func PossibleContainerNetworkProtocolValues() []ContainerNetworkProtocol {
return []ContainerNetworkProtocol{
ContainerNetworkProtocolTCP,
ContainerNetworkProtocolUDP,
}
}
// DNSNameLabelReusePolicy - The value representing the security enum. The 'Unsecure' value is the default value if not selected
// and means the object's domain name label is not secured against subdomain takeover. The
// 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the
// same tenant. The 'SubscriptionReuse' value means the object's domain name label
// can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be
// reused within the same resource group. The 'NoReuse' value means the object's
// domain name label cannot be reused within the same resource group, subscription, or tenant.
type DNSNameLabelReusePolicy string
const (
DNSNameLabelReusePolicyNoreuse DNSNameLabelReusePolicy = "Noreuse"
DNSNameLabelReusePolicyResourceGroupReuse DNSNameLabelReusePolicy = "ResourceGroupReuse"
DNSNameLabelReusePolicySubscriptionReuse DNSNameLabelReusePolicy = "SubscriptionReuse"
DNSNameLabelReusePolicyTenantReuse DNSNameLabelReusePolicy = "TenantReuse"
DNSNameLabelReusePolicyUnsecure DNSNameLabelReusePolicy = "Unsecure"
)
// PossibleDNSNameLabelReusePolicyValues returns the possible values for the DNSNameLabelReusePolicy const type.
func PossibleDNSNameLabelReusePolicyValues() []DNSNameLabelReusePolicy {
return []DNSNameLabelReusePolicy{
DNSNameLabelReusePolicyNoreuse,
DNSNameLabelReusePolicyResourceGroupReuse,
DNSNameLabelReusePolicySubscriptionReuse,
DNSNameLabelReusePolicyTenantReuse,
DNSNameLabelReusePolicyUnsecure,
}
}
// GpuSKU - The SKU of the GPU resource.
type GpuSKU string
const (
GpuSKUK80 GpuSKU = "K80"
GpuSKUP100 GpuSKU = "P100"
GpuSKUV100 GpuSKU = "V100"
)
// PossibleGpuSKUValues returns the possible values for the GpuSKU const type.
func PossibleGpuSKUValues() []GpuSKU {
return []GpuSKU{
GpuSKUK80,
GpuSKUP100,
GpuSKUV100,
}
}
// LogAnalyticsLogType - The log type to be used.
type LogAnalyticsLogType string
const (
LogAnalyticsLogTypeContainerInsights LogAnalyticsLogType = "ContainerInsights"
LogAnalyticsLogTypeContainerInstanceLogs LogAnalyticsLogType = "ContainerInstanceLogs"
)
// PossibleLogAnalyticsLogTypeValues returns the possible values for the LogAnalyticsLogType const type.
func PossibleLogAnalyticsLogTypeValues() []LogAnalyticsLogType {
return []LogAnalyticsLogType{
LogAnalyticsLogTypeContainerInsights,
LogAnalyticsLogTypeContainerInstanceLogs,
}
}
// OperatingSystemTypes - The operating system type required by the containers in the container group.
type OperatingSystemTypes string
const (
OperatingSystemTypesLinux OperatingSystemTypes = "Linux"
OperatingSystemTypesWindows OperatingSystemTypes = "Windows"
)
// PossibleOperatingSystemTypesValues returns the possible values for the OperatingSystemTypes const type.
func PossibleOperatingSystemTypesValues() []OperatingSystemTypes {
return []OperatingSystemTypes{
OperatingSystemTypesLinux,
OperatingSystemTypesWindows,
}
}
// ResourceIdentityType - The type of identity used for the container group. The type 'SystemAssigned, UserAssigned' includes
// both an implicitly created identity and a set of user assigned identities. The type 'None' will
// remove any identities from the container group.
type ResourceIdentityType string
const (
ResourceIdentityTypeNone ResourceIdentityType = "None"
ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
ResourceIdentityTypeSystemAssignedUserAssigned ResourceIdentityType = "SystemAssigned, UserAssigned"
ResourceIdentityTypeUserAssigned ResourceIdentityType = "UserAssigned"
)
// PossibleResourceIdentityTypeValues returns the possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{
ResourceIdentityTypeNone,
ResourceIdentityTypeSystemAssigned,
ResourceIdentityTypeSystemAssignedUserAssigned,
ResourceIdentityTypeUserAssigned,
}
}
// Scheme - The scheme.
type Scheme string
const (
SchemeHTTP Scheme = "http"
SchemeHTTPS Scheme = "https"
)
// PossibleSchemeValues returns the possible values for the Scheme const type.
func PossibleSchemeValues() []Scheme {
return []Scheme{
SchemeHTTP,
SchemeHTTPS,
}
}