forked from Azure/azure-sdk-for-go
/
enums.go
509 lines (433 loc) · 24.8 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
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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
package desktopvirtualization
// 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.
// ApplicationGroupType enumerates the values for application group type.
type ApplicationGroupType string
const (
// ApplicationGroupTypeDesktop ...
ApplicationGroupTypeDesktop ApplicationGroupType = "Desktop"
// ApplicationGroupTypeRemoteApp ...
ApplicationGroupTypeRemoteApp ApplicationGroupType = "RemoteApp"
)
// PossibleApplicationGroupTypeValues returns an array of possible values for the ApplicationGroupType const type.
func PossibleApplicationGroupTypeValues() []ApplicationGroupType {
return []ApplicationGroupType{ApplicationGroupTypeDesktop, ApplicationGroupTypeRemoteApp}
}
// ApplicationType enumerates the values for application type.
type ApplicationType string
const (
// ApplicationTypeDesktop ...
ApplicationTypeDesktop ApplicationType = "Desktop"
// ApplicationTypeRemoteApp ...
ApplicationTypeRemoteApp ApplicationType = "RemoteApp"
)
// PossibleApplicationTypeValues returns an array of possible values for the ApplicationType const type.
func PossibleApplicationTypeValues() []ApplicationType {
return []ApplicationType{ApplicationTypeDesktop, ApplicationTypeRemoteApp}
}
// CommandLineSetting enumerates the values for command line setting.
type CommandLineSetting string
const (
// CommandLineSettingAllow ...
CommandLineSettingAllow CommandLineSetting = "Allow"
// CommandLineSettingDoNotAllow ...
CommandLineSettingDoNotAllow CommandLineSetting = "DoNotAllow"
// CommandLineSettingRequire ...
CommandLineSettingRequire CommandLineSetting = "Require"
)
// PossibleCommandLineSettingValues returns an array of possible values for the CommandLineSetting const type.
func PossibleCommandLineSettingValues() []CommandLineSetting {
return []CommandLineSetting{CommandLineSettingAllow, CommandLineSettingDoNotAllow, CommandLineSettingRequire}
}
// CreatedByType enumerates the values for created by type.
type CreatedByType string
const (
// CreatedByTypeApplication ...
CreatedByTypeApplication CreatedByType = "Application"
// CreatedByTypeKey ...
CreatedByTypeKey CreatedByType = "Key"
// CreatedByTypeManagedIdentity ...
CreatedByTypeManagedIdentity CreatedByType = "ManagedIdentity"
// CreatedByTypeUser ...
CreatedByTypeUser CreatedByType = "User"
)
// PossibleCreatedByTypeValues returns an array of possible values for the CreatedByType const type.
func PossibleCreatedByTypeValues() []CreatedByType {
return []CreatedByType{CreatedByTypeApplication, CreatedByTypeKey, CreatedByTypeManagedIdentity, CreatedByTypeUser}
}
// HealthCheckName enumerates the values for health check name.
type HealthCheckName string
const (
// HealthCheckNameAppAttachHealthCheck Verifies that the AppAttachService is healthy (there were no issues
// during package staging). The AppAttachService is used to enable the staging/registration (and eventual
// deregistration/destaging) of MSIX apps that have been set up by the tenant admin. This checks whether
// the component had any failures during package staging. Failures in staging will prevent some MSIX apps
// from working properly for the end user. If this check fails, it is non fatal and the machine still can
// service connections, main issue may be certain apps will not work for end-users.
HealthCheckNameAppAttachHealthCheck HealthCheckName = "AppAttachHealthCheck"
// HealthCheckNameDomainJoinedCheck Verifies the SessionHost is joined to a domain. If this check fails is
// classified as fatal as no connection can succeed if the SessionHost is not joined to the domain.
HealthCheckNameDomainJoinedCheck HealthCheckName = "DomainJoinedCheck"
// HealthCheckNameDomainReachable Verifies the domain the SessionHost is joined to is still reachable. If
// this check fails is classified as fatal as no connection can succeed if the domain the SessionHost is
// joined is not reachable at the time of connection.
HealthCheckNameDomainReachable HealthCheckName = "DomainReachable"
// HealthCheckNameDomainTrustCheck Verifies the SessionHost is not experiencing domain trust issues that
// will prevent authentication on SessionHost at connection time when session is created. If this check
// fails is classified as fatal as no connection can succeed if we cannot reach the domain for
// authentication on the SessionHost.
HealthCheckNameDomainTrustCheck HealthCheckName = "DomainTrustCheck"
// HealthCheckNameFSLogixHealthCheck Verifies the FSLogix service is up and running to make sure users'
// profiles are loaded in the session. If this check fails is classified as fatal as even if the connection
// can succeed, user experience is bad as the user profile cannot be loaded and user will get a temporary
// profile in the session.
HealthCheckNameFSLogixHealthCheck HealthCheckName = "FSLogixHealthCheck"
// HealthCheckNameMetaDataServiceCheck Verifies the metadata service is accessible and return compute
// properties.
HealthCheckNameMetaDataServiceCheck HealthCheckName = "MetaDataServiceCheck"
// HealthCheckNameMonitoringAgentCheck Verifies that the required Geneva agent is running. If this check
// fails, it is non fatal and the machine still can service connections, main issue may be that monitoring
// agent is missing or running (possibly) older version.
HealthCheckNameMonitoringAgentCheck HealthCheckName = "MonitoringAgentCheck"
// HealthCheckNameSupportedEncryptionCheck Verifies the value of SecurityLayer registration key. If the
// value is 0 (SecurityLayer.RDP) this check fails with Error code = NativeMethodErrorCode.E_FAIL and is
// fatal. If the value is 1 (SecurityLayer.Negotiate) this check fails with Error code =
// NativeMethodErrorCode.ERROR_SUCCESS and is non fatal.
HealthCheckNameSupportedEncryptionCheck HealthCheckName = "SupportedEncryptionCheck"
// HealthCheckNameSxSStackListenerCheck Verifies that the SxS stack is up and running so connections can
// succeed. If this check fails is classified as fatal as no connection can succeed if the SxS stack is not
// ready.
HealthCheckNameSxSStackListenerCheck HealthCheckName = "SxSStackListenerCheck"
// HealthCheckNameUrlsAccessibleCheck Verifies that the required WVD service and Geneva URLs are reachable
// from the SessionHost. These URLs are: RdTokenUri, RdBrokerURI, RdDiagnosticsUri and storage blob URLs
// for agent monitoring (geneva). If this check fails, it is non fatal and the machine still can service
// connections, main issue may be that monitoring agent is unable to store warm path data (logs, operations
// ...).
HealthCheckNameUrlsAccessibleCheck HealthCheckName = "UrlsAccessibleCheck"
// HealthCheckNameWebRTCRedirectorCheck Verifies whether the WebRTCRedirector component is healthy. The
// WebRTCRedirector component is used to optimize video and audio performance in Microsoft Teams. This
// checks whether the component is still running, and whether there is a higher version available. If this
// check fails, it is non fatal and the machine still can service connections, main issue may be the
// WebRTCRedirector component has to be restarted or updated.
HealthCheckNameWebRTCRedirectorCheck HealthCheckName = "WebRTCRedirectorCheck"
)
// PossibleHealthCheckNameValues returns an array of possible values for the HealthCheckName const type.
func PossibleHealthCheckNameValues() []HealthCheckName {
return []HealthCheckName{HealthCheckNameAppAttachHealthCheck, HealthCheckNameDomainJoinedCheck, HealthCheckNameDomainReachable, HealthCheckNameDomainTrustCheck, HealthCheckNameFSLogixHealthCheck, HealthCheckNameMetaDataServiceCheck, HealthCheckNameMonitoringAgentCheck, HealthCheckNameSupportedEncryptionCheck, HealthCheckNameSxSStackListenerCheck, HealthCheckNameUrlsAccessibleCheck, HealthCheckNameWebRTCRedirectorCheck}
}
// HealthCheckResult enumerates the values for health check result.
type HealthCheckResult string
const (
// HealthCheckResultHealthCheckFailed Health check failed.
HealthCheckResultHealthCheckFailed HealthCheckResult = "HealthCheckFailed"
// HealthCheckResultHealthCheckSucceeded Health check passed.
HealthCheckResultHealthCheckSucceeded HealthCheckResult = "HealthCheckSucceeded"
// HealthCheckResultSessionHostShutdown We received a Shutdown notification.
HealthCheckResultSessionHostShutdown HealthCheckResult = "SessionHostShutdown"
// HealthCheckResultUnknown Health check result is not currently known.
HealthCheckResultUnknown HealthCheckResult = "Unknown"
)
// PossibleHealthCheckResultValues returns an array of possible values for the HealthCheckResult const type.
func PossibleHealthCheckResultValues() []HealthCheckResult {
return []HealthCheckResult{HealthCheckResultHealthCheckFailed, HealthCheckResultHealthCheckSucceeded, HealthCheckResultSessionHostShutdown, HealthCheckResultUnknown}
}
// HostPoolType enumerates the values for host pool type.
type HostPoolType string
const (
// HostPoolTypeBYODesktop Users assign their own machines, load balancing logic remains the same as
// Personal. PersonalDesktopAssignmentType must be Direct.
HostPoolTypeBYODesktop HostPoolType = "BYODesktop"
// HostPoolTypePersonal Users will be assigned a SessionHost either by administrators
// (PersonalDesktopAssignmentType = Direct) or upon connecting to the pool (PersonalDesktopAssignmentType =
// Automatic). They will always be redirected to their assigned SessionHost.
HostPoolTypePersonal HostPoolType = "Personal"
// HostPoolTypePooled Users get a new (random) SessionHost every time it connects to the HostPool.
HostPoolTypePooled HostPoolType = "Pooled"
)
// PossibleHostPoolTypeValues returns an array of possible values for the HostPoolType const type.
func PossibleHostPoolTypeValues() []HostPoolType {
return []HostPoolType{HostPoolTypeBYODesktop, HostPoolTypePersonal, HostPoolTypePooled}
}
// LoadBalancerType enumerates the values for load balancer type.
type LoadBalancerType string
const (
// LoadBalancerTypeBreadthFirst ...
LoadBalancerTypeBreadthFirst LoadBalancerType = "BreadthFirst"
// LoadBalancerTypeDepthFirst ...
LoadBalancerTypeDepthFirst LoadBalancerType = "DepthFirst"
// LoadBalancerTypePersistent ...
LoadBalancerTypePersistent LoadBalancerType = "Persistent"
)
// PossibleLoadBalancerTypeValues returns an array of possible values for the LoadBalancerType const type.
func PossibleLoadBalancerTypeValues() []LoadBalancerType {
return []LoadBalancerType{LoadBalancerTypeBreadthFirst, LoadBalancerTypeDepthFirst, LoadBalancerTypePersistent}
}
// Operation enumerates the values for operation.
type Operation string
const (
// OperationComplete Complete the migration.
OperationComplete Operation = "Complete"
// OperationHide Hide the hostpool.
OperationHide Operation = "Hide"
// OperationRevoke Revoke the migration.
OperationRevoke Operation = "Revoke"
// OperationStart Start the migration.
OperationStart Operation = "Start"
// OperationUnhide Unhide the hostpool.
OperationUnhide Operation = "Unhide"
)
// PossibleOperationValues returns an array of possible values for the Operation const type.
func PossibleOperationValues() []Operation {
return []Operation{OperationComplete, OperationHide, OperationRevoke, OperationStart, OperationUnhide}
}
// PersonalDesktopAssignmentType enumerates the values for personal desktop assignment type.
type PersonalDesktopAssignmentType string
const (
// PersonalDesktopAssignmentTypeAutomatic ...
PersonalDesktopAssignmentTypeAutomatic PersonalDesktopAssignmentType = "Automatic"
// PersonalDesktopAssignmentTypeDirect ...
PersonalDesktopAssignmentTypeDirect PersonalDesktopAssignmentType = "Direct"
)
// PossiblePersonalDesktopAssignmentTypeValues returns an array of possible values for the PersonalDesktopAssignmentType const type.
func PossiblePersonalDesktopAssignmentTypeValues() []PersonalDesktopAssignmentType {
return []PersonalDesktopAssignmentType{PersonalDesktopAssignmentTypeAutomatic, PersonalDesktopAssignmentTypeDirect}
}
// PreferredAppGroupType enumerates the values for preferred app group type.
type PreferredAppGroupType string
const (
// PreferredAppGroupTypeDesktop ...
PreferredAppGroupTypeDesktop PreferredAppGroupType = "Desktop"
// PreferredAppGroupTypeNone ...
PreferredAppGroupTypeNone PreferredAppGroupType = "None"
// PreferredAppGroupTypeRailApplications ...
PreferredAppGroupTypeRailApplications PreferredAppGroupType = "RailApplications"
)
// PossiblePreferredAppGroupTypeValues returns an array of possible values for the PreferredAppGroupType const type.
func PossiblePreferredAppGroupTypeValues() []PreferredAppGroupType {
return []PreferredAppGroupType{PreferredAppGroupTypeDesktop, PreferredAppGroupTypeNone, PreferredAppGroupTypeRailApplications}
}
// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection
// provisioning state.
type PrivateEndpointConnectionProvisioningState string
const (
// PrivateEndpointConnectionProvisioningStateCreating ...
PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating"
// PrivateEndpointConnectionProvisioningStateDeleting ...
PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting"
// PrivateEndpointConnectionProvisioningStateFailed ...
PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed"
// PrivateEndpointConnectionProvisioningStateSucceeded ...
PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded"
)
// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type.
func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState {
return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded}
}
// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status.
type PrivateEndpointServiceConnectionStatus string
const (
// PrivateEndpointServiceConnectionStatusApproved ...
PrivateEndpointServiceConnectionStatusApproved PrivateEndpointServiceConnectionStatus = "Approved"
// PrivateEndpointServiceConnectionStatusPending ...
PrivateEndpointServiceConnectionStatusPending PrivateEndpointServiceConnectionStatus = "Pending"
// PrivateEndpointServiceConnectionStatusRejected ...
PrivateEndpointServiceConnectionStatusRejected PrivateEndpointServiceConnectionStatus = "Rejected"
)
// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type.
func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus {
return []PrivateEndpointServiceConnectionStatus{PrivateEndpointServiceConnectionStatusApproved, PrivateEndpointServiceConnectionStatusPending, PrivateEndpointServiceConnectionStatusRejected}
}
// PublicNetworkAccess enumerates the values for public network access.
type PublicNetworkAccess string
const (
// PublicNetworkAccessDisabled ...
PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled"
// PublicNetworkAccessEnabled ...
PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled"
)
// PossiblePublicNetworkAccessValues returns an array of possible values for the PublicNetworkAccess const type.
func PossiblePublicNetworkAccessValues() []PublicNetworkAccess {
return []PublicNetworkAccess{PublicNetworkAccessDisabled, PublicNetworkAccessEnabled}
}
// RegistrationTokenOperation enumerates the values for registration token operation.
type RegistrationTokenOperation string
const (
// RegistrationTokenOperationDelete ...
RegistrationTokenOperationDelete RegistrationTokenOperation = "Delete"
// RegistrationTokenOperationNone ...
RegistrationTokenOperationNone RegistrationTokenOperation = "None"
// RegistrationTokenOperationUpdate ...
RegistrationTokenOperationUpdate RegistrationTokenOperation = "Update"
)
// PossibleRegistrationTokenOperationValues returns an array of possible values for the RegistrationTokenOperation const type.
func PossibleRegistrationTokenOperationValues() []RegistrationTokenOperation {
return []RegistrationTokenOperation{RegistrationTokenOperationDelete, RegistrationTokenOperationNone, RegistrationTokenOperationUpdate}
}
// RemoteApplicationType enumerates the values for remote application type.
type RemoteApplicationType string
const (
// RemoteApplicationTypeInBuilt ...
RemoteApplicationTypeInBuilt RemoteApplicationType = "InBuilt"
// RemoteApplicationTypeMsixApplication ...
RemoteApplicationTypeMsixApplication RemoteApplicationType = "MsixApplication"
)
// PossibleRemoteApplicationTypeValues returns an array of possible values for the RemoteApplicationType const type.
func PossibleRemoteApplicationTypeValues() []RemoteApplicationType {
return []RemoteApplicationType{RemoteApplicationTypeInBuilt, RemoteApplicationTypeMsixApplication}
}
// ResourceIdentityType enumerates the values for resource identity type.
type ResourceIdentityType string
const (
// ResourceIdentityTypeSystemAssigned ...
ResourceIdentityTypeSystemAssigned ResourceIdentityType = "SystemAssigned"
)
// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type.
func PossibleResourceIdentityTypeValues() []ResourceIdentityType {
return []ResourceIdentityType{ResourceIdentityTypeSystemAssigned}
}
// ScalingHostPoolType enumerates the values for scaling host pool type.
type ScalingHostPoolType string
const (
// ScalingHostPoolTypePooled Users get a new (random) SessionHost every time it connects to the HostPool.
ScalingHostPoolTypePooled ScalingHostPoolType = "Pooled"
)
// PossibleScalingHostPoolTypeValues returns an array of possible values for the ScalingHostPoolType const type.
func PossibleScalingHostPoolTypeValues() []ScalingHostPoolType {
return []ScalingHostPoolType{ScalingHostPoolTypePooled}
}
// SessionHostLoadBalancingAlgorithm enumerates the values for session host load balancing algorithm.
type SessionHostLoadBalancingAlgorithm string
const (
// SessionHostLoadBalancingAlgorithmBreadthFirst ...
SessionHostLoadBalancingAlgorithmBreadthFirst SessionHostLoadBalancingAlgorithm = "BreadthFirst"
// SessionHostLoadBalancingAlgorithmDepthFirst ...
SessionHostLoadBalancingAlgorithmDepthFirst SessionHostLoadBalancingAlgorithm = "DepthFirst"
)
// PossibleSessionHostLoadBalancingAlgorithmValues returns an array of possible values for the SessionHostLoadBalancingAlgorithm const type.
func PossibleSessionHostLoadBalancingAlgorithmValues() []SessionHostLoadBalancingAlgorithm {
return []SessionHostLoadBalancingAlgorithm{SessionHostLoadBalancingAlgorithmBreadthFirst, SessionHostLoadBalancingAlgorithmDepthFirst}
}
// SessionState enumerates the values for session state.
type SessionState string
const (
// SessionStateActive ...
SessionStateActive SessionState = "Active"
// SessionStateDisconnected ...
SessionStateDisconnected SessionState = "Disconnected"
// SessionStateLogOff ...
SessionStateLogOff SessionState = "LogOff"
// SessionStatePending ...
SessionStatePending SessionState = "Pending"
// SessionStateUnknown ...
SessionStateUnknown SessionState = "Unknown"
// SessionStateUserProfileDiskMounted ...
SessionStateUserProfileDiskMounted SessionState = "UserProfileDiskMounted"
)
// PossibleSessionStateValues returns an array of possible values for the SessionState const type.
func PossibleSessionStateValues() []SessionState {
return []SessionState{SessionStateActive, SessionStateDisconnected, SessionStateLogOff, SessionStatePending, SessionStateUnknown, SessionStateUserProfileDiskMounted}
}
// SkuTier enumerates the values for sku tier.
type SkuTier string
const (
// SkuTierBasic ...
SkuTierBasic SkuTier = "Basic"
// SkuTierFree ...
SkuTierFree SkuTier = "Free"
// SkuTierPremium ...
SkuTierPremium SkuTier = "Premium"
// SkuTierStandard ...
SkuTierStandard SkuTier = "Standard"
)
// PossibleSkuTierValues returns an array of possible values for the SkuTier const type.
func PossibleSkuTierValues() []SkuTier {
return []SkuTier{SkuTierBasic, SkuTierFree, SkuTierPremium, SkuTierStandard}
}
// SSOSecretType enumerates the values for sso secret type.
type SSOSecretType string
const (
// SSOSecretTypeCertificate ...
SSOSecretTypeCertificate SSOSecretType = "Certificate"
// SSOSecretTypeCertificateInKeyVault ...
SSOSecretTypeCertificateInKeyVault SSOSecretType = "CertificateInKeyVault"
// SSOSecretTypeSharedKey ...
SSOSecretTypeSharedKey SSOSecretType = "SharedKey"
// SSOSecretTypeSharedKeyInKeyVault ...
SSOSecretTypeSharedKeyInKeyVault SSOSecretType = "SharedKeyInKeyVault"
)
// PossibleSSOSecretTypeValues returns an array of possible values for the SSOSecretType const type.
func PossibleSSOSecretTypeValues() []SSOSecretType {
return []SSOSecretType{SSOSecretTypeCertificate, SSOSecretTypeCertificateInKeyVault, SSOSecretTypeSharedKey, SSOSecretTypeSharedKeyInKeyVault}
}
// Status enumerates the values for status.
type Status string
const (
// StatusAvailable Session Host has passed all the health checks and is available to handle connections.
StatusAvailable Status = "Available"
// StatusDisconnected The Session Host is unavailable because it is currently disconnected.
StatusDisconnected Status = "Disconnected"
// StatusDomainTrustRelationshipLost SessionHost's domain trust relationship lost
StatusDomainTrustRelationshipLost Status = "DomainTrustRelationshipLost"
// StatusFSLogixNotHealthy FSLogix is in an unhealthy state on the session host.
StatusFSLogixNotHealthy Status = "FSLogixNotHealthy"
// StatusNeedsAssistance New status to inform admins that the health on their endpoint needs to be fixed.
// The connections might not fail, as these issues are not fatal.
StatusNeedsAssistance Status = "NeedsAssistance"
// StatusNoHeartbeat The Session Host is not heart beating.
StatusNoHeartbeat Status = "NoHeartbeat"
// StatusNotJoinedToDomain SessionHost is not joined to domain.
StatusNotJoinedToDomain Status = "NotJoinedToDomain"
// StatusShutdown Session Host is shutdown - RD Agent reported session host to be stopped or deallocated.
StatusShutdown Status = "Shutdown"
// StatusSxSStackListenerNotReady SxS stack installed on the SessionHost is not ready to receive
// connections.
StatusSxSStackListenerNotReady Status = "SxSStackListenerNotReady"
// StatusUnavailable Session Host is either turned off or has failed critical health checks which is
// causing service not to be able to route connections to this session host. Note this replaces previous
// 'NoHeartBeat' status.
StatusUnavailable Status = "Unavailable"
// StatusUpgradeFailed Session Host is unavailable because the critical component upgrade (agent,
// side-by-side stack, etc.) failed.
StatusUpgradeFailed Status = "UpgradeFailed"
// StatusUpgrading Session Host is unavailable because currently an upgrade of RDAgent/side-by-side stack
// is in progress. Note: this state will be removed once the upgrade completes and the host is able to
// accept connections.
StatusUpgrading Status = "Upgrading"
)
// PossibleStatusValues returns an array of possible values for the Status const type.
func PossibleStatusValues() []Status {
return []Status{StatusAvailable, StatusDisconnected, StatusDomainTrustRelationshipLost, StatusFSLogixNotHealthy, StatusNeedsAssistance, StatusNoHeartbeat, StatusNotJoinedToDomain, StatusShutdown, StatusSxSStackListenerNotReady, StatusUnavailable, StatusUpgradeFailed, StatusUpgrading}
}
// StopHostsWhen enumerates the values for stop hosts when.
type StopHostsWhen string
const (
// StopHostsWhenZeroActiveSessions ...
StopHostsWhenZeroActiveSessions StopHostsWhen = "ZeroActiveSessions"
// StopHostsWhenZeroSessions ...
StopHostsWhenZeroSessions StopHostsWhen = "ZeroSessions"
)
// PossibleStopHostsWhenValues returns an array of possible values for the StopHostsWhen const type.
func PossibleStopHostsWhenValues() []StopHostsWhen {
return []StopHostsWhen{StopHostsWhenZeroActiveSessions, StopHostsWhenZeroSessions}
}
// UpdateState enumerates the values for update state.
type UpdateState string
const (
// UpdateStateFailed ...
UpdateStateFailed UpdateState = "Failed"
// UpdateStateInitial ...
UpdateStateInitial UpdateState = "Initial"
// UpdateStatePending ...
UpdateStatePending UpdateState = "Pending"
// UpdateStateStarted ...
UpdateStateStarted UpdateState = "Started"
// UpdateStateSucceeded ...
UpdateStateSucceeded UpdateState = "Succeeded"
)
// PossibleUpdateStateValues returns an array of possible values for the UpdateState const type.
func PossibleUpdateStateValues() []UpdateState {
return []UpdateState{UpdateStateFailed, UpdateStateInitial, UpdateStatePending, UpdateStateStarted, UpdateStateSucceeded}
}