1package machinelearningservices 2 3// Copyright (c) Microsoft and contributors. All rights reserved. 4// 5// Licensed under the Apache License, Version 2.0 (the "License"); 6// you may not use this file except in compliance with the License. 7// You may obtain a copy of the License at 8// http://www.apache.org/licenses/LICENSE-2.0 9// 10// Unless required by applicable law or agreed to in writing, software 11// distributed under the License is distributed on an "AS IS" BASIS, 12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13// 14// See the License for the specific language governing permissions and 15// limitations under the License. 16// 17// Code generated by Microsoft (R) AutoRest Code Generator. 18// Changes may cause incorrect behavior and will be lost if the code is regenerated. 19 20// AllocationState enumerates the values for allocation state. 21type AllocationState string 22 23const ( 24 // Resizing ... 25 Resizing AllocationState = "Resizing" 26 // Steady ... 27 Steady AllocationState = "Steady" 28) 29 30// PossibleAllocationStateValues returns an array of possible values for the AllocationState const type. 31func PossibleAllocationStateValues() []AllocationState { 32 return []AllocationState{Resizing, Steady} 33} 34 35// ApplicationSharingPolicy enumerates the values for application sharing policy. 36type ApplicationSharingPolicy string 37 38const ( 39 // Personal ... 40 Personal ApplicationSharingPolicy = "Personal" 41 // Shared ... 42 Shared ApplicationSharingPolicy = "Shared" 43) 44 45// PossibleApplicationSharingPolicyValues returns an array of possible values for the ApplicationSharingPolicy const type. 46func PossibleApplicationSharingPolicyValues() []ApplicationSharingPolicy { 47 return []ApplicationSharingPolicy{Personal, Shared} 48} 49 50// ComputeInstanceAuthorizationType enumerates the values for compute instance authorization type. 51type ComputeInstanceAuthorizationType string 52 53const ( 54 // ComputeInstanceAuthorizationTypePersonal ... 55 ComputeInstanceAuthorizationTypePersonal ComputeInstanceAuthorizationType = "personal" 56) 57 58// PossibleComputeInstanceAuthorizationTypeValues returns an array of possible values for the ComputeInstanceAuthorizationType const type. 59func PossibleComputeInstanceAuthorizationTypeValues() []ComputeInstanceAuthorizationType { 60 return []ComputeInstanceAuthorizationType{ComputeInstanceAuthorizationTypePersonal} 61} 62 63// ComputeInstanceState enumerates the values for compute instance state. 64type ComputeInstanceState string 65 66const ( 67 // CreateFailed ... 68 CreateFailed ComputeInstanceState = "CreateFailed" 69 // Creating ... 70 Creating ComputeInstanceState = "Creating" 71 // Deleting ... 72 Deleting ComputeInstanceState = "Deleting" 73 // JobRunning ... 74 JobRunning ComputeInstanceState = "JobRunning" 75 // RestartFailed ... 76 RestartFailed ComputeInstanceState = "RestartFailed" 77 // Restarting ... 78 Restarting ComputeInstanceState = "Restarting" 79 // Running ... 80 Running ComputeInstanceState = "Running" 81 // SettingUp ... 82 SettingUp ComputeInstanceState = "SettingUp" 83 // StartFailed ... 84 StartFailed ComputeInstanceState = "StartFailed" 85 // Starting ... 86 Starting ComputeInstanceState = "Starting" 87 // StopFailed ... 88 StopFailed ComputeInstanceState = "StopFailed" 89 // Stopped ... 90 Stopped ComputeInstanceState = "Stopped" 91 // Stopping ... 92 Stopping ComputeInstanceState = "Stopping" 93 // Unknown ... 94 Unknown ComputeInstanceState = "Unknown" 95 // Unusable ... 96 Unusable ComputeInstanceState = "Unusable" 97 // UserSettingUp ... 98 UserSettingUp ComputeInstanceState = "UserSettingUp" 99) 100 101// PossibleComputeInstanceStateValues returns an array of possible values for the ComputeInstanceState const type. 102func PossibleComputeInstanceStateValues() []ComputeInstanceState { 103 return []ComputeInstanceState{CreateFailed, Creating, Deleting, JobRunning, RestartFailed, Restarting, Running, SettingUp, StartFailed, Starting, StopFailed, Stopped, Stopping, Unknown, Unusable, UserSettingUp} 104} 105 106// ComputeType enumerates the values for compute type. 107type ComputeType string 108 109const ( 110 // ComputeTypeAKS ... 111 ComputeTypeAKS ComputeType = "AKS" 112 // ComputeTypeAmlCompute ... 113 ComputeTypeAmlCompute ComputeType = "AmlCompute" 114 // ComputeTypeComputeInstance ... 115 ComputeTypeComputeInstance ComputeType = "ComputeInstance" 116 // ComputeTypeDatabricks ... 117 ComputeTypeDatabricks ComputeType = "Databricks" 118 // ComputeTypeDataFactory ... 119 ComputeTypeDataFactory ComputeType = "DataFactory" 120 // ComputeTypeDataLakeAnalytics ... 121 ComputeTypeDataLakeAnalytics ComputeType = "DataLakeAnalytics" 122 // ComputeTypeHDInsight ... 123 ComputeTypeHDInsight ComputeType = "HDInsight" 124 // ComputeTypeVirtualMachine ... 125 ComputeTypeVirtualMachine ComputeType = "VirtualMachine" 126) 127 128// PossibleComputeTypeValues returns an array of possible values for the ComputeType const type. 129func PossibleComputeTypeValues() []ComputeType { 130 return []ComputeType{ComputeTypeAKS, ComputeTypeAmlCompute, ComputeTypeComputeInstance, ComputeTypeDatabricks, ComputeTypeDataFactory, ComputeTypeDataLakeAnalytics, ComputeTypeHDInsight, ComputeTypeVirtualMachine} 131} 132 133// ComputeTypeBasicCompute enumerates the values for compute type basic compute. 134type ComputeTypeBasicCompute string 135 136const ( 137 // ComputeTypeAKS1 ... 138 ComputeTypeAKS1 ComputeTypeBasicCompute = "AKS" 139 // ComputeTypeAmlCompute1 ... 140 ComputeTypeAmlCompute1 ComputeTypeBasicCompute = "AmlCompute" 141 // ComputeTypeCompute ... 142 ComputeTypeCompute ComputeTypeBasicCompute = "Compute" 143 // ComputeTypeComputeInstance1 ... 144 ComputeTypeComputeInstance1 ComputeTypeBasicCompute = "ComputeInstance" 145 // ComputeTypeDatabricks1 ... 146 ComputeTypeDatabricks1 ComputeTypeBasicCompute = "Databricks" 147 // ComputeTypeDataFactory1 ... 148 ComputeTypeDataFactory1 ComputeTypeBasicCompute = "DataFactory" 149 // ComputeTypeDataLakeAnalytics1 ... 150 ComputeTypeDataLakeAnalytics1 ComputeTypeBasicCompute = "DataLakeAnalytics" 151 // ComputeTypeHDInsight1 ... 152 ComputeTypeHDInsight1 ComputeTypeBasicCompute = "HDInsight" 153 // ComputeTypeVirtualMachine1 ... 154 ComputeTypeVirtualMachine1 ComputeTypeBasicCompute = "VirtualMachine" 155) 156 157// PossibleComputeTypeBasicComputeValues returns an array of possible values for the ComputeTypeBasicCompute const type. 158func PossibleComputeTypeBasicComputeValues() []ComputeTypeBasicCompute { 159 return []ComputeTypeBasicCompute{ComputeTypeAKS1, ComputeTypeAmlCompute1, ComputeTypeCompute, ComputeTypeComputeInstance1, ComputeTypeDatabricks1, ComputeTypeDataFactory1, ComputeTypeDataLakeAnalytics1, ComputeTypeHDInsight1, ComputeTypeVirtualMachine1} 160} 161 162// ComputeTypeBasicComputeNodesInformation enumerates the values for compute type basic compute nodes 163// information. 164type ComputeTypeBasicComputeNodesInformation string 165 166const ( 167 // ComputeTypeBasicComputeNodesInformationComputeTypeAmlCompute ... 168 ComputeTypeBasicComputeNodesInformationComputeTypeAmlCompute ComputeTypeBasicComputeNodesInformation = "AmlCompute" 169 // ComputeTypeBasicComputeNodesInformationComputeTypeComputeNodesInformation ... 170 ComputeTypeBasicComputeNodesInformationComputeTypeComputeNodesInformation ComputeTypeBasicComputeNodesInformation = "ComputeNodesInformation" 171) 172 173// PossibleComputeTypeBasicComputeNodesInformationValues returns an array of possible values for the ComputeTypeBasicComputeNodesInformation const type. 174func PossibleComputeTypeBasicComputeNodesInformationValues() []ComputeTypeBasicComputeNodesInformation { 175 return []ComputeTypeBasicComputeNodesInformation{ComputeTypeBasicComputeNodesInformationComputeTypeAmlCompute, ComputeTypeBasicComputeNodesInformationComputeTypeComputeNodesInformation} 176} 177 178// ComputeTypeBasicComputeSecrets enumerates the values for compute type basic compute secrets. 179type ComputeTypeBasicComputeSecrets string 180 181const ( 182 // ComputeTypeBasicComputeSecretsComputeTypeAKS ... 183 ComputeTypeBasicComputeSecretsComputeTypeAKS ComputeTypeBasicComputeSecrets = "AKS" 184 // ComputeTypeBasicComputeSecretsComputeTypeComputeSecrets ... 185 ComputeTypeBasicComputeSecretsComputeTypeComputeSecrets ComputeTypeBasicComputeSecrets = "ComputeSecrets" 186 // ComputeTypeBasicComputeSecretsComputeTypeDatabricks ... 187 ComputeTypeBasicComputeSecretsComputeTypeDatabricks ComputeTypeBasicComputeSecrets = "Databricks" 188 // ComputeTypeBasicComputeSecretsComputeTypeVirtualMachine ... 189 ComputeTypeBasicComputeSecretsComputeTypeVirtualMachine ComputeTypeBasicComputeSecrets = "VirtualMachine" 190) 191 192// PossibleComputeTypeBasicComputeSecretsValues returns an array of possible values for the ComputeTypeBasicComputeSecrets const type. 193func PossibleComputeTypeBasicComputeSecretsValues() []ComputeTypeBasicComputeSecrets { 194 return []ComputeTypeBasicComputeSecrets{ComputeTypeBasicComputeSecretsComputeTypeAKS, ComputeTypeBasicComputeSecretsComputeTypeComputeSecrets, ComputeTypeBasicComputeSecretsComputeTypeDatabricks, ComputeTypeBasicComputeSecretsComputeTypeVirtualMachine} 195} 196 197// EncryptionStatus enumerates the values for encryption status. 198type EncryptionStatus string 199 200const ( 201 // Disabled ... 202 Disabled EncryptionStatus = "Disabled" 203 // Enabled ... 204 Enabled EncryptionStatus = "Enabled" 205) 206 207// PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type. 208func PossibleEncryptionStatusValues() []EncryptionStatus { 209 return []EncryptionStatus{Disabled, Enabled} 210} 211 212// NodeState enumerates the values for node state. 213type NodeState string 214 215const ( 216 // NodeStateIdle ... 217 NodeStateIdle NodeState = "idle" 218 // NodeStateLeaving ... 219 NodeStateLeaving NodeState = "leaving" 220 // NodeStatePreempted ... 221 NodeStatePreempted NodeState = "preempted" 222 // NodeStatePreparing ... 223 NodeStatePreparing NodeState = "preparing" 224 // NodeStateRunning ... 225 NodeStateRunning NodeState = "running" 226 // NodeStateUnusable ... 227 NodeStateUnusable NodeState = "unusable" 228) 229 230// PossibleNodeStateValues returns an array of possible values for the NodeState const type. 231func PossibleNodeStateValues() []NodeState { 232 return []NodeState{NodeStateIdle, NodeStateLeaving, NodeStatePreempted, NodeStatePreparing, NodeStateRunning, NodeStateUnusable} 233} 234 235// OsType enumerates the values for os type. 236type OsType string 237 238const ( 239 // Linux ... 240 Linux OsType = "Linux" 241 // Windows ... 242 Windows OsType = "Windows" 243) 244 245// PossibleOsTypeValues returns an array of possible values for the OsType const type. 246func PossibleOsTypeValues() []OsType { 247 return []OsType{Linux, Windows} 248} 249 250// PrivateEndpointConnectionProvisioningState enumerates the values for private endpoint connection 251// provisioning state. 252type PrivateEndpointConnectionProvisioningState string 253 254const ( 255 // PrivateEndpointConnectionProvisioningStateCreating ... 256 PrivateEndpointConnectionProvisioningStateCreating PrivateEndpointConnectionProvisioningState = "Creating" 257 // PrivateEndpointConnectionProvisioningStateDeleting ... 258 PrivateEndpointConnectionProvisioningStateDeleting PrivateEndpointConnectionProvisioningState = "Deleting" 259 // PrivateEndpointConnectionProvisioningStateFailed ... 260 PrivateEndpointConnectionProvisioningStateFailed PrivateEndpointConnectionProvisioningState = "Failed" 261 // PrivateEndpointConnectionProvisioningStateSucceeded ... 262 PrivateEndpointConnectionProvisioningStateSucceeded PrivateEndpointConnectionProvisioningState = "Succeeded" 263) 264 265// PossiblePrivateEndpointConnectionProvisioningStateValues returns an array of possible values for the PrivateEndpointConnectionProvisioningState const type. 266func PossiblePrivateEndpointConnectionProvisioningStateValues() []PrivateEndpointConnectionProvisioningState { 267 return []PrivateEndpointConnectionProvisioningState{PrivateEndpointConnectionProvisioningStateCreating, PrivateEndpointConnectionProvisioningStateDeleting, PrivateEndpointConnectionProvisioningStateFailed, PrivateEndpointConnectionProvisioningStateSucceeded} 268} 269 270// PrivateEndpointServiceConnectionStatus enumerates the values for private endpoint service connection status. 271type PrivateEndpointServiceConnectionStatus string 272 273const ( 274 // Approved ... 275 Approved PrivateEndpointServiceConnectionStatus = "Approved" 276 // Pending ... 277 Pending PrivateEndpointServiceConnectionStatus = "Pending" 278 // Rejected ... 279 Rejected PrivateEndpointServiceConnectionStatus = "Rejected" 280) 281 282// PossiblePrivateEndpointServiceConnectionStatusValues returns an array of possible values for the PrivateEndpointServiceConnectionStatus const type. 283func PossiblePrivateEndpointServiceConnectionStatusValues() []PrivateEndpointServiceConnectionStatus { 284 return []PrivateEndpointServiceConnectionStatus{Approved, Pending, Rejected} 285} 286 287// ProvisioningState enumerates the values for provisioning state. 288type ProvisioningState string 289 290const ( 291 // ProvisioningStateCanceled ... 292 ProvisioningStateCanceled ProvisioningState = "Canceled" 293 // ProvisioningStateCreating ... 294 ProvisioningStateCreating ProvisioningState = "Creating" 295 // ProvisioningStateDeleting ... 296 ProvisioningStateDeleting ProvisioningState = "Deleting" 297 // ProvisioningStateFailed ... 298 ProvisioningStateFailed ProvisioningState = "Failed" 299 // ProvisioningStateSucceeded ... 300 ProvisioningStateSucceeded ProvisioningState = "Succeeded" 301 // ProvisioningStateUnknown ... 302 ProvisioningStateUnknown ProvisioningState = "Unknown" 303 // ProvisioningStateUpdating ... 304 ProvisioningStateUpdating ProvisioningState = "Updating" 305) 306 307// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. 308func PossibleProvisioningStateValues() []ProvisioningState { 309 return []ProvisioningState{ProvisioningStateCanceled, ProvisioningStateCreating, ProvisioningStateDeleting, ProvisioningStateFailed, ProvisioningStateSucceeded, ProvisioningStateUnknown, ProvisioningStateUpdating} 310} 311 312// QuotaUnit enumerates the values for quota unit. 313type QuotaUnit string 314 315const ( 316 // Count ... 317 Count QuotaUnit = "Count" 318) 319 320// PossibleQuotaUnitValues returns an array of possible values for the QuotaUnit const type. 321func PossibleQuotaUnitValues() []QuotaUnit { 322 return []QuotaUnit{Count} 323} 324 325// ReasonCode enumerates the values for reason code. 326type ReasonCode string 327 328const ( 329 // NotAvailableForRegion ... 330 NotAvailableForRegion ReasonCode = "NotAvailableForRegion" 331 // NotAvailableForSubscription ... 332 NotAvailableForSubscription ReasonCode = "NotAvailableForSubscription" 333 // NotSpecified ... 334 NotSpecified ReasonCode = "NotSpecified" 335) 336 337// PossibleReasonCodeValues returns an array of possible values for the ReasonCode const type. 338func PossibleReasonCodeValues() []ReasonCode { 339 return []ReasonCode{NotAvailableForRegion, NotAvailableForSubscription, NotSpecified} 340} 341 342// RemoteLoginPortPublicAccess enumerates the values for remote login port public access. 343type RemoteLoginPortPublicAccess string 344 345const ( 346 // RemoteLoginPortPublicAccessDisabled ... 347 RemoteLoginPortPublicAccessDisabled RemoteLoginPortPublicAccess = "Disabled" 348 // RemoteLoginPortPublicAccessEnabled ... 349 RemoteLoginPortPublicAccessEnabled RemoteLoginPortPublicAccess = "Enabled" 350 // RemoteLoginPortPublicAccessNotSpecified ... 351 RemoteLoginPortPublicAccessNotSpecified RemoteLoginPortPublicAccess = "NotSpecified" 352) 353 354// PossibleRemoteLoginPortPublicAccessValues returns an array of possible values for the RemoteLoginPortPublicAccess const type. 355func PossibleRemoteLoginPortPublicAccessValues() []RemoteLoginPortPublicAccess { 356 return []RemoteLoginPortPublicAccess{RemoteLoginPortPublicAccessDisabled, RemoteLoginPortPublicAccessEnabled, RemoteLoginPortPublicAccessNotSpecified} 357} 358 359// ResourceIdentityType enumerates the values for resource identity type. 360type ResourceIdentityType string 361 362const ( 363 // SystemAssigned ... 364 SystemAssigned ResourceIdentityType = "SystemAssigned" 365) 366 367// PossibleResourceIdentityTypeValues returns an array of possible values for the ResourceIdentityType const type. 368func PossibleResourceIdentityTypeValues() []ResourceIdentityType { 369 return []ResourceIdentityType{SystemAssigned} 370} 371 372// SSHPublicAccess enumerates the values for ssh public access. 373type SSHPublicAccess string 374 375const ( 376 // SSHPublicAccessDisabled ... 377 SSHPublicAccessDisabled SSHPublicAccess = "Disabled" 378 // SSHPublicAccessEnabled ... 379 SSHPublicAccessEnabled SSHPublicAccess = "Enabled" 380) 381 382// PossibleSSHPublicAccessValues returns an array of possible values for the SSHPublicAccess const type. 383func PossibleSSHPublicAccessValues() []SSHPublicAccess { 384 return []SSHPublicAccess{SSHPublicAccessDisabled, SSHPublicAccessEnabled} 385} 386 387// Status enumerates the values for status. 388type Status string 389 390const ( 391 // Failure ... 392 Failure Status = "Failure" 393 // InvalidQuotaBelowClusterMinimum ... 394 InvalidQuotaBelowClusterMinimum Status = "InvalidQuotaBelowClusterMinimum" 395 // InvalidQuotaExceedsSubscriptionLimit ... 396 InvalidQuotaExceedsSubscriptionLimit Status = "InvalidQuotaExceedsSubscriptionLimit" 397 // InvalidVMFamilyName ... 398 InvalidVMFamilyName Status = "InvalidVMFamilyName" 399 // OperationNotEnabledForRegion ... 400 OperationNotEnabledForRegion Status = "OperationNotEnabledForRegion" 401 // OperationNotSupportedForSku ... 402 OperationNotSupportedForSku Status = "OperationNotSupportedForSku" 403 // Success ... 404 Success Status = "Success" 405 // Undefined ... 406 Undefined Status = "Undefined" 407) 408 409// PossibleStatusValues returns an array of possible values for the Status const type. 410func PossibleStatusValues() []Status { 411 return []Status{Failure, InvalidQuotaBelowClusterMinimum, InvalidQuotaExceedsSubscriptionLimit, InvalidVMFamilyName, OperationNotEnabledForRegion, OperationNotSupportedForSku, Success, Undefined} 412} 413 414// Status1 enumerates the values for status 1. 415type Status1 string 416 417const ( 418 // Status1Disabled ... 419 Status1Disabled Status1 = "Disabled" 420 // Status1Enabled ... 421 Status1Enabled Status1 = "Enabled" 422) 423 424// PossibleStatus1Values returns an array of possible values for the Status1 const type. 425func PossibleStatus1Values() []Status1 { 426 return []Status1{Status1Disabled, Status1Enabled} 427} 428 429// UnderlyingResourceAction enumerates the values for underlying resource action. 430type UnderlyingResourceAction string 431 432const ( 433 // Delete ... 434 Delete UnderlyingResourceAction = "Delete" 435 // Detach ... 436 Detach UnderlyingResourceAction = "Detach" 437) 438 439// PossibleUnderlyingResourceActionValues returns an array of possible values for the UnderlyingResourceAction const type. 440func PossibleUnderlyingResourceActionValues() []UnderlyingResourceAction { 441 return []UnderlyingResourceAction{Delete, Detach} 442} 443 444// UsageUnit enumerates the values for usage unit. 445type UsageUnit string 446 447const ( 448 // UsageUnitCount ... 449 UsageUnitCount UsageUnit = "Count" 450) 451 452// PossibleUsageUnitValues returns an array of possible values for the UsageUnit const type. 453func PossibleUsageUnitValues() []UsageUnit { 454 return []UsageUnit{UsageUnitCount} 455} 456 457// VMPriority enumerates the values for vm priority. 458type VMPriority string 459 460const ( 461 // Dedicated ... 462 Dedicated VMPriority = "Dedicated" 463 // LowPriority ... 464 LowPriority VMPriority = "LowPriority" 465) 466 467// PossibleVMPriorityValues returns an array of possible values for the VMPriority const type. 468func PossibleVMPriorityValues() []VMPriority { 469 return []VMPriority{Dedicated, LowPriority} 470} 471