1package servicefabric 2 3// Copyright (c) Microsoft Corporation. All rights reserved. 4// Licensed under the MIT License. See License.txt in the project root for license information. 5// 6// Code generated by Microsoft (R) AutoRest Code Generator. 7// Changes may cause incorrect behavior and will be lost if the code is regenerated. 8 9// ApplicationDefinitionKind enumerates the values for application definition kind. 10type ApplicationDefinitionKind string 11 12const ( 13 // Compose Indicates the application is defined by compose file(s). The value is 1. 14 Compose ApplicationDefinitionKind = "Compose" 15 // Invalid Indicates the application definition kind is invalid. All Service Fabric enumerations have the 16 // invalid type. The value is 65535. 17 Invalid ApplicationDefinitionKind = "Invalid" 18 // ServiceFabricApplicationDescription Indicates the application is defined by a Service Fabric application 19 // description. The value is 0. 20 ServiceFabricApplicationDescription ApplicationDefinitionKind = "ServiceFabricApplicationDescription" 21) 22 23// PossibleApplicationDefinitionKindValues returns an array of possible values for the ApplicationDefinitionKind const type. 24func PossibleApplicationDefinitionKindValues() []ApplicationDefinitionKind { 25 return []ApplicationDefinitionKind{Compose, Invalid, ServiceFabricApplicationDescription} 26} 27 28// ApplicationPackageCleanupPolicy enumerates the values for application package cleanup policy. 29type ApplicationPackageCleanupPolicy string 30 31const ( 32 // ApplicationPackageCleanupPolicyAutomatic Indicates that the service fabric runtime determines when to do 33 // the application package cleanup. By default, cleanup is done on successful provision. The value is 2. 34 ApplicationPackageCleanupPolicyAutomatic ApplicationPackageCleanupPolicy = "Automatic" 35 // ApplicationPackageCleanupPolicyDefault Indicates that the cleanup policy of application packages is 36 // based on the cluster setting "CleanupApplicationPackageOnProvisionSuccess." The value is 1. 37 ApplicationPackageCleanupPolicyDefault ApplicationPackageCleanupPolicy = "Default" 38 // ApplicationPackageCleanupPolicyInvalid Indicates that the application package cleanup policy is invalid. 39 // This value is default. The value is zero. 40 ApplicationPackageCleanupPolicyInvalid ApplicationPackageCleanupPolicy = "Invalid" 41 // ApplicationPackageCleanupPolicyManual Indicates that the user has to explicitly clean up the application 42 // package. The value is 3. 43 ApplicationPackageCleanupPolicyManual ApplicationPackageCleanupPolicy = "Manual" 44) 45 46// PossibleApplicationPackageCleanupPolicyValues returns an array of possible values for the ApplicationPackageCleanupPolicy const type. 47func PossibleApplicationPackageCleanupPolicyValues() []ApplicationPackageCleanupPolicy { 48 return []ApplicationPackageCleanupPolicy{ApplicationPackageCleanupPolicyAutomatic, ApplicationPackageCleanupPolicyDefault, ApplicationPackageCleanupPolicyInvalid, ApplicationPackageCleanupPolicyManual} 49} 50 51// ApplicationResourceUpgradeState enumerates the values for application resource upgrade state. 52type ApplicationResourceUpgradeState string 53 54const ( 55 // ApplicationResourceUpgradeStateCompletedRollback The upgrade has finished rolling back. The value is 7. 56 ApplicationResourceUpgradeStateCompletedRollback ApplicationResourceUpgradeState = "CompletedRollback" 57 // ApplicationResourceUpgradeStateCompletedRollforward The upgrade has finished rolling forward. The value 58 // is 4. 59 ApplicationResourceUpgradeStateCompletedRollforward ApplicationResourceUpgradeState = "CompletedRollforward" 60 // ApplicationResourceUpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The 61 // value is 8. 62 ApplicationResourceUpgradeStateFailed ApplicationResourceUpgradeState = "Failed" 63 // ApplicationResourceUpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric 64 // enumerations have the invalid type. The value is 0. 65 ApplicationResourceUpgradeStateInvalid ApplicationResourceUpgradeState = "Invalid" 66 // ApplicationResourceUpgradeStateProvisioningTarget The upgrade is in the progress of provisioning target 67 // application type version. The value is 1. 68 ApplicationResourceUpgradeStateProvisioningTarget ApplicationResourceUpgradeState = "ProvisioningTarget" 69 // ApplicationResourceUpgradeStateRollingBack The upgrade is rolling back to the previous version but is 70 // not complete yet. The value is 5. 71 ApplicationResourceUpgradeStateRollingBack ApplicationResourceUpgradeState = "RollingBack" 72 // ApplicationResourceUpgradeStateRollingForward The upgrade is rolling forward to the target version but 73 // is not complete yet. The value is 2. 74 ApplicationResourceUpgradeStateRollingForward ApplicationResourceUpgradeState = "RollingForward" 75 // ApplicationResourceUpgradeStateUnprovisioningCurrent The upgrade is in the progress of unprovisioning 76 // current application type version and rolling forward to the target version is completed. The value is 3. 77 ApplicationResourceUpgradeStateUnprovisioningCurrent ApplicationResourceUpgradeState = "UnprovisioningCurrent" 78 // ApplicationResourceUpgradeStateUnprovisioningTarget The upgrade is in the progress of unprovisioning 79 // target application type version and rolling back to the current version is completed. The value is 6. 80 ApplicationResourceUpgradeStateUnprovisioningTarget ApplicationResourceUpgradeState = "UnprovisioningTarget" 81) 82 83// PossibleApplicationResourceUpgradeStateValues returns an array of possible values for the ApplicationResourceUpgradeState const type. 84func PossibleApplicationResourceUpgradeStateValues() []ApplicationResourceUpgradeState { 85 return []ApplicationResourceUpgradeState{ApplicationResourceUpgradeStateCompletedRollback, ApplicationResourceUpgradeStateCompletedRollforward, ApplicationResourceUpgradeStateFailed, ApplicationResourceUpgradeStateInvalid, ApplicationResourceUpgradeStateProvisioningTarget, ApplicationResourceUpgradeStateRollingBack, ApplicationResourceUpgradeStateRollingForward, ApplicationResourceUpgradeStateUnprovisioningCurrent, ApplicationResourceUpgradeStateUnprovisioningTarget} 86} 87 88// ApplicationScopedVolumeKind enumerates the values for application scoped volume kind. 89type ApplicationScopedVolumeKind string 90 91const ( 92 // ServiceFabricVolumeDisk Provides Service Fabric High Availability Volume Disk 93 ServiceFabricVolumeDisk ApplicationScopedVolumeKind = "ServiceFabricVolumeDisk" 94) 95 96// PossibleApplicationScopedVolumeKindValues returns an array of possible values for the ApplicationScopedVolumeKind const type. 97func PossibleApplicationScopedVolumeKindValues() []ApplicationScopedVolumeKind { 98 return []ApplicationScopedVolumeKind{ServiceFabricVolumeDisk} 99} 100 101// ApplicationStatus enumerates the values for application status. 102type ApplicationStatus string 103 104const ( 105 // ApplicationStatusCreating Indicates the application status is creating. The value is 3. 106 ApplicationStatusCreating ApplicationStatus = "Creating" 107 // ApplicationStatusDeleting Indicates the application status is deleting. The value is 4. 108 ApplicationStatusDeleting ApplicationStatus = "Deleting" 109 // ApplicationStatusFailed Indicates the creation or deletion of application was terminated due to 110 // persistent failures. Another create/delete request can be accepted to resume a failed application. The 111 // value is 5. 112 ApplicationStatusFailed ApplicationStatus = "Failed" 113 // ApplicationStatusInvalid Indicates the application status is invalid. All Service Fabric enumerations 114 // have the invalid type. The value is zero. 115 ApplicationStatusInvalid ApplicationStatus = "Invalid" 116 // ApplicationStatusReady Indicates the application status is ready. The value is 1. 117 ApplicationStatusReady ApplicationStatus = "Ready" 118 // ApplicationStatusUpgrading Indicates the application status is upgrading. The value is 2. 119 ApplicationStatusUpgrading ApplicationStatus = "Upgrading" 120) 121 122// PossibleApplicationStatusValues returns an array of possible values for the ApplicationStatus const type. 123func PossibleApplicationStatusValues() []ApplicationStatus { 124 return []ApplicationStatus{ApplicationStatusCreating, ApplicationStatusDeleting, ApplicationStatusFailed, ApplicationStatusInvalid, ApplicationStatusReady, ApplicationStatusUpgrading} 125} 126 127// ApplicationTypeDefinitionKind enumerates the values for application type definition kind. 128type ApplicationTypeDefinitionKind string 129 130const ( 131 // ApplicationTypeDefinitionKindCompose Indicates the application type is defined and created implicitly as 132 // part of a compose deployment. The value is 2. 133 ApplicationTypeDefinitionKindCompose ApplicationTypeDefinitionKind = "Compose" 134 // ApplicationTypeDefinitionKindInvalid Indicates the application type definition kind is invalid. All 135 // Service Fabric enumerations have the invalid type. The value is 0. 136 ApplicationTypeDefinitionKindInvalid ApplicationTypeDefinitionKind = "Invalid" 137 // ApplicationTypeDefinitionKindServiceFabricApplicationPackage Indicates the application type is defined 138 // and created by a Service Fabric application package provided by the user. The value is 1. 139 ApplicationTypeDefinitionKindServiceFabricApplicationPackage ApplicationTypeDefinitionKind = "ServiceFabricApplicationPackage" 140) 141 142// PossibleApplicationTypeDefinitionKindValues returns an array of possible values for the ApplicationTypeDefinitionKind const type. 143func PossibleApplicationTypeDefinitionKindValues() []ApplicationTypeDefinitionKind { 144 return []ApplicationTypeDefinitionKind{ApplicationTypeDefinitionKindCompose, ApplicationTypeDefinitionKindInvalid, ApplicationTypeDefinitionKindServiceFabricApplicationPackage} 145} 146 147// ApplicationTypeStatus enumerates the values for application type status. 148type ApplicationTypeStatus string 149 150const ( 151 // ApplicationTypeStatusAvailable Indicates that the application type is fully provisioned and is available 152 // for use. An application of this type and version can be created. The value is 2. 153 ApplicationTypeStatusAvailable ApplicationTypeStatus = "Available" 154 // ApplicationTypeStatusFailed Indicates that the application type provisioning failed and it is 155 // unavailable for use. The failure details can be obtained from the application type information query. 156 // The failed application type information remains in the cluster until it is unprovisioned or 157 // reprovisioned successfully. The value is 4. 158 ApplicationTypeStatusFailed ApplicationTypeStatus = "Failed" 159 // ApplicationTypeStatusInvalid Indicates the application type status is invalid. All Service Fabric 160 // enumerations have the invalid type. The value is zero. 161 ApplicationTypeStatusInvalid ApplicationTypeStatus = "Invalid" 162 // ApplicationTypeStatusProvisioning Indicates that the application type is being provisioned in the 163 // cluster. The value is 1. 164 ApplicationTypeStatusProvisioning ApplicationTypeStatus = "Provisioning" 165 // ApplicationTypeStatusUnprovisioning Indicates that the application type is in process of being 166 // unprovisioned from the cluster. The value is 3. 167 ApplicationTypeStatusUnprovisioning ApplicationTypeStatus = "Unprovisioning" 168) 169 170// PossibleApplicationTypeStatusValues returns an array of possible values for the ApplicationTypeStatus const type. 171func PossibleApplicationTypeStatusValues() []ApplicationTypeStatus { 172 return []ApplicationTypeStatus{ApplicationTypeStatusAvailable, ApplicationTypeStatusFailed, ApplicationTypeStatusInvalid, ApplicationTypeStatusProvisioning, ApplicationTypeStatusUnprovisioning} 173} 174 175// AutoScalingMechanismKind enumerates the values for auto scaling mechanism kind. 176type AutoScalingMechanismKind string 177 178const ( 179 // AddRemoveReplica Indicates that scaling should be performed by adding or removing replicas. 180 AddRemoveReplica AutoScalingMechanismKind = "AddRemoveReplica" 181) 182 183// PossibleAutoScalingMechanismKindValues returns an array of possible values for the AutoScalingMechanismKind const type. 184func PossibleAutoScalingMechanismKindValues() []AutoScalingMechanismKind { 185 return []AutoScalingMechanismKind{AddRemoveReplica} 186} 187 188// AutoScalingMetricKind enumerates the values for auto scaling metric kind. 189type AutoScalingMetricKind string 190 191const ( 192 // Resource Indicates that the metric is one of resources, like cpu or memory. 193 Resource AutoScalingMetricKind = "Resource" 194) 195 196// PossibleAutoScalingMetricKindValues returns an array of possible values for the AutoScalingMetricKind const type. 197func PossibleAutoScalingMetricKindValues() []AutoScalingMetricKind { 198 return []AutoScalingMetricKind{Resource} 199} 200 201// AutoScalingResourceMetricName enumerates the values for auto scaling resource metric name. 202type AutoScalingResourceMetricName string 203 204const ( 205 // CPU Indicates that the resource is CPU cores. 206 CPU AutoScalingResourceMetricName = "cpu" 207 // MemoryInGB Indicates that the resource is memory in GB. 208 MemoryInGB AutoScalingResourceMetricName = "memoryInGB" 209) 210 211// PossibleAutoScalingResourceMetricNameValues returns an array of possible values for the AutoScalingResourceMetricName const type. 212func PossibleAutoScalingResourceMetricNameValues() []AutoScalingResourceMetricName { 213 return []AutoScalingResourceMetricName{CPU, MemoryInGB} 214} 215 216// AutoScalingTriggerKind enumerates the values for auto scaling trigger kind. 217type AutoScalingTriggerKind string 218 219const ( 220 // AverageLoad Indicates that scaling should be performed based on average load of all replicas in the 221 // service. 222 AverageLoad AutoScalingTriggerKind = "AverageLoad" 223) 224 225// PossibleAutoScalingTriggerKindValues returns an array of possible values for the AutoScalingTriggerKind const type. 226func PossibleAutoScalingTriggerKindValues() []AutoScalingTriggerKind { 227 return []AutoScalingTriggerKind{AverageLoad} 228} 229 230// BackupEntityKind enumerates the values for backup entity kind. 231type BackupEntityKind string 232 233const ( 234 // BackupEntityKindApplication Indicates the entity is a Service Fabric application. 235 BackupEntityKindApplication BackupEntityKind = "Application" 236 // BackupEntityKindInvalid Indicates an invalid entity kind. All Service Fabric enumerations have the 237 // invalid type. 238 BackupEntityKindInvalid BackupEntityKind = "Invalid" 239 // BackupEntityKindPartition Indicates the entity is a Service Fabric partition. 240 BackupEntityKindPartition BackupEntityKind = "Partition" 241 // BackupEntityKindService Indicates the entity is a Service Fabric service. 242 BackupEntityKindService BackupEntityKind = "Service" 243) 244 245// PossibleBackupEntityKindValues returns an array of possible values for the BackupEntityKind const type. 246func PossibleBackupEntityKindValues() []BackupEntityKind { 247 return []BackupEntityKind{BackupEntityKindApplication, BackupEntityKindInvalid, BackupEntityKindPartition, BackupEntityKindService} 248} 249 250// BackupPolicyScope enumerates the values for backup policy scope. 251type BackupPolicyScope string 252 253const ( 254 // BackupPolicyScopeApplication Indicates the backup policy is applied at application level. All services 255 // and partitions of the application inherit this policy unless explicitly overridden at service or 256 // partition level. 257 BackupPolicyScopeApplication BackupPolicyScope = "Application" 258 // BackupPolicyScopeInvalid Indicates an invalid backup policy scope type. All Service Fabric enumerations 259 // have the invalid type. 260 BackupPolicyScopeInvalid BackupPolicyScope = "Invalid" 261 // BackupPolicyScopePartition Indicates the backup policy is applied at partition level. Hence overriding 262 // any policy which may have applied at partition's service or application level. 263 BackupPolicyScopePartition BackupPolicyScope = "Partition" 264 // BackupPolicyScopeService Indicates the backup policy is applied at service level. All partitions of the 265 // service inherit this policy unless explicitly overridden at partition level. 266 BackupPolicyScopeService BackupPolicyScope = "Service" 267) 268 269// PossibleBackupPolicyScopeValues returns an array of possible values for the BackupPolicyScope const type. 270func PossibleBackupPolicyScopeValues() []BackupPolicyScope { 271 return []BackupPolicyScope{BackupPolicyScopeApplication, BackupPolicyScopeInvalid, BackupPolicyScopePartition, BackupPolicyScopeService} 272} 273 274// BackupScheduleFrequencyType enumerates the values for backup schedule frequency type. 275type BackupScheduleFrequencyType string 276 277const ( 278 // BackupScheduleFrequencyTypeDaily Indicates that the time based backup schedule is repeated at a daily 279 // frequency. 280 BackupScheduleFrequencyTypeDaily BackupScheduleFrequencyType = "Daily" 281 // BackupScheduleFrequencyTypeInvalid Indicates an invalid backup schedule frequency type. All Service 282 // Fabric enumerations have the invalid type. 283 BackupScheduleFrequencyTypeInvalid BackupScheduleFrequencyType = "Invalid" 284 // BackupScheduleFrequencyTypeWeekly Indicates that the time based backup schedule is repeated at a weekly 285 // frequency. 286 BackupScheduleFrequencyTypeWeekly BackupScheduleFrequencyType = "Weekly" 287) 288 289// PossibleBackupScheduleFrequencyTypeValues returns an array of possible values for the BackupScheduleFrequencyType const type. 290func PossibleBackupScheduleFrequencyTypeValues() []BackupScheduleFrequencyType { 291 return []BackupScheduleFrequencyType{BackupScheduleFrequencyTypeDaily, BackupScheduleFrequencyTypeInvalid, BackupScheduleFrequencyTypeWeekly} 292} 293 294// BackupScheduleKind enumerates the values for backup schedule kind. 295type BackupScheduleKind string 296 297const ( 298 // BackupScheduleKindFrequencyBased Indicates a frequency-based backup schedule. 299 BackupScheduleKindFrequencyBased BackupScheduleKind = "FrequencyBased" 300 // BackupScheduleKindInvalid Indicates an invalid backup schedule kind. All Service Fabric enumerations 301 // have the invalid type. 302 BackupScheduleKindInvalid BackupScheduleKind = "Invalid" 303 // BackupScheduleKindTimeBased Indicates a time-based backup schedule. 304 BackupScheduleKindTimeBased BackupScheduleKind = "TimeBased" 305) 306 307// PossibleBackupScheduleKindValues returns an array of possible values for the BackupScheduleKind const type. 308func PossibleBackupScheduleKindValues() []BackupScheduleKind { 309 return []BackupScheduleKind{BackupScheduleKindFrequencyBased, BackupScheduleKindInvalid, BackupScheduleKindTimeBased} 310} 311 312// BackupState enumerates the values for backup state. 313type BackupState string 314 315const ( 316 // BackupStateAccepted Operation has been validated and accepted. Backup is yet to be triggered. 317 BackupStateAccepted BackupState = "Accepted" 318 // BackupStateBackupInProgress Backup operation has been triggered and is under process. 319 BackupStateBackupInProgress BackupState = "BackupInProgress" 320 // BackupStateFailure Operation completed with failure. 321 BackupStateFailure BackupState = "Failure" 322 // BackupStateInvalid Indicates an invalid backup state. All Service Fabric enumerations have the invalid 323 // type. 324 BackupStateInvalid BackupState = "Invalid" 325 // BackupStateSuccess Operation completed with success. 326 BackupStateSuccess BackupState = "Success" 327 // BackupStateTimeout Operation timed out. 328 BackupStateTimeout BackupState = "Timeout" 329) 330 331// PossibleBackupStateValues returns an array of possible values for the BackupState const type. 332func PossibleBackupStateValues() []BackupState { 333 return []BackupState{BackupStateAccepted, BackupStateBackupInProgress, BackupStateFailure, BackupStateInvalid, BackupStateSuccess, BackupStateTimeout} 334} 335 336// BackupStorageKind enumerates the values for backup storage kind. 337type BackupStorageKind string 338 339const ( 340 // BackupStorageKindAzureBlobStore Indicates Azure blob store to be used as backup storage. 341 BackupStorageKindAzureBlobStore BackupStorageKind = "AzureBlobStore" 342 // BackupStorageKindDsmsAzureBlobStore Indicates Dsms Azure blob store to be used as backup storage. 343 BackupStorageKindDsmsAzureBlobStore BackupStorageKind = "DsmsAzureBlobStore" 344 // BackupStorageKindFileShare Indicates file/ SMB share to be used as backup storage. 345 BackupStorageKindFileShare BackupStorageKind = "FileShare" 346 // BackupStorageKindInvalid Indicates an invalid backup storage kind. All Service Fabric enumerations have 347 // the invalid type. 348 BackupStorageKindInvalid BackupStorageKind = "Invalid" 349) 350 351// PossibleBackupStorageKindValues returns an array of possible values for the BackupStorageKind const type. 352func PossibleBackupStorageKindValues() []BackupStorageKind { 353 return []BackupStorageKind{BackupStorageKindAzureBlobStore, BackupStorageKindDsmsAzureBlobStore, BackupStorageKindFileShare, BackupStorageKindInvalid} 354} 355 356// BackupSuspensionScope enumerates the values for backup suspension scope. 357type BackupSuspensionScope string 358 359const ( 360 // BackupSuspensionScopeApplication Indicates the backup suspension is applied at application level. All 361 // services and partitions of the application are hence suspended for backup. 362 BackupSuspensionScopeApplication BackupSuspensionScope = "Application" 363 // BackupSuspensionScopeInvalid Indicates an invalid backup suspension scope type also indicating entity is 364 // not suspended. All Service Fabric enumerations have the invalid type. 365 BackupSuspensionScopeInvalid BackupSuspensionScope = "Invalid" 366 // BackupSuspensionScopePartition Indicates the backup suspension is applied at partition level. 367 BackupSuspensionScopePartition BackupSuspensionScope = "Partition" 368 // BackupSuspensionScopeService Indicates the backup suspension is applied at service level. All partitions 369 // of the service are hence suspended for backup. 370 BackupSuspensionScopeService BackupSuspensionScope = "Service" 371) 372 373// PossibleBackupSuspensionScopeValues returns an array of possible values for the BackupSuspensionScope const type. 374func PossibleBackupSuspensionScopeValues() []BackupSuspensionScope { 375 return []BackupSuspensionScope{BackupSuspensionScopeApplication, BackupSuspensionScopeInvalid, BackupSuspensionScopePartition, BackupSuspensionScopeService} 376} 377 378// BackupType enumerates the values for backup type. 379type BackupType string 380 381const ( 382 // BackupTypeFull Indicates a full backup. 383 BackupTypeFull BackupType = "Full" 384 // BackupTypeIncremental Indicates an incremental backup. A backup chain is comprised of a full backup 385 // followed by 0 or more incremental backups. 386 BackupTypeIncremental BackupType = "Incremental" 387 // BackupTypeInvalid Indicates an invalid backup type. All Service Fabric enumerations have the invalid 388 // type. 389 BackupTypeInvalid BackupType = "Invalid" 390) 391 392// PossibleBackupTypeValues returns an array of possible values for the BackupType const type. 393func PossibleBackupTypeValues() []BackupType { 394 return []BackupType{BackupTypeFull, BackupTypeIncremental, BackupTypeInvalid} 395} 396 397// ChaosEventKind enumerates the values for chaos event kind. 398type ChaosEventKind string 399 400const ( 401 // ChaosEventKindExecutingFaults Indicates a Chaos event that gets generated when Chaos has decided on the 402 // faults for an iteration. This Chaos event contains the details of the faults as a list of strings. 403 ChaosEventKindExecutingFaults ChaosEventKind = "ExecutingFaults" 404 // ChaosEventKindInvalid Indicates an invalid Chaos event kind. All Service Fabric enumerations have the 405 // invalid type. 406 ChaosEventKindInvalid ChaosEventKind = "Invalid" 407 // ChaosEventKindStarted Indicates a Chaos event that gets generated when Chaos is started. 408 ChaosEventKindStarted ChaosEventKind = "Started" 409 // ChaosEventKindStopped Indicates a Chaos event that gets generated when Chaos stops because either the 410 // user issued a stop or the time to run was up. 411 ChaosEventKindStopped ChaosEventKind = "Stopped" 412 // ChaosEventKindTestError Indicates a Chaos event that gets generated when an unexpected event has 413 // occurred in the Chaos engine, for example, due to the cluster snapshot being inconsistent, while 414 // faulting a faultable entity Chaos found that the entity was already faulted. 415 ChaosEventKindTestError ChaosEventKind = "TestError" 416 // ChaosEventKindValidationFailed Indicates a Chaos event that gets generated when the cluster entities do 417 // not become stable and healthy within ChaosParameters.MaxClusterStabilizationTimeoutInSeconds. 418 ChaosEventKindValidationFailed ChaosEventKind = "ValidationFailed" 419 // ChaosEventKindWaiting Indicates a Chaos event that gets generated when Chaos is waiting for the cluster 420 // to become ready for faulting, for example, Chaos may be waiting for the on-going upgrade to finish. 421 ChaosEventKindWaiting ChaosEventKind = "Waiting" 422) 423 424// PossibleChaosEventKindValues returns an array of possible values for the ChaosEventKind const type. 425func PossibleChaosEventKindValues() []ChaosEventKind { 426 return []ChaosEventKind{ChaosEventKindExecutingFaults, ChaosEventKindInvalid, ChaosEventKindStarted, ChaosEventKindStopped, ChaosEventKindTestError, ChaosEventKindValidationFailed, ChaosEventKindWaiting} 427} 428 429// ChaosScheduleStatus enumerates the values for chaos schedule status. 430type ChaosScheduleStatus string 431 432const ( 433 // ChaosScheduleStatusActive Indicates that the schedule is active and is being used to schedule runs of 434 // Chaos. The value is two. 435 ChaosScheduleStatusActive ChaosScheduleStatus = "Active" 436 // ChaosScheduleStatusExpired Indicates that the schedule is expired and will no longer be used to schedule 437 // runs of Chaos. The value is three. 438 ChaosScheduleStatusExpired ChaosScheduleStatus = "Expired" 439 // ChaosScheduleStatusInvalid Indicates an invalid Chaos Schedule status. All Service Fabric enumerations 440 // have the invalid type. The value is zero. 441 ChaosScheduleStatusInvalid ChaosScheduleStatus = "Invalid" 442 // ChaosScheduleStatusPending Indicates that the schedule is pending and is not yet being used to schedule 443 // runs of Chaos but will be used when the start time is passed. The value is four. 444 ChaosScheduleStatusPending ChaosScheduleStatus = "Pending" 445 // ChaosScheduleStatusStopped Indicates that the schedule is stopped and not being used to schedule runs of 446 // chaos. The value is one. 447 ChaosScheduleStatusStopped ChaosScheduleStatus = "Stopped" 448) 449 450// PossibleChaosScheduleStatusValues returns an array of possible values for the ChaosScheduleStatus const type. 451func PossibleChaosScheduleStatusValues() []ChaosScheduleStatus { 452 return []ChaosScheduleStatus{ChaosScheduleStatusActive, ChaosScheduleStatusExpired, ChaosScheduleStatusInvalid, ChaosScheduleStatusPending, ChaosScheduleStatusStopped} 453} 454 455// ChaosStatus enumerates the values for chaos status. 456type ChaosStatus string 457 458const ( 459 // ChaosStatusInvalid Indicates an invalid Chaos status. All Service Fabric enumerations have the invalid 460 // type. The value is zero. 461 ChaosStatusInvalid ChaosStatus = "Invalid" 462 // ChaosStatusRunning Indicates that Chaos is not stopped. The value is one. 463 ChaosStatusRunning ChaosStatus = "Running" 464 // ChaosStatusStopped Indicates that Chaos is not scheduling further faults. The value is two. 465 ChaosStatusStopped ChaosStatus = "Stopped" 466) 467 468// PossibleChaosStatusValues returns an array of possible values for the ChaosStatus const type. 469func PossibleChaosStatusValues() []ChaosStatus { 470 return []ChaosStatus{ChaosStatusInvalid, ChaosStatusRunning, ChaosStatusStopped} 471} 472 473// ComposeDeploymentStatus enumerates the values for compose deployment status. 474type ComposeDeploymentStatus string 475 476const ( 477 // ComposeDeploymentStatusCreating Indicates that the compose deployment is being created in background. 478 // The value is 2. 479 ComposeDeploymentStatusCreating ComposeDeploymentStatus = "Creating" 480 // ComposeDeploymentStatusDeleting Indicates that the compose deployment is being deleted in background. 481 // The value is 5. 482 ComposeDeploymentStatusDeleting ComposeDeploymentStatus = "Deleting" 483 // ComposeDeploymentStatusFailed Indicates that the compose deployment was terminated due to persistent 484 // failures. The value is 6. 485 ComposeDeploymentStatusFailed ComposeDeploymentStatus = "Failed" 486 // ComposeDeploymentStatusInvalid Indicates that the compose deployment status is invalid. The value is 487 // zero. 488 ComposeDeploymentStatusInvalid ComposeDeploymentStatus = "Invalid" 489 // ComposeDeploymentStatusProvisioning Indicates that the compose deployment is being provisioned in 490 // background. The value is 1. 491 ComposeDeploymentStatusProvisioning ComposeDeploymentStatus = "Provisioning" 492 // ComposeDeploymentStatusReady Indicates that the compose deployment has been successfully created or 493 // upgraded. The value is 3. 494 ComposeDeploymentStatusReady ComposeDeploymentStatus = "Ready" 495 // ComposeDeploymentStatusUnprovisioning Indicates that the compose deployment is being unprovisioned in 496 // background. The value is 4. 497 ComposeDeploymentStatusUnprovisioning ComposeDeploymentStatus = "Unprovisioning" 498 // ComposeDeploymentStatusUpgrading Indicates that the compose deployment is being upgraded in the 499 // background. The value is 7. 500 ComposeDeploymentStatusUpgrading ComposeDeploymentStatus = "Upgrading" 501) 502 503// PossibleComposeDeploymentStatusValues returns an array of possible values for the ComposeDeploymentStatus const type. 504func PossibleComposeDeploymentStatusValues() []ComposeDeploymentStatus { 505 return []ComposeDeploymentStatus{ComposeDeploymentStatusCreating, ComposeDeploymentStatusDeleting, ComposeDeploymentStatusFailed, ComposeDeploymentStatusInvalid, ComposeDeploymentStatusProvisioning, ComposeDeploymentStatusReady, ComposeDeploymentStatusUnprovisioning, ComposeDeploymentStatusUpgrading} 506} 507 508// ComposeDeploymentUpgradeState enumerates the values for compose deployment upgrade state. 509type ComposeDeploymentUpgradeState string 510 511const ( 512 // ComposeDeploymentUpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The 513 // value is 9. 514 ComposeDeploymentUpgradeStateFailed ComposeDeploymentUpgradeState = "Failed" 515 // ComposeDeploymentUpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric 516 // enumerations have the invalid type. The value is zero. 517 ComposeDeploymentUpgradeStateInvalid ComposeDeploymentUpgradeState = "Invalid" 518 // ComposeDeploymentUpgradeStateProvisioningTarget The upgrade is in the progress of provisioning target 519 // application type version. The value is 1. 520 ComposeDeploymentUpgradeStateProvisioningTarget ComposeDeploymentUpgradeState = "ProvisioningTarget" 521 // ComposeDeploymentUpgradeStateRollingBackCompleted The upgrade has finished rolling back. The value is 8. 522 ComposeDeploymentUpgradeStateRollingBackCompleted ComposeDeploymentUpgradeState = "RollingBackCompleted" 523 // ComposeDeploymentUpgradeStateRollingBackInProgress The upgrade is rolling back to the previous version 524 // but is not complete yet. The value is 6. 525 ComposeDeploymentUpgradeStateRollingBackInProgress ComposeDeploymentUpgradeState = "RollingBackInProgress" 526 // ComposeDeploymentUpgradeStateRollingForwardCompleted The upgrade has finished rolling forward. The value 527 // is 5. 528 ComposeDeploymentUpgradeStateRollingForwardCompleted ComposeDeploymentUpgradeState = "RollingForwardCompleted" 529 // ComposeDeploymentUpgradeStateRollingForwardInProgress The upgrade is rolling forward to the target 530 // version but is not complete yet. The value is 2. 531 ComposeDeploymentUpgradeStateRollingForwardInProgress ComposeDeploymentUpgradeState = "RollingForwardInProgress" 532 // ComposeDeploymentUpgradeStateRollingForwardPending The current upgrade domain has finished upgrading. 533 // The overall upgrade is waiting for an explicit move next request in UnmonitoredManual mode or performing 534 // health checks in Monitored mode. The value is 3 535 ComposeDeploymentUpgradeStateRollingForwardPending ComposeDeploymentUpgradeState = "RollingForwardPending" 536 // ComposeDeploymentUpgradeStateUnprovisioningCurrent The upgrade is in the progress of unprovisioning 537 // current application type version and rolling forward to the target version is completed. The value is 4. 538 ComposeDeploymentUpgradeStateUnprovisioningCurrent ComposeDeploymentUpgradeState = "UnprovisioningCurrent" 539 // ComposeDeploymentUpgradeStateUnprovisioningTarget The upgrade is in the progress of unprovisioning 540 // target application type version and rolling back to the current version is completed. The value is 7. 541 ComposeDeploymentUpgradeStateUnprovisioningTarget ComposeDeploymentUpgradeState = "UnprovisioningTarget" 542) 543 544// PossibleComposeDeploymentUpgradeStateValues returns an array of possible values for the ComposeDeploymentUpgradeState const type. 545func PossibleComposeDeploymentUpgradeStateValues() []ComposeDeploymentUpgradeState { 546 return []ComposeDeploymentUpgradeState{ComposeDeploymentUpgradeStateFailed, ComposeDeploymentUpgradeStateInvalid, ComposeDeploymentUpgradeStateProvisioningTarget, ComposeDeploymentUpgradeStateRollingBackCompleted, ComposeDeploymentUpgradeStateRollingBackInProgress, ComposeDeploymentUpgradeStateRollingForwardCompleted, ComposeDeploymentUpgradeStateRollingForwardInProgress, ComposeDeploymentUpgradeStateRollingForwardPending, ComposeDeploymentUpgradeStateUnprovisioningCurrent, ComposeDeploymentUpgradeStateUnprovisioningTarget} 547} 548 549// CreateFabricDump enumerates the values for create fabric dump. 550type CreateFabricDump string 551 552const ( 553 // False ... 554 False CreateFabricDump = "False" 555 // True ... 556 True CreateFabricDump = "True" 557) 558 559// PossibleCreateFabricDumpValues returns an array of possible values for the CreateFabricDump const type. 560func PossibleCreateFabricDumpValues() []CreateFabricDump { 561 return []CreateFabricDump{False, True} 562} 563 564// DataLossMode enumerates the values for data loss mode. 565type DataLossMode string 566 567const ( 568 // DataLossModeFullDataLoss FullDataLoss option will drop all the replicas which means that all the data 569 // will be lost. 570 DataLossModeFullDataLoss DataLossMode = "FullDataLoss" 571 // DataLossModeInvalid Reserved. Do not pass into API. 572 DataLossModeInvalid DataLossMode = "Invalid" 573 // DataLossModePartialDataLoss PartialDataLoss option will cause a quorum of replicas to go down, 574 // triggering an OnDataLoss event in the system for the given partition. 575 DataLossModePartialDataLoss DataLossMode = "PartialDataLoss" 576) 577 578// PossibleDataLossModeValues returns an array of possible values for the DataLossMode const type. 579func PossibleDataLossModeValues() []DataLossMode { 580 return []DataLossMode{DataLossModeFullDataLoss, DataLossModeInvalid, DataLossModePartialDataLoss} 581} 582 583// DayOfWeek enumerates the values for day of week. 584type DayOfWeek string 585 586const ( 587 // Friday Indicates the Day referred is Friday. 588 Friday DayOfWeek = "Friday" 589 // Monday Indicates the Day referred is Monday. 590 Monday DayOfWeek = "Monday" 591 // Saturday Indicates the Day referred is Saturday. 592 Saturday DayOfWeek = "Saturday" 593 // Sunday Indicates the Day referred is Sunday. 594 Sunday DayOfWeek = "Sunday" 595 // Thursday Indicates the Day referred is Thursday. 596 Thursday DayOfWeek = "Thursday" 597 // Tuesday Indicates the Day referred is Tuesday. 598 Tuesday DayOfWeek = "Tuesday" 599 // Wednesday Indicates the Day referred is Wednesday. 600 Wednesday DayOfWeek = "Wednesday" 601) 602 603// PossibleDayOfWeekValues returns an array of possible values for the DayOfWeek const type. 604func PossibleDayOfWeekValues() []DayOfWeek { 605 return []DayOfWeek{Friday, Monday, Saturday, Sunday, Thursday, Tuesday, Wednesday} 606} 607 608// DeactivationIntent enumerates the values for deactivation intent. 609type DeactivationIntent string 610 611const ( 612 // Pause Indicates that the node should be paused. The value is 1. 613 Pause DeactivationIntent = "Pause" 614 // RemoveData Indicates the intent is for the node to remove data. The value is 3. 615 RemoveData DeactivationIntent = "RemoveData" 616 // Restart Indicates that the intent is for the node to be restarted after a short period of time. The 617 // value is 2. 618 Restart DeactivationIntent = "Restart" 619) 620 621// PossibleDeactivationIntentValues returns an array of possible values for the DeactivationIntent const type. 622func PossibleDeactivationIntentValues() []DeactivationIntent { 623 return []DeactivationIntent{Pause, RemoveData, Restart} 624} 625 626// DeployedApplicationStatus enumerates the values for deployed application status. 627type DeployedApplicationStatus string 628 629const ( 630 // DeployedApplicationStatusActivating Indicates that the package is activating. The value is 2. 631 DeployedApplicationStatusActivating DeployedApplicationStatus = "Activating" 632 // DeployedApplicationStatusActive Indicates that the package is active. The value is 3. 633 DeployedApplicationStatusActive DeployedApplicationStatus = "Active" 634 // DeployedApplicationStatusDeactivating Indicates that the package is deactivating. The value is 5. 635 DeployedApplicationStatusDeactivating DeployedApplicationStatus = "Deactivating" 636 // DeployedApplicationStatusDownloading Indicates that the package is downloading from the ImageStore. The 637 // value is 1. 638 DeployedApplicationStatusDownloading DeployedApplicationStatus = "Downloading" 639 // DeployedApplicationStatusInvalid Indicates that deployment status is not valid. All Service Fabric 640 // enumerations have the invalid type. The value is zero. 641 DeployedApplicationStatusInvalid DeployedApplicationStatus = "Invalid" 642 // DeployedApplicationStatusUpgrading Indicates that the package is upgrading. The value is 4. 643 DeployedApplicationStatusUpgrading DeployedApplicationStatus = "Upgrading" 644) 645 646// PossibleDeployedApplicationStatusValues returns an array of possible values for the DeployedApplicationStatus const type. 647func PossibleDeployedApplicationStatusValues() []DeployedApplicationStatus { 648 return []DeployedApplicationStatus{DeployedApplicationStatusActivating, DeployedApplicationStatusActive, DeployedApplicationStatusDeactivating, DeployedApplicationStatusDownloading, DeployedApplicationStatusInvalid, DeployedApplicationStatusUpgrading} 649} 650 651// DeploymentStatus enumerates the values for deployment status. 652type DeploymentStatus string 653 654const ( 655 // DeploymentStatusActivating Indicates the application or service package is being activated. The value is 656 // 2. 657 DeploymentStatusActivating DeploymentStatus = "Activating" 658 // DeploymentStatusActive Indicates the application or service package is active the node. The value is 3. 659 DeploymentStatusActive DeploymentStatus = "Active" 660 // DeploymentStatusDeactivating Indicates the application or service package is being deactivated. The 661 // value is 5. 662 DeploymentStatusDeactivating DeploymentStatus = "Deactivating" 663 // DeploymentStatusDownloading Indicates the application or service package is being downloaded to the node 664 // from the ImageStore. The value is 1. 665 DeploymentStatusDownloading DeploymentStatus = "Downloading" 666 // DeploymentStatusFailed Indicates the application or service package has failed to run to completion. The 667 // value is 7. 668 DeploymentStatusFailed DeploymentStatus = "Failed" 669 // DeploymentStatusInvalid Indicates status of the application or service package is not known or invalid. 670 // The value is 0. 671 DeploymentStatusInvalid DeploymentStatus = "Invalid" 672 // DeploymentStatusRanToCompletion Indicates the application or service package has ran to completion 673 // successfully. The value is 6. 674 DeploymentStatusRanToCompletion DeploymentStatus = "RanToCompletion" 675 // DeploymentStatusUpgrading Indicates the application or service package is being upgraded. The value is 676 // 4. 677 DeploymentStatusUpgrading DeploymentStatus = "Upgrading" 678) 679 680// PossibleDeploymentStatusValues returns an array of possible values for the DeploymentStatus const type. 681func PossibleDeploymentStatusValues() []DeploymentStatus { 682 return []DeploymentStatus{DeploymentStatusActivating, DeploymentStatusActive, DeploymentStatusDeactivating, DeploymentStatusDownloading, DeploymentStatusFailed, DeploymentStatusInvalid, DeploymentStatusRanToCompletion, DeploymentStatusUpgrading} 683} 684 685// DiagnosticsSinkKind enumerates the values for diagnostics sink kind. 686type DiagnosticsSinkKind string 687 688const ( 689 // DiagnosticsSinkKindAzureInternalMonitoringPipeline Diagnostics settings for Geneva. 690 DiagnosticsSinkKindAzureInternalMonitoringPipeline DiagnosticsSinkKind = "AzureInternalMonitoringPipeline" 691 // DiagnosticsSinkKindInvalid Indicates an invalid sink kind. All Service Fabric enumerations have the 692 // invalid type. 693 DiagnosticsSinkKindInvalid DiagnosticsSinkKind = "Invalid" 694) 695 696// PossibleDiagnosticsSinkKindValues returns an array of possible values for the DiagnosticsSinkKind const type. 697func PossibleDiagnosticsSinkKindValues() []DiagnosticsSinkKind { 698 return []DiagnosticsSinkKind{DiagnosticsSinkKindAzureInternalMonitoringPipeline, DiagnosticsSinkKindInvalid} 699} 700 701// EntityKind enumerates the values for entity kind. 702type EntityKind string 703 704const ( 705 // EntityKindApplication Indicates the entity is a Service Fabric application. The value is 4. 706 EntityKindApplication EntityKind = "Application" 707 // EntityKindCluster Indicates the entity is a Service Fabric cluster. The value is 8. 708 EntityKindCluster EntityKind = "Cluster" 709 // EntityKindDeployedApplication Indicates the entity is a Service Fabric deployed application. The value 710 // is 6. 711 EntityKindDeployedApplication EntityKind = "DeployedApplication" 712 // EntityKindDeployedServicePackage Indicates the entity is a Service Fabric deployed service package. The 713 // value is 7. 714 EntityKindDeployedServicePackage EntityKind = "DeployedServicePackage" 715 // EntityKindInvalid Indicates an invalid entity kind. All Service Fabric enumerations have the invalid 716 // type. The value is zero. 717 EntityKindInvalid EntityKind = "Invalid" 718 // EntityKindNode Indicates the entity is a Service Fabric node. The value is 1. 719 EntityKindNode EntityKind = "Node" 720 // EntityKindPartition Indicates the entity is a Service Fabric partition. The value is 2. 721 EntityKindPartition EntityKind = "Partition" 722 // EntityKindReplica Indicates the entity is a Service Fabric replica. The value is 5. 723 EntityKindReplica EntityKind = "Replica" 724 // EntityKindService Indicates the entity is a Service Fabric service. The value is 3. 725 EntityKindService EntityKind = "Service" 726) 727 728// PossibleEntityKindValues returns an array of possible values for the EntityKind const type. 729func PossibleEntityKindValues() []EntityKind { 730 return []EntityKind{EntityKindApplication, EntityKindCluster, EntityKindDeployedApplication, EntityKindDeployedServicePackage, EntityKindInvalid, EntityKindNode, EntityKindPartition, EntityKindReplica, EntityKindService} 731} 732 733// EntityKindBasicBackupEntity enumerates the values for entity kind basic backup entity. 734type EntityKindBasicBackupEntity string 735 736const ( 737 // EntityKindApplication1 ... 738 EntityKindApplication1 EntityKindBasicBackupEntity = "Application" 739 // EntityKindBackupEntity ... 740 EntityKindBackupEntity EntityKindBasicBackupEntity = "BackupEntity" 741 // EntityKindPartition1 ... 742 EntityKindPartition1 EntityKindBasicBackupEntity = "Partition" 743 // EntityKindService1 ... 744 EntityKindService1 EntityKindBasicBackupEntity = "Service" 745) 746 747// PossibleEntityKindBasicBackupEntityValues returns an array of possible values for the EntityKindBasicBackupEntity const type. 748func PossibleEntityKindBasicBackupEntityValues() []EntityKindBasicBackupEntity { 749 return []EntityKindBasicBackupEntity{EntityKindApplication1, EntityKindBackupEntity, EntityKindPartition1, EntityKindService1} 750} 751 752// EntryPointStatus enumerates the values for entry point status. 753type EntryPointStatus string 754 755const ( 756 // EntryPointStatusInvalid Indicates status of entry point is not known or invalid. The value is 0. 757 EntryPointStatusInvalid EntryPointStatus = "Invalid" 758 // EntryPointStatusPending Indicates the entry point is scheduled to be started. The value is 1. 759 EntryPointStatusPending EntryPointStatus = "Pending" 760 // EntryPointStatusStarted Indicates the entry point was started successfully and is running. The value is 761 // 3. 762 EntryPointStatusStarted EntryPointStatus = "Started" 763 // EntryPointStatusStarting Indicates the entry point is being started. The value is 2. 764 EntryPointStatusStarting EntryPointStatus = "Starting" 765 // EntryPointStatusStopped Indicates the entry point is not running. The value is 5. 766 EntryPointStatusStopped EntryPointStatus = "Stopped" 767 // EntryPointStatusStopping Indicates the entry point is being stopped. The value is 4. 768 EntryPointStatusStopping EntryPointStatus = "Stopping" 769) 770 771// PossibleEntryPointStatusValues returns an array of possible values for the EntryPointStatus const type. 772func PossibleEntryPointStatusValues() []EntryPointStatus { 773 return []EntryPointStatus{EntryPointStatusInvalid, EntryPointStatusPending, EntryPointStatusStarted, EntryPointStatusStarting, EntryPointStatusStopped, EntryPointStatusStopping} 774} 775 776// EnvironmentVariableType enumerates the values for environment variable type. 777type EnvironmentVariableType string 778 779const ( 780 // ClearText The environment variable in clear text, will not be processed in any way and passed in as is 781 ClearText EnvironmentVariableType = "ClearText" 782 // KeyVaultReference The URI to a KeyVault secret version, will be resolved using the application's managed 783 // identity (this type is only valid if the app was assigned a managed identity) before getting passed in 784 KeyVaultReference EnvironmentVariableType = "KeyVaultReference" 785 // SecretValueReference The reference to a SecretValue resource, will be resolved before getting passed in 786 SecretValueReference EnvironmentVariableType = "SecretValueReference" 787) 788 789// PossibleEnvironmentVariableTypeValues returns an array of possible values for the EnvironmentVariableType const type. 790func PossibleEnvironmentVariableTypeValues() []EnvironmentVariableType { 791 return []EnvironmentVariableType{ClearText, KeyVaultReference, SecretValueReference} 792} 793 794// ExecutionPolicyType enumerates the values for execution policy type. 795type ExecutionPolicyType string 796 797const ( 798 // Default Indicates the default execution policy, always restart the service if an exit occurs. 799 Default ExecutionPolicyType = "Default" 800 // RunToCompletion Indicates that the service will perform its desired operation and complete successfully. 801 // If the service encounters failure, it will restarted based on restart policy specified. If the service 802 // completes its operation successfully, it will not be restarted again. 803 RunToCompletion ExecutionPolicyType = "RunToCompletion" 804) 805 806// PossibleExecutionPolicyTypeValues returns an array of possible values for the ExecutionPolicyType const type. 807func PossibleExecutionPolicyTypeValues() []ExecutionPolicyType { 808 return []ExecutionPolicyType{Default, RunToCompletion} 809} 810 811// FabricErrorCodes enumerates the values for fabric error codes. 812type FabricErrorCodes string 813 814const ( 815 // EABORT ... 816 EABORT FabricErrorCodes = "E_ABORT" 817 // EFAIL ... 818 EFAIL FabricErrorCodes = "E_FAIL" 819 // EINVALIDARG ... 820 EINVALIDARG FabricErrorCodes = "E_INVALIDARG" 821 // FABRICEAPPLICATIONALREADYEXISTS ... 822 FABRICEAPPLICATIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_APPLICATION_ALREADY_EXISTS" 823 // FABRICEAPPLICATIONALREADYINTARGETVERSION ... 824 FABRICEAPPLICATIONALREADYINTARGETVERSION FabricErrorCodes = "FABRIC_E_APPLICATION_ALREADY_IN_TARGET_VERSION" 825 // FABRICEAPPLICATIONNOTFOUND ... 826 FABRICEAPPLICATIONNOTFOUND FabricErrorCodes = "FABRIC_E_APPLICATION_NOT_FOUND" 827 // FABRICEAPPLICATIONNOTUPGRADING ... 828 FABRICEAPPLICATIONNOTUPGRADING FabricErrorCodes = "FABRIC_E_APPLICATION_NOT_UPGRADING" 829 // FABRICEAPPLICATIONTYPEALREADYEXISTS ... 830 FABRICEAPPLICATIONTYPEALREADYEXISTS FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_ALREADY_EXISTS" 831 // FABRICEAPPLICATIONTYPEINUSE ... 832 FABRICEAPPLICATIONTYPEINUSE FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_IN_USE" 833 // FABRICEAPPLICATIONTYPENOTFOUND ... 834 FABRICEAPPLICATIONTYPENOTFOUND FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_NOT_FOUND" 835 // FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS ... 836 FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS FabricErrorCodes = "FABRIC_E_APPLICATION_TYPE_PROVISION_IN_PROGRESS" 837 // FABRICEAPPLICATIONUPGRADEINPROGRESS ... 838 FABRICEAPPLICATIONUPGRADEINPROGRESS FabricErrorCodes = "FABRIC_E_APPLICATION_UPGRADE_IN_PROGRESS" 839 // FABRICEAPPLICATIONUPGRADEVALIDATIONERROR ... 840 FABRICEAPPLICATIONUPGRADEVALIDATIONERROR FabricErrorCodes = "FABRIC_E_APPLICATION_UPGRADE_VALIDATION_ERROR" 841 // FABRICEBACKUPINPROGRESS ... 842 FABRICEBACKUPINPROGRESS FabricErrorCodes = "FABRIC_E_BACKUP_IN_PROGRESS" 843 // FABRICEBACKUPISENABLED ... 844 FABRICEBACKUPISENABLED FabricErrorCodes = "FABRIC_E_BACKUP_IS_ENABLED" 845 // FABRICEBACKUPNOTENABLED ... 846 FABRICEBACKUPNOTENABLED FabricErrorCodes = "FABRIC_E_BACKUP_NOT_ENABLED" 847 // FABRICEBACKUPPOLICYALREADYEXISTING ... 848 FABRICEBACKUPPOLICYALREADYEXISTING FabricErrorCodes = "FABRIC_E_BACKUP_POLICY_ALREADY_EXISTING" 849 // FABRICEBACKUPPOLICYNOTEXISTING ... 850 FABRICEBACKUPPOLICYNOTEXISTING FabricErrorCodes = "FABRIC_E_BACKUP_POLICY_NOT_EXISTING" 851 // FABRICECOMMUNICATIONERROR ... 852 FABRICECOMMUNICATIONERROR FabricErrorCodes = "FABRIC_E_COMMUNICATION_ERROR" 853 // FABRICECONFIGURATIONPARAMETERNOTFOUND ... 854 FABRICECONFIGURATIONPARAMETERNOTFOUND FabricErrorCodes = "FABRIC_E_CONFIGURATION_PARAMETER_NOT_FOUND" 855 // FABRICECONFIGURATIONSECTIONNOTFOUND ... 856 FABRICECONFIGURATIONSECTIONNOTFOUND FabricErrorCodes = "FABRIC_E_CONFIGURATION_SECTION_NOT_FOUND" 857 // FABRICEDIRECTORYNOTFOUND ... 858 FABRICEDIRECTORYNOTFOUND FabricErrorCodes = "FABRIC_E_DIRECTORY_NOT_FOUND" 859 // FABRICEENUMERATIONCOMPLETED ... 860 FABRICEENUMERATIONCOMPLETED FabricErrorCodes = "FABRIC_E_ENUMERATION_COMPLETED" 861 // FABRICEFABRICALREADYINTARGETVERSION ... 862 FABRICEFABRICALREADYINTARGETVERSION FabricErrorCodes = "FABRIC_E_FABRIC_ALREADY_IN_TARGET_VERSION" 863 // FABRICEFABRICNOTUPGRADING ... 864 FABRICEFABRICNOTUPGRADING FabricErrorCodes = "FABRIC_E_FABRIC_NOT_UPGRADING" 865 // FABRICEFABRICUPGRADEINPROGRESS ... 866 FABRICEFABRICUPGRADEINPROGRESS FabricErrorCodes = "FABRIC_E_FABRIC_UPGRADE_IN_PROGRESS" 867 // FABRICEFABRICUPGRADEVALIDATIONERROR ... 868 FABRICEFABRICUPGRADEVALIDATIONERROR FabricErrorCodes = "FABRIC_E_FABRIC_UPGRADE_VALIDATION_ERROR" 869 // FABRICEFABRICVERSIONALREADYEXISTS ... 870 FABRICEFABRICVERSIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_ALREADY_EXISTS" 871 // FABRICEFABRICVERSIONINUSE ... 872 FABRICEFABRICVERSIONINUSE FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_IN_USE" 873 // FABRICEFABRICVERSIONNOTFOUND ... 874 FABRICEFABRICVERSIONNOTFOUND FabricErrorCodes = "FABRIC_E_FABRIC_VERSION_NOT_FOUND" 875 // FABRICEFAULTANALYSISSERVICENOTEXISTING ... 876 FABRICEFAULTANALYSISSERVICENOTEXISTING FabricErrorCodes = "FABRIC_E_FAULT_ANALYSIS_SERVICE_NOT_EXISTING" 877 // FABRICEFILENOTFOUND ... 878 FABRICEFILENOTFOUND FabricErrorCodes = "FABRIC_E_FILE_NOT_FOUND" 879 // FABRICEHEALTHENTITYNOTFOUND ... 880 FABRICEHEALTHENTITYNOTFOUND FabricErrorCodes = "FABRIC_E_HEALTH_ENTITY_NOT_FOUND" 881 // FABRICEHEALTHSTALEREPORT ... 882 FABRICEHEALTHSTALEREPORT FabricErrorCodes = "FABRIC_E_HEALTH_STALE_REPORT" 883 // FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR ... 884 FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR FabricErrorCodes = "FABRIC_E_IMAGEBUILDER_RESERVED_DIRECTORY_ERROR" 885 // FABRICEIMAGEBUILDERVALIDATIONERROR ... 886 FABRICEIMAGEBUILDERVALIDATIONERROR FabricErrorCodes = "FABRIC_E_IMAGEBUILDER_VALIDATION_ERROR" 887 // FABRICEINSTANCEIDMISMATCH ... 888 FABRICEINSTANCEIDMISMATCH FabricErrorCodes = "FABRIC_E_INSTANCE_ID_MISMATCH" 889 // FABRICEINVALIDADDRESS ... 890 FABRICEINVALIDADDRESS FabricErrorCodes = "FABRIC_E_INVALID_ADDRESS" 891 // FABRICEINVALIDATOMICGROUP ... 892 FABRICEINVALIDATOMICGROUP FabricErrorCodes = "FABRIC_E_INVALID_ATOMIC_GROUP" 893 // FABRICEINVALIDCONFIGURATION ... 894 FABRICEINVALIDCONFIGURATION FabricErrorCodes = "FABRIC_E_INVALID_CONFIGURATION" 895 // FABRICEINVALIDFORSTATELESSSERVICES ... 896 FABRICEINVALIDFORSTATELESSSERVICES FabricErrorCodes = "FABRIC_E_INVALID_FOR_STATELESS_SERVICES" 897 // FABRICEINVALIDNAMEURI ... 898 FABRICEINVALIDNAMEURI FabricErrorCodes = "FABRIC_E_INVALID_NAME_URI" 899 // FABRICEINVALIDPARTITIONKEY ... 900 FABRICEINVALIDPARTITIONKEY FabricErrorCodes = "FABRIC_E_INVALID_PARTITION_KEY" 901 // FABRICEINVALIDSERVICESCALINGPOLICY ... 902 FABRICEINVALIDSERVICESCALINGPOLICY FabricErrorCodes = "FABRIC_E_INVALID_SERVICE_SCALING_POLICY" 903 // FABRICEKEYNOTFOUND ... 904 FABRICEKEYNOTFOUND FabricErrorCodes = "FABRIC_E_KEY_NOT_FOUND" 905 // FABRICEKEYTOOLARGE ... 906 FABRICEKEYTOOLARGE FabricErrorCodes = "FABRIC_E_KEY_TOO_LARGE" 907 // FABRICENAMEALREADYEXISTS ... 908 FABRICENAMEALREADYEXISTS FabricErrorCodes = "FABRIC_E_NAME_ALREADY_EXISTS" 909 // FABRICENAMEDOESNOTEXIST ... 910 FABRICENAMEDOESNOTEXIST FabricErrorCodes = "FABRIC_E_NAME_DOES_NOT_EXIST" 911 // FABRICENAMENOTEMPTY ... 912 FABRICENAMENOTEMPTY FabricErrorCodes = "FABRIC_E_NAME_NOT_EMPTY" 913 // FABRICENODEHASNOTSTOPPEDYET ... 914 FABRICENODEHASNOTSTOPPEDYET FabricErrorCodes = "FABRIC_E_NODE_HAS_NOT_STOPPED_YET" 915 // FABRICENODEISUP ... 916 FABRICENODEISUP FabricErrorCodes = "FABRIC_E_NODE_IS_UP" 917 // FABRICENODENOTFOUND ... 918 FABRICENODENOTFOUND FabricErrorCodes = "FABRIC_E_NODE_NOT_FOUND" 919 // FABRICENOTPRIMARY ... 920 FABRICENOTPRIMARY FabricErrorCodes = "FABRIC_E_NOT_PRIMARY" 921 // FABRICENOTREADY ... 922 FABRICENOTREADY FabricErrorCodes = "FABRIC_E_NOT_READY" 923 // FABRICENOWRITEQUORUM ... 924 FABRICENOWRITEQUORUM FabricErrorCodes = "FABRIC_E_NO_WRITE_QUORUM" 925 // FABRICEOPERATIONNOTCOMPLETE ... 926 FABRICEOPERATIONNOTCOMPLETE FabricErrorCodes = "FABRIC_E_OPERATION_NOT_COMPLETE" 927 // FABRICEPARTITIONNOTFOUND ... 928 FABRICEPARTITIONNOTFOUND FabricErrorCodes = "FABRIC_E_PARTITION_NOT_FOUND" 929 // FABRICEPATHTOOLONG ... 930 FABRICEPATHTOOLONG FabricErrorCodes = "FABRIC_E_PATH_TOO_LONG" 931 // FABRICEPROPERTYCHECKFAILED ... 932 FABRICEPROPERTYCHECKFAILED FabricErrorCodes = "FABRIC_E_PROPERTY_CHECK_FAILED" 933 // FABRICEPROPERTYDOESNOTEXIST ... 934 FABRICEPROPERTYDOESNOTEXIST FabricErrorCodes = "FABRIC_E_PROPERTY_DOES_NOT_EXIST" 935 // FABRICERECONFIGURATIONPENDING ... 936 FABRICERECONFIGURATIONPENDING FabricErrorCodes = "FABRIC_E_RECONFIGURATION_PENDING" 937 // FABRICEREPLICADOESNOTEXIST ... 938 FABRICEREPLICADOESNOTEXIST FabricErrorCodes = "FABRIC_E_REPLICA_DOES_NOT_EXIST" 939 // FABRICERESTOREINPROGRESS ... 940 FABRICERESTOREINPROGRESS FabricErrorCodes = "FABRIC_E_RESTORE_IN_PROGRESS" 941 // FABRICERESTORESOURCETARGETPARTITIONMISMATCH ... 942 FABRICERESTORESOURCETARGETPARTITIONMISMATCH FabricErrorCodes = "FABRIC_E_RESTORE_SOURCE_TARGET_PARTITION_MISMATCH" 943 // FABRICESEQUENCENUMBERCHECKFAILED ... 944 FABRICESEQUENCENUMBERCHECKFAILED FabricErrorCodes = "FABRIC_E_SEQUENCE_NUMBER_CHECK_FAILED" 945 // FABRICESERVICEAFFINITYCHAINNOTSUPPORTED ... 946 FABRICESERVICEAFFINITYCHAINNOTSUPPORTED FabricErrorCodes = "FABRIC_E_SERVICE_AFFINITY_CHAIN_NOT_SUPPORTED" 947 // FABRICESERVICEALREADYEXISTS ... 948 FABRICESERVICEALREADYEXISTS FabricErrorCodes = "FABRIC_E_SERVICE_ALREADY_EXISTS" 949 // FABRICESERVICEDOESNOTEXIST ... 950 FABRICESERVICEDOESNOTEXIST FabricErrorCodes = "FABRIC_E_SERVICE_DOES_NOT_EXIST" 951 // FABRICESERVICEGROUPALREADYEXISTS ... 952 FABRICESERVICEGROUPALREADYEXISTS FabricErrorCodes = "FABRIC_E_SERVICE_GROUP_ALREADY_EXISTS" 953 // FABRICESERVICEGROUPDOESNOTEXIST ... 954 FABRICESERVICEGROUPDOESNOTEXIST FabricErrorCodes = "FABRIC_E_SERVICE_GROUP_DOES_NOT_EXIST" 955 // FABRICESERVICEMANIFESTNOTFOUND ... 956 FABRICESERVICEMANIFESTNOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_MANIFEST_NOT_FOUND" 957 // FABRICESERVICEMETADATAMISMATCH ... 958 FABRICESERVICEMETADATAMISMATCH FabricErrorCodes = "FABRIC_E_SERVICE_METADATA_MISMATCH" 959 // FABRICESERVICEOFFLINE ... 960 FABRICESERVICEOFFLINE FabricErrorCodes = "FABRIC_E_SERVICE_OFFLINE" 961 // FABRICESERVICETYPEMISMATCH ... 962 FABRICESERVICETYPEMISMATCH FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_MISMATCH" 963 // FABRICESERVICETYPENOTFOUND ... 964 FABRICESERVICETYPENOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_NOT_FOUND" 965 // FABRICESERVICETYPETEMPLATENOTFOUND ... 966 FABRICESERVICETYPETEMPLATENOTFOUND FabricErrorCodes = "FABRIC_E_SERVICE_TYPE_TEMPLATE_NOT_FOUND" 967 // FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS ... 968 FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS FabricErrorCodes = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_ALREADY_EXISTS" 969 // FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND ... 970 FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND FabricErrorCodes = "FABRIC_E_SINGLE_INSTANCE_APPLICATION_NOT_FOUND" 971 // FABRICETIMEOUT ... 972 FABRICETIMEOUT FabricErrorCodes = "FABRIC_E_TIMEOUT" 973 // FABRICEVALUEEMPTY ... 974 FABRICEVALUEEMPTY FabricErrorCodes = "FABRIC_E_VALUE_EMPTY" 975 // FABRICEVALUETOOLARGE ... 976 FABRICEVALUETOOLARGE FabricErrorCodes = "FABRIC_E_VALUE_TOO_LARGE" 977 // FABRICEVOLUMEALREADYEXISTS ... 978 FABRICEVOLUMEALREADYEXISTS FabricErrorCodes = "FABRIC_E_VOLUME_ALREADY_EXISTS" 979 // FABRICEVOLUMENOTFOUND ... 980 FABRICEVOLUMENOTFOUND FabricErrorCodes = "FABRIC_E_VOLUME_NOT_FOUND" 981 // SerializationError ... 982 SerializationError FabricErrorCodes = "SerializationError" 983) 984 985// PossibleFabricErrorCodesValues returns an array of possible values for the FabricErrorCodes const type. 986func PossibleFabricErrorCodesValues() []FabricErrorCodes { 987 return []FabricErrorCodes{EABORT, EFAIL, EINVALIDARG, FABRICEAPPLICATIONALREADYEXISTS, FABRICEAPPLICATIONALREADYINTARGETVERSION, FABRICEAPPLICATIONNOTFOUND, FABRICEAPPLICATIONNOTUPGRADING, FABRICEAPPLICATIONTYPEALREADYEXISTS, FABRICEAPPLICATIONTYPEINUSE, FABRICEAPPLICATIONTYPENOTFOUND, FABRICEAPPLICATIONTYPEPROVISIONINPROGRESS, FABRICEAPPLICATIONUPGRADEINPROGRESS, FABRICEAPPLICATIONUPGRADEVALIDATIONERROR, FABRICEBACKUPINPROGRESS, FABRICEBACKUPISENABLED, FABRICEBACKUPNOTENABLED, FABRICEBACKUPPOLICYALREADYEXISTING, FABRICEBACKUPPOLICYNOTEXISTING, FABRICECOMMUNICATIONERROR, FABRICECONFIGURATIONPARAMETERNOTFOUND, FABRICECONFIGURATIONSECTIONNOTFOUND, FABRICEDIRECTORYNOTFOUND, FABRICEENUMERATIONCOMPLETED, FABRICEFABRICALREADYINTARGETVERSION, FABRICEFABRICNOTUPGRADING, FABRICEFABRICUPGRADEINPROGRESS, FABRICEFABRICUPGRADEVALIDATIONERROR, FABRICEFABRICVERSIONALREADYEXISTS, FABRICEFABRICVERSIONINUSE, FABRICEFABRICVERSIONNOTFOUND, FABRICEFAULTANALYSISSERVICENOTEXISTING, FABRICEFILENOTFOUND, FABRICEHEALTHENTITYNOTFOUND, FABRICEHEALTHSTALEREPORT, FABRICEIMAGEBUILDERRESERVEDDIRECTORYERROR, FABRICEIMAGEBUILDERVALIDATIONERROR, FABRICEINSTANCEIDMISMATCH, FABRICEINVALIDADDRESS, FABRICEINVALIDATOMICGROUP, FABRICEINVALIDCONFIGURATION, FABRICEINVALIDFORSTATELESSSERVICES, FABRICEINVALIDNAMEURI, FABRICEINVALIDPARTITIONKEY, FABRICEINVALIDSERVICESCALINGPOLICY, FABRICEKEYNOTFOUND, FABRICEKEYTOOLARGE, FABRICENAMEALREADYEXISTS, FABRICENAMEDOESNOTEXIST, FABRICENAMENOTEMPTY, FABRICENODEHASNOTSTOPPEDYET, FABRICENODEISUP, FABRICENODENOTFOUND, FABRICENOTPRIMARY, FABRICENOTREADY, FABRICENOWRITEQUORUM, FABRICEOPERATIONNOTCOMPLETE, FABRICEPARTITIONNOTFOUND, FABRICEPATHTOOLONG, FABRICEPROPERTYCHECKFAILED, FABRICEPROPERTYDOESNOTEXIST, FABRICERECONFIGURATIONPENDING, FABRICEREPLICADOESNOTEXIST, FABRICERESTOREINPROGRESS, FABRICERESTORESOURCETARGETPARTITIONMISMATCH, FABRICESEQUENCENUMBERCHECKFAILED, FABRICESERVICEAFFINITYCHAINNOTSUPPORTED, FABRICESERVICEALREADYEXISTS, FABRICESERVICEDOESNOTEXIST, FABRICESERVICEGROUPALREADYEXISTS, FABRICESERVICEGROUPDOESNOTEXIST, FABRICESERVICEMANIFESTNOTFOUND, FABRICESERVICEMETADATAMISMATCH, FABRICESERVICEOFFLINE, FABRICESERVICETYPEMISMATCH, FABRICESERVICETYPENOTFOUND, FABRICESERVICETYPETEMPLATENOTFOUND, FABRICESINGLEINSTANCEAPPLICATIONALREADYEXISTS, FABRICESINGLEINSTANCEAPPLICATIONNOTFOUND, FABRICETIMEOUT, FABRICEVALUEEMPTY, FABRICEVALUETOOLARGE, FABRICEVOLUMEALREADYEXISTS, FABRICEVOLUMENOTFOUND, SerializationError} 988} 989 990// FabricEventKind enumerates the values for fabric event kind. 991type FabricEventKind string 992 993const ( 994 // FabricEventKindApplicationContainerInstanceExited ... 995 FabricEventKindApplicationContainerInstanceExited FabricEventKind = "ApplicationContainerInstanceExited" 996 // FabricEventKindApplicationCreated ... 997 FabricEventKindApplicationCreated FabricEventKind = "ApplicationCreated" 998 // FabricEventKindApplicationDeleted ... 999 FabricEventKindApplicationDeleted FabricEventKind = "ApplicationDeleted" 1000 // FabricEventKindApplicationEvent ... 1001 FabricEventKindApplicationEvent FabricEventKind = "ApplicationEvent" 1002 // FabricEventKindApplicationHealthReportExpired ... 1003 FabricEventKindApplicationHealthReportExpired FabricEventKind = "ApplicationHealthReportExpired" 1004 // FabricEventKindApplicationNewHealthReport ... 1005 FabricEventKindApplicationNewHealthReport FabricEventKind = "ApplicationNewHealthReport" 1006 // FabricEventKindApplicationProcessExited ... 1007 FabricEventKindApplicationProcessExited FabricEventKind = "ApplicationProcessExited" 1008 // FabricEventKindApplicationUpgradeCompleted ... 1009 FabricEventKindApplicationUpgradeCompleted FabricEventKind = "ApplicationUpgradeCompleted" 1010 // FabricEventKindApplicationUpgradeDomainCompleted ... 1011 FabricEventKindApplicationUpgradeDomainCompleted FabricEventKind = "ApplicationUpgradeDomainCompleted" 1012 // FabricEventKindApplicationUpgradeRollbackCompleted ... 1013 FabricEventKindApplicationUpgradeRollbackCompleted FabricEventKind = "ApplicationUpgradeRollbackCompleted" 1014 // FabricEventKindApplicationUpgradeRollbackStarted ... 1015 FabricEventKindApplicationUpgradeRollbackStarted FabricEventKind = "ApplicationUpgradeRollbackStarted" 1016 // FabricEventKindApplicationUpgradeStarted ... 1017 FabricEventKindApplicationUpgradeStarted FabricEventKind = "ApplicationUpgradeStarted" 1018 // FabricEventKindChaosCodePackageRestartScheduled ... 1019 FabricEventKindChaosCodePackageRestartScheduled FabricEventKind = "ChaosCodePackageRestartScheduled" 1020 // FabricEventKindChaosNodeRestartScheduled ... 1021 FabricEventKindChaosNodeRestartScheduled FabricEventKind = "ChaosNodeRestartScheduled" 1022 // FabricEventKindChaosPartitionPrimaryMoveScheduled ... 1023 FabricEventKindChaosPartitionPrimaryMoveScheduled FabricEventKind = "ChaosPartitionPrimaryMoveScheduled" 1024 // FabricEventKindChaosPartitionSecondaryMoveScheduled ... 1025 FabricEventKindChaosPartitionSecondaryMoveScheduled FabricEventKind = "ChaosPartitionSecondaryMoveScheduled" 1026 // FabricEventKindChaosReplicaRemovalScheduled ... 1027 FabricEventKindChaosReplicaRemovalScheduled FabricEventKind = "ChaosReplicaRemovalScheduled" 1028 // FabricEventKindChaosReplicaRestartScheduled ... 1029 FabricEventKindChaosReplicaRestartScheduled FabricEventKind = "ChaosReplicaRestartScheduled" 1030 // FabricEventKindChaosStarted ... 1031 FabricEventKindChaosStarted FabricEventKind = "ChaosStarted" 1032 // FabricEventKindChaosStopped ... 1033 FabricEventKindChaosStopped FabricEventKind = "ChaosStopped" 1034 // FabricEventKindClusterEvent ... 1035 FabricEventKindClusterEvent FabricEventKind = "ClusterEvent" 1036 // FabricEventKindClusterHealthReportExpired ... 1037 FabricEventKindClusterHealthReportExpired FabricEventKind = "ClusterHealthReportExpired" 1038 // FabricEventKindClusterNewHealthReport ... 1039 FabricEventKindClusterNewHealthReport FabricEventKind = "ClusterNewHealthReport" 1040 // FabricEventKindClusterUpgradeCompleted ... 1041 FabricEventKindClusterUpgradeCompleted FabricEventKind = "ClusterUpgradeCompleted" 1042 // FabricEventKindClusterUpgradeDomainCompleted ... 1043 FabricEventKindClusterUpgradeDomainCompleted FabricEventKind = "ClusterUpgradeDomainCompleted" 1044 // FabricEventKindClusterUpgradeRollbackCompleted ... 1045 FabricEventKindClusterUpgradeRollbackCompleted FabricEventKind = "ClusterUpgradeRollbackCompleted" 1046 // FabricEventKindClusterUpgradeRollbackStarted ... 1047 FabricEventKindClusterUpgradeRollbackStarted FabricEventKind = "ClusterUpgradeRollbackStarted" 1048 // FabricEventKindClusterUpgradeStarted ... 1049 FabricEventKindClusterUpgradeStarted FabricEventKind = "ClusterUpgradeStarted" 1050 // FabricEventKindContainerInstanceEvent ... 1051 FabricEventKindContainerInstanceEvent FabricEventKind = "ContainerInstanceEvent" 1052 // FabricEventKindDeployedApplicationHealthReportExpired ... 1053 FabricEventKindDeployedApplicationHealthReportExpired FabricEventKind = "DeployedApplicationHealthReportExpired" 1054 // FabricEventKindDeployedApplicationNewHealthReport ... 1055 FabricEventKindDeployedApplicationNewHealthReport FabricEventKind = "DeployedApplicationNewHealthReport" 1056 // FabricEventKindDeployedServicePackageHealthReportExpired ... 1057 FabricEventKindDeployedServicePackageHealthReportExpired FabricEventKind = "DeployedServicePackageHealthReportExpired" 1058 // FabricEventKindDeployedServicePackageNewHealthReport ... 1059 FabricEventKindDeployedServicePackageNewHealthReport FabricEventKind = "DeployedServicePackageNewHealthReport" 1060 // FabricEventKindNodeAborted ... 1061 FabricEventKindNodeAborted FabricEventKind = "NodeAborted" 1062 // FabricEventKindNodeAddedToCluster ... 1063 FabricEventKindNodeAddedToCluster FabricEventKind = "NodeAddedToCluster" 1064 // FabricEventKindNodeClosed ... 1065 FabricEventKindNodeClosed FabricEventKind = "NodeClosed" 1066 // FabricEventKindNodeDeactivateCompleted ... 1067 FabricEventKindNodeDeactivateCompleted FabricEventKind = "NodeDeactivateCompleted" 1068 // FabricEventKindNodeDeactivateStarted ... 1069 FabricEventKindNodeDeactivateStarted FabricEventKind = "NodeDeactivateStarted" 1070 // FabricEventKindNodeDown ... 1071 FabricEventKindNodeDown FabricEventKind = "NodeDown" 1072 // FabricEventKindNodeEvent ... 1073 FabricEventKindNodeEvent FabricEventKind = "NodeEvent" 1074 // FabricEventKindNodeHealthReportExpired ... 1075 FabricEventKindNodeHealthReportExpired FabricEventKind = "NodeHealthReportExpired" 1076 // FabricEventKindNodeNewHealthReport ... 1077 FabricEventKindNodeNewHealthReport FabricEventKind = "NodeNewHealthReport" 1078 // FabricEventKindNodeOpenFailed ... 1079 FabricEventKindNodeOpenFailed FabricEventKind = "NodeOpenFailed" 1080 // FabricEventKindNodeOpenSucceeded ... 1081 FabricEventKindNodeOpenSucceeded FabricEventKind = "NodeOpenSucceeded" 1082 // FabricEventKindNodeRemovedFromCluster ... 1083 FabricEventKindNodeRemovedFromCluster FabricEventKind = "NodeRemovedFromCluster" 1084 // FabricEventKindNodeUp ... 1085 FabricEventKindNodeUp FabricEventKind = "NodeUp" 1086 // FabricEventKindPartitionAnalysisEvent ... 1087 FabricEventKindPartitionAnalysisEvent FabricEventKind = "PartitionAnalysisEvent" 1088 // FabricEventKindPartitionEvent ... 1089 FabricEventKindPartitionEvent FabricEventKind = "PartitionEvent" 1090 // FabricEventKindPartitionHealthReportExpired ... 1091 FabricEventKindPartitionHealthReportExpired FabricEventKind = "PartitionHealthReportExpired" 1092 // FabricEventKindPartitionNewHealthReport ... 1093 FabricEventKindPartitionNewHealthReport FabricEventKind = "PartitionNewHealthReport" 1094 // FabricEventKindPartitionPrimaryMoveAnalysis ... 1095 FabricEventKindPartitionPrimaryMoveAnalysis FabricEventKind = "PartitionPrimaryMoveAnalysis" 1096 // FabricEventKindPartitionReconfigured ... 1097 FabricEventKindPartitionReconfigured FabricEventKind = "PartitionReconfigured" 1098 // FabricEventKindReplicaEvent ... 1099 FabricEventKindReplicaEvent FabricEventKind = "ReplicaEvent" 1100 // FabricEventKindServiceCreated ... 1101 FabricEventKindServiceCreated FabricEventKind = "ServiceCreated" 1102 // FabricEventKindServiceDeleted ... 1103 FabricEventKindServiceDeleted FabricEventKind = "ServiceDeleted" 1104 // FabricEventKindServiceEvent ... 1105 FabricEventKindServiceEvent FabricEventKind = "ServiceEvent" 1106 // FabricEventKindServiceHealthReportExpired ... 1107 FabricEventKindServiceHealthReportExpired FabricEventKind = "ServiceHealthReportExpired" 1108 // FabricEventKindServiceNewHealthReport ... 1109 FabricEventKindServiceNewHealthReport FabricEventKind = "ServiceNewHealthReport" 1110 // FabricEventKindStatefulReplicaHealthReportExpired ... 1111 FabricEventKindStatefulReplicaHealthReportExpired FabricEventKind = "StatefulReplicaHealthReportExpired" 1112 // FabricEventKindStatefulReplicaNewHealthReport ... 1113 FabricEventKindStatefulReplicaNewHealthReport FabricEventKind = "StatefulReplicaNewHealthReport" 1114 // FabricEventKindStatelessReplicaHealthReportExpired ... 1115 FabricEventKindStatelessReplicaHealthReportExpired FabricEventKind = "StatelessReplicaHealthReportExpired" 1116 // FabricEventKindStatelessReplicaNewHealthReport ... 1117 FabricEventKindStatelessReplicaNewHealthReport FabricEventKind = "StatelessReplicaNewHealthReport" 1118) 1119 1120// PossibleFabricEventKindValues returns an array of possible values for the FabricEventKind const type. 1121func PossibleFabricEventKindValues() []FabricEventKind { 1122 return []FabricEventKind{FabricEventKindApplicationContainerInstanceExited, FabricEventKindApplicationCreated, FabricEventKindApplicationDeleted, FabricEventKindApplicationEvent, FabricEventKindApplicationHealthReportExpired, FabricEventKindApplicationNewHealthReport, FabricEventKindApplicationProcessExited, FabricEventKindApplicationUpgradeCompleted, FabricEventKindApplicationUpgradeDomainCompleted, FabricEventKindApplicationUpgradeRollbackCompleted, FabricEventKindApplicationUpgradeRollbackStarted, FabricEventKindApplicationUpgradeStarted, FabricEventKindChaosCodePackageRestartScheduled, FabricEventKindChaosNodeRestartScheduled, FabricEventKindChaosPartitionPrimaryMoveScheduled, FabricEventKindChaosPartitionSecondaryMoveScheduled, FabricEventKindChaosReplicaRemovalScheduled, FabricEventKindChaosReplicaRestartScheduled, FabricEventKindChaosStarted, FabricEventKindChaosStopped, FabricEventKindClusterEvent, FabricEventKindClusterHealthReportExpired, FabricEventKindClusterNewHealthReport, FabricEventKindClusterUpgradeCompleted, FabricEventKindClusterUpgradeDomainCompleted, FabricEventKindClusterUpgradeRollbackCompleted, FabricEventKindClusterUpgradeRollbackStarted, FabricEventKindClusterUpgradeStarted, FabricEventKindContainerInstanceEvent, FabricEventKindDeployedApplicationHealthReportExpired, FabricEventKindDeployedApplicationNewHealthReport, FabricEventKindDeployedServicePackageHealthReportExpired, FabricEventKindDeployedServicePackageNewHealthReport, FabricEventKindNodeAborted, FabricEventKindNodeAddedToCluster, FabricEventKindNodeClosed, FabricEventKindNodeDeactivateCompleted, FabricEventKindNodeDeactivateStarted, FabricEventKindNodeDown, FabricEventKindNodeEvent, FabricEventKindNodeHealthReportExpired, FabricEventKindNodeNewHealthReport, FabricEventKindNodeOpenFailed, FabricEventKindNodeOpenSucceeded, FabricEventKindNodeRemovedFromCluster, FabricEventKindNodeUp, FabricEventKindPartitionAnalysisEvent, FabricEventKindPartitionEvent, FabricEventKindPartitionHealthReportExpired, FabricEventKindPartitionNewHealthReport, FabricEventKindPartitionPrimaryMoveAnalysis, FabricEventKindPartitionReconfigured, FabricEventKindReplicaEvent, FabricEventKindServiceCreated, FabricEventKindServiceDeleted, FabricEventKindServiceEvent, FabricEventKindServiceHealthReportExpired, FabricEventKindServiceNewHealthReport, FabricEventKindStatefulReplicaHealthReportExpired, FabricEventKindStatefulReplicaNewHealthReport, FabricEventKindStatelessReplicaHealthReportExpired, FabricEventKindStatelessReplicaNewHealthReport} 1123} 1124 1125// FabricReplicaStatus enumerates the values for fabric replica status. 1126type FabricReplicaStatus string 1127 1128const ( 1129 // FabricReplicaStatusDown Indicates that the replica is down. 1130 FabricReplicaStatusDown FabricReplicaStatus = "Down" 1131 // FabricReplicaStatusInvalid Indicates that the read or write operation access status is not valid. This 1132 // value is not returned to the caller. 1133 FabricReplicaStatusInvalid FabricReplicaStatus = "Invalid" 1134 // FabricReplicaStatusUp Indicates that the replica is up. 1135 FabricReplicaStatusUp FabricReplicaStatus = "Up" 1136) 1137 1138// PossibleFabricReplicaStatusValues returns an array of possible values for the FabricReplicaStatus const type. 1139func PossibleFabricReplicaStatusValues() []FabricReplicaStatus { 1140 return []FabricReplicaStatus{FabricReplicaStatusDown, FabricReplicaStatusInvalid, FabricReplicaStatusUp} 1141} 1142 1143// FailureAction enumerates the values for failure action. 1144type FailureAction string 1145 1146const ( 1147 // FailureActionInvalid Indicates the failure action is invalid. All Service Fabric enumerations have the 1148 // invalid type. The value is zero. 1149 FailureActionInvalid FailureAction = "Invalid" 1150 // FailureActionManual The upgrade will switch to UnmonitoredManual upgrade mode. The value is 2 1151 FailureActionManual FailureAction = "Manual" 1152 // FailureActionRollback The upgrade will start rolling back automatically. The value is 1 1153 FailureActionRollback FailureAction = "Rollback" 1154) 1155 1156// PossibleFailureActionValues returns an array of possible values for the FailureAction const type. 1157func PossibleFailureActionValues() []FailureAction { 1158 return []FailureAction{FailureActionInvalid, FailureActionManual, FailureActionRollback} 1159} 1160 1161// FailureReason enumerates the values for failure reason. 1162type FailureReason string 1163 1164const ( 1165 // HealthCheck The upgrade failed due to health policy violations. The value is 2 1166 HealthCheck FailureReason = "HealthCheck" 1167 // Interrupted There was an external request to roll back the upgrade. The value is 1 1168 Interrupted FailureReason = "Interrupted" 1169 // None Indicates the reason is invalid or unknown. All Service Fabric enumerations have the invalid type. 1170 // The value is zero. 1171 None FailureReason = "None" 1172 // OverallUpgradeTimeout The overall upgrade took longer than the allowed upgrade timeout to process. The 1173 // value is 4 1174 OverallUpgradeTimeout FailureReason = "OverallUpgradeTimeout" 1175 // UpgradeDomainTimeout An upgrade domain took longer than the allowed upgrade domain timeout to process. 1176 // The value is 3 1177 UpgradeDomainTimeout FailureReason = "UpgradeDomainTimeout" 1178) 1179 1180// PossibleFailureReasonValues returns an array of possible values for the FailureReason const type. 1181func PossibleFailureReasonValues() []FailureReason { 1182 return []FailureReason{HealthCheck, Interrupted, None, OverallUpgradeTimeout, UpgradeDomainTimeout} 1183} 1184 1185// HeaderMatchType enumerates the values for header match type. 1186type HeaderMatchType string 1187 1188const ( 1189 // Exact ... 1190 Exact HeaderMatchType = "exact" 1191) 1192 1193// PossibleHeaderMatchTypeValues returns an array of possible values for the HeaderMatchType const type. 1194func PossibleHeaderMatchTypeValues() []HeaderMatchType { 1195 return []HeaderMatchType{Exact} 1196} 1197 1198// HealthEvaluationKind enumerates the values for health evaluation kind. 1199type HealthEvaluationKind string 1200 1201const ( 1202 // HealthEvaluationKindApplication Indicates that the health evaluation is for an application. The value is 1203 // 18. 1204 HealthEvaluationKindApplication HealthEvaluationKind = "Application" 1205 // HealthEvaluationKindApplications Indicates that the health evaluation is for the cluster applications. 1206 // The value is 8. 1207 HealthEvaluationKindApplications HealthEvaluationKind = "Applications" 1208 // HealthEvaluationKindApplicationTypeApplications – Indicates that the health evaluation is for 1209 // applications of an application type. The value is 21. 1210 HealthEvaluationKindApplicationTypeApplications HealthEvaluationKind = "ApplicationTypeApplications" 1211 // HealthEvaluationKindDeltaNodesCheck Indicates that the health evaluation is for the delta of unhealthy 1212 // cluster nodes. The value is 19. 1213 HealthEvaluationKindDeltaNodesCheck HealthEvaluationKind = "DeltaNodesCheck" 1214 // HealthEvaluationKindDeployedApplication Indicates that the health evaluation is for a deployed 1215 // application. The value is 17. 1216 HealthEvaluationKindDeployedApplication HealthEvaluationKind = "DeployedApplication" 1217 // HealthEvaluationKindDeployedApplications Indicates that the health evaluation is for the deployed 1218 // applications of an application. The value is 5. 1219 HealthEvaluationKindDeployedApplications HealthEvaluationKind = "DeployedApplications" 1220 // HealthEvaluationKindDeployedServicePackage Indicates that the health evaluation is for a deployed 1221 // service package. The value is 16. 1222 HealthEvaluationKindDeployedServicePackage HealthEvaluationKind = "DeployedServicePackage" 1223 // HealthEvaluationKindDeployedServicePackages Indicates that the health evaluation is for the deployed 1224 // service packages of a deployed application. The value is 4. 1225 HealthEvaluationKindDeployedServicePackages HealthEvaluationKind = "DeployedServicePackages" 1226 // HealthEvaluationKindEvent Indicates that the health evaluation is for a health event. The value is 1. 1227 HealthEvaluationKindEvent HealthEvaluationKind = "Event" 1228 // HealthEvaluationKindInvalid Indicates that the health evaluation is invalid. The value is zero. 1229 HealthEvaluationKindInvalid HealthEvaluationKind = "Invalid" 1230 // HealthEvaluationKindNode Indicates that the health evaluation is for a node. The value is 12. 1231 HealthEvaluationKindNode HealthEvaluationKind = "Node" 1232 // HealthEvaluationKindNodes Indicates that the health evaluation is for the cluster nodes. The value is 7. 1233 HealthEvaluationKindNodes HealthEvaluationKind = "Nodes" 1234 // HealthEvaluationKindPartition Indicates that the health evaluation is for a partition. The value is 14. 1235 HealthEvaluationKindPartition HealthEvaluationKind = "Partition" 1236 // HealthEvaluationKindPartitions Indicates that the health evaluation is for the partitions of a service. 1237 // The value is 3. 1238 HealthEvaluationKindPartitions HealthEvaluationKind = "Partitions" 1239 // HealthEvaluationKindReplica Indicates that the health evaluation is for a replica. The value is 13. 1240 HealthEvaluationKindReplica HealthEvaluationKind = "Replica" 1241 // HealthEvaluationKindReplicas Indicates that the health evaluation is for the replicas of a partition. 1242 // The value is 2. 1243 HealthEvaluationKindReplicas HealthEvaluationKind = "Replicas" 1244 // HealthEvaluationKindService Indicates that the health evaluation is for a service. The value is 15. 1245 HealthEvaluationKindService HealthEvaluationKind = "Service" 1246 // HealthEvaluationKindServices Indicates that the health evaluation is for services of an application. The 1247 // value is 6. 1248 HealthEvaluationKindServices HealthEvaluationKind = "Services" 1249 // HealthEvaluationKindSystemApplication Indicates that the health evaluation is for the system 1250 // application. The value is 9. 1251 HealthEvaluationKindSystemApplication HealthEvaluationKind = "SystemApplication" 1252 // HealthEvaluationKindUpgradeDomainDeltaNodesCheck Indicates that the health evaluation is for the delta 1253 // of unhealthy upgrade domain cluster nodes. The value is 20. 1254 HealthEvaluationKindUpgradeDomainDeltaNodesCheck HealthEvaluationKind = "UpgradeDomainDeltaNodesCheck" 1255 // HealthEvaluationKindUpgradeDomainDeployedApplications Indicates that the health evaluation is for the 1256 // deployed applications of an application in an upgrade domain. The value is 10. 1257 HealthEvaluationKindUpgradeDomainDeployedApplications HealthEvaluationKind = "UpgradeDomainDeployedApplications" 1258 // HealthEvaluationKindUpgradeDomainNodes Indicates that the health evaluation is for the cluster nodes in 1259 // an upgrade domain. The value is 11. 1260 HealthEvaluationKindUpgradeDomainNodes HealthEvaluationKind = "UpgradeDomainNodes" 1261) 1262 1263// PossibleHealthEvaluationKindValues returns an array of possible values for the HealthEvaluationKind const type. 1264func PossibleHealthEvaluationKindValues() []HealthEvaluationKind { 1265 return []HealthEvaluationKind{HealthEvaluationKindApplication, HealthEvaluationKindApplications, HealthEvaluationKindApplicationTypeApplications, HealthEvaluationKindDeltaNodesCheck, HealthEvaluationKindDeployedApplication, HealthEvaluationKindDeployedApplications, HealthEvaluationKindDeployedServicePackage, HealthEvaluationKindDeployedServicePackages, HealthEvaluationKindEvent, HealthEvaluationKindInvalid, HealthEvaluationKindNode, HealthEvaluationKindNodes, HealthEvaluationKindPartition, HealthEvaluationKindPartitions, HealthEvaluationKindReplica, HealthEvaluationKindReplicas, HealthEvaluationKindService, HealthEvaluationKindServices, HealthEvaluationKindSystemApplication, HealthEvaluationKindUpgradeDomainDeltaNodesCheck, HealthEvaluationKindUpgradeDomainDeployedApplications, HealthEvaluationKindUpgradeDomainNodes} 1266} 1267 1268// HealthState enumerates the values for health state. 1269type HealthState string 1270 1271const ( 1272 // HealthStateError Indicates the health state is at an error level. Error health state should be 1273 // investigated, as they can impact the correct functionality of the cluster. The value is 3. 1274 HealthStateError HealthState = "Error" 1275 // HealthStateInvalid Indicates an invalid health state. All Service Fabric enumerations have the invalid 1276 // type. The value is zero. 1277 HealthStateInvalid HealthState = "Invalid" 1278 // HealthStateOk Indicates the health state is okay. The value is 1. 1279 HealthStateOk HealthState = "Ok" 1280 // HealthStateUnknown Indicates an unknown health status. The value is 65535. 1281 HealthStateUnknown HealthState = "Unknown" 1282 // HealthStateWarning Indicates the health state is at a warning level. The value is 2. 1283 HealthStateWarning HealthState = "Warning" 1284) 1285 1286// PossibleHealthStateValues returns an array of possible values for the HealthState const type. 1287func PossibleHealthStateValues() []HealthState { 1288 return []HealthState{HealthStateError, HealthStateInvalid, HealthStateOk, HealthStateUnknown, HealthStateWarning} 1289} 1290 1291// HostIsolationMode enumerates the values for host isolation mode. 1292type HostIsolationMode string 1293 1294const ( 1295 // HostIsolationModeHyperV Indicates the ContainerHost is a Hyper-V container. This applies to only Windows 1296 // containers. The value is 2. 1297 HostIsolationModeHyperV HostIsolationMode = "HyperV" 1298 // HostIsolationModeNone Indicates the isolation mode is not applicable for given HostType. The value is 0. 1299 HostIsolationModeNone HostIsolationMode = "None" 1300 // HostIsolationModeProcess This is the default isolation mode for a ContainerHost. The value is 1. 1301 HostIsolationModeProcess HostIsolationMode = "Process" 1302) 1303 1304// PossibleHostIsolationModeValues returns an array of possible values for the HostIsolationMode const type. 1305func PossibleHostIsolationModeValues() []HostIsolationMode { 1306 return []HostIsolationMode{HostIsolationModeHyperV, HostIsolationModeNone, HostIsolationModeProcess} 1307} 1308 1309// HostType enumerates the values for host type. 1310type HostType string 1311 1312const ( 1313 // HostTypeContainerHost Indicates the host is a container. The value is 2. 1314 HostTypeContainerHost HostType = "ContainerHost" 1315 // HostTypeExeHost Indicates the host is an executable. The value is 1. 1316 HostTypeExeHost HostType = "ExeHost" 1317 // HostTypeInvalid Indicates the type of host is not known or invalid. The value is 0. 1318 HostTypeInvalid HostType = "Invalid" 1319) 1320 1321// PossibleHostTypeValues returns an array of possible values for the HostType const type. 1322func PossibleHostTypeValues() []HostType { 1323 return []HostType{HostTypeContainerHost, HostTypeExeHost, HostTypeInvalid} 1324} 1325 1326// ImageRegistryPasswordType enumerates the values for image registry password type. 1327type ImageRegistryPasswordType string 1328 1329const ( 1330 // ImageRegistryPasswordTypeClearText The image registry password in clear text, will not be processed in 1331 // any way and used directly 1332 ImageRegistryPasswordTypeClearText ImageRegistryPasswordType = "ClearText" 1333 // ImageRegistryPasswordTypeKeyVaultReference The URI to a KeyVault secret version, will be resolved using 1334 // the application's managed identity (this type is only valid if the app was assigned a managed identity) 1335 // before getting used 1336 ImageRegistryPasswordTypeKeyVaultReference ImageRegistryPasswordType = "KeyVaultReference" 1337 // ImageRegistryPasswordTypeSecretValueReference The reference to a SecretValue resource, will be resolved 1338 // before getting used 1339 ImageRegistryPasswordTypeSecretValueReference ImageRegistryPasswordType = "SecretValueReference" 1340) 1341 1342// PossibleImageRegistryPasswordTypeValues returns an array of possible values for the ImageRegistryPasswordType const type. 1343func PossibleImageRegistryPasswordTypeValues() []ImageRegistryPasswordType { 1344 return []ImageRegistryPasswordType{ImageRegistryPasswordTypeClearText, ImageRegistryPasswordTypeKeyVaultReference, ImageRegistryPasswordTypeSecretValueReference} 1345} 1346 1347// ImpactLevel enumerates the values for impact level. 1348type ImpactLevel string 1349 1350const ( 1351 // ImpactLevelInvalid ... 1352 ImpactLevelInvalid ImpactLevel = "Invalid" 1353 // ImpactLevelNone ... 1354 ImpactLevelNone ImpactLevel = "None" 1355 // ImpactLevelRemoveData ... 1356 ImpactLevelRemoveData ImpactLevel = "RemoveData" 1357 // ImpactLevelRemoveNode ... 1358 ImpactLevelRemoveNode ImpactLevel = "RemoveNode" 1359 // ImpactLevelRestart ... 1360 ImpactLevelRestart ImpactLevel = "Restart" 1361) 1362 1363// PossibleImpactLevelValues returns an array of possible values for the ImpactLevel const type. 1364func PossibleImpactLevelValues() []ImpactLevel { 1365 return []ImpactLevel{ImpactLevelInvalid, ImpactLevelNone, ImpactLevelRemoveData, ImpactLevelRemoveNode, ImpactLevelRestart} 1366} 1367 1368// Kind enumerates the values for kind. 1369type Kind string 1370 1371const ( 1372 // KindApplication ... 1373 KindApplication Kind = "Application" 1374 // KindApplications ... 1375 KindApplications Kind = "Applications" 1376 // KindApplicationTypeApplications ... 1377 KindApplicationTypeApplications Kind = "ApplicationTypeApplications" 1378 // KindDeltaNodesCheck ... 1379 KindDeltaNodesCheck Kind = "DeltaNodesCheck" 1380 // KindDeployedApplication ... 1381 KindDeployedApplication Kind = "DeployedApplication" 1382 // KindDeployedApplications ... 1383 KindDeployedApplications Kind = "DeployedApplications" 1384 // KindDeployedServicePackage ... 1385 KindDeployedServicePackage Kind = "DeployedServicePackage" 1386 // KindDeployedServicePackages ... 1387 KindDeployedServicePackages Kind = "DeployedServicePackages" 1388 // KindEvent ... 1389 KindEvent Kind = "Event" 1390 // KindHealthEvaluation ... 1391 KindHealthEvaluation Kind = "HealthEvaluation" 1392 // KindNode ... 1393 KindNode Kind = "Node" 1394 // KindNodes ... 1395 KindNodes Kind = "Nodes" 1396 // KindPartition ... 1397 KindPartition Kind = "Partition" 1398 // KindPartitions ... 1399 KindPartitions Kind = "Partitions" 1400 // KindReplica ... 1401 KindReplica Kind = "Replica" 1402 // KindReplicas ... 1403 KindReplicas Kind = "Replicas" 1404 // KindService ... 1405 KindService Kind = "Service" 1406 // KindServices ... 1407 KindServices Kind = "Services" 1408 // KindSystemApplication ... 1409 KindSystemApplication Kind = "SystemApplication" 1410 // KindUpgradeDomainDeltaNodesCheck ... 1411 KindUpgradeDomainDeltaNodesCheck Kind = "UpgradeDomainDeltaNodesCheck" 1412 // KindUpgradeDomainNodes ... 1413 KindUpgradeDomainNodes Kind = "UpgradeDomainNodes" 1414) 1415 1416// PossibleKindValues returns an array of possible values for the Kind const type. 1417func PossibleKindValues() []Kind { 1418 return []Kind{KindApplication, KindApplications, KindApplicationTypeApplications, KindDeltaNodesCheck, KindDeployedApplication, KindDeployedApplications, KindDeployedServicePackage, KindDeployedServicePackages, KindEvent, KindHealthEvaluation, KindNode, KindNodes, KindPartition, KindPartitions, KindReplica, KindReplicas, KindService, KindServices, KindSystemApplication, KindUpgradeDomainDeltaNodesCheck, KindUpgradeDomainNodes} 1419} 1420 1421// KindBasicApplicationScopedVolumeCreationParameters enumerates the values for kind basic application scoped 1422// volume creation parameters. 1423type KindBasicApplicationScopedVolumeCreationParameters string 1424 1425const ( 1426 // KindApplicationScopedVolumeCreationParameters ... 1427 KindApplicationScopedVolumeCreationParameters KindBasicApplicationScopedVolumeCreationParameters = "ApplicationScopedVolumeCreationParameters" 1428 // KindServiceFabricVolumeDisk ... 1429 KindServiceFabricVolumeDisk KindBasicApplicationScopedVolumeCreationParameters = "ServiceFabricVolumeDisk" 1430) 1431 1432// PossibleKindBasicApplicationScopedVolumeCreationParametersValues returns an array of possible values for the KindBasicApplicationScopedVolumeCreationParameters const type. 1433func PossibleKindBasicApplicationScopedVolumeCreationParametersValues() []KindBasicApplicationScopedVolumeCreationParameters { 1434 return []KindBasicApplicationScopedVolumeCreationParameters{KindApplicationScopedVolumeCreationParameters, KindServiceFabricVolumeDisk} 1435} 1436 1437// KindBasicAutoScalingMechanism enumerates the values for kind basic auto scaling mechanism. 1438type KindBasicAutoScalingMechanism string 1439 1440const ( 1441 // KindAddRemoveReplica ... 1442 KindAddRemoveReplica KindBasicAutoScalingMechanism = "AddRemoveReplica" 1443 // KindAutoScalingMechanism ... 1444 KindAutoScalingMechanism KindBasicAutoScalingMechanism = "AutoScalingMechanism" 1445) 1446 1447// PossibleKindBasicAutoScalingMechanismValues returns an array of possible values for the KindBasicAutoScalingMechanism const type. 1448func PossibleKindBasicAutoScalingMechanismValues() []KindBasicAutoScalingMechanism { 1449 return []KindBasicAutoScalingMechanism{KindAddRemoveReplica, KindAutoScalingMechanism} 1450} 1451 1452// KindBasicAutoScalingMetric enumerates the values for kind basic auto scaling metric. 1453type KindBasicAutoScalingMetric string 1454 1455const ( 1456 // KindAutoScalingMetric ... 1457 KindAutoScalingMetric KindBasicAutoScalingMetric = "AutoScalingMetric" 1458 // KindResource ... 1459 KindResource KindBasicAutoScalingMetric = "Resource" 1460) 1461 1462// PossibleKindBasicAutoScalingMetricValues returns an array of possible values for the KindBasicAutoScalingMetric const type. 1463func PossibleKindBasicAutoScalingMetricValues() []KindBasicAutoScalingMetric { 1464 return []KindBasicAutoScalingMetric{KindAutoScalingMetric, KindResource} 1465} 1466 1467// KindBasicAutoScalingTrigger enumerates the values for kind basic auto scaling trigger. 1468type KindBasicAutoScalingTrigger string 1469 1470const ( 1471 // KindAutoScalingTrigger ... 1472 KindAutoScalingTrigger KindBasicAutoScalingTrigger = "AutoScalingTrigger" 1473 // KindAverageLoad ... 1474 KindAverageLoad KindBasicAutoScalingTrigger = "AverageLoad" 1475) 1476 1477// PossibleKindBasicAutoScalingTriggerValues returns an array of possible values for the KindBasicAutoScalingTrigger const type. 1478func PossibleKindBasicAutoScalingTriggerValues() []KindBasicAutoScalingTrigger { 1479 return []KindBasicAutoScalingTrigger{KindAutoScalingTrigger, KindAverageLoad} 1480} 1481 1482// KindBasicBackupConfigurationInfo enumerates the values for kind basic backup configuration info. 1483type KindBasicBackupConfigurationInfo string 1484 1485const ( 1486 // KindBasicBackupConfigurationInfoKindApplication ... 1487 KindBasicBackupConfigurationInfoKindApplication KindBasicBackupConfigurationInfo = "Application" 1488 // KindBasicBackupConfigurationInfoKindBackupConfigurationInfo ... 1489 KindBasicBackupConfigurationInfoKindBackupConfigurationInfo KindBasicBackupConfigurationInfo = "BackupConfigurationInfo" 1490 // KindBasicBackupConfigurationInfoKindPartition ... 1491 KindBasicBackupConfigurationInfoKindPartition KindBasicBackupConfigurationInfo = "Partition" 1492 // KindBasicBackupConfigurationInfoKindService ... 1493 KindBasicBackupConfigurationInfoKindService KindBasicBackupConfigurationInfo = "Service" 1494) 1495 1496// PossibleKindBasicBackupConfigurationInfoValues returns an array of possible values for the KindBasicBackupConfigurationInfo const type. 1497func PossibleKindBasicBackupConfigurationInfoValues() []KindBasicBackupConfigurationInfo { 1498 return []KindBasicBackupConfigurationInfo{KindBasicBackupConfigurationInfoKindApplication, KindBasicBackupConfigurationInfoKindBackupConfigurationInfo, KindBasicBackupConfigurationInfoKindPartition, KindBasicBackupConfigurationInfoKindService} 1499} 1500 1501// KindBasicChaosEvent enumerates the values for kind basic chaos event. 1502type KindBasicChaosEvent string 1503 1504const ( 1505 // KindChaosEvent ... 1506 KindChaosEvent KindBasicChaosEvent = "ChaosEvent" 1507 // KindExecutingFaults ... 1508 KindExecutingFaults KindBasicChaosEvent = "ExecutingFaults" 1509 // KindStarted ... 1510 KindStarted KindBasicChaosEvent = "Started" 1511 // KindStopped ... 1512 KindStopped KindBasicChaosEvent = "Stopped" 1513 // KindTestError ... 1514 KindTestError KindBasicChaosEvent = "TestError" 1515 // KindValidationFailed ... 1516 KindValidationFailed KindBasicChaosEvent = "ValidationFailed" 1517 // KindWaiting ... 1518 KindWaiting KindBasicChaosEvent = "Waiting" 1519) 1520 1521// PossibleKindBasicChaosEventValues returns an array of possible values for the KindBasicChaosEvent const type. 1522func PossibleKindBasicChaosEventValues() []KindBasicChaosEvent { 1523 return []KindBasicChaosEvent{KindChaosEvent, KindExecutingFaults, KindStarted, KindStopped, KindTestError, KindValidationFailed, KindWaiting} 1524} 1525 1526// KindBasicDiagnosticsSinkProperties enumerates the values for kind basic diagnostics sink properties. 1527type KindBasicDiagnosticsSinkProperties string 1528 1529const ( 1530 // KindAzureInternalMonitoringPipeline ... 1531 KindAzureInternalMonitoringPipeline KindBasicDiagnosticsSinkProperties = "AzureInternalMonitoringPipeline" 1532 // KindDiagnosticsSinkProperties ... 1533 KindDiagnosticsSinkProperties KindBasicDiagnosticsSinkProperties = "DiagnosticsSinkProperties" 1534) 1535 1536// PossibleKindBasicDiagnosticsSinkPropertiesValues returns an array of possible values for the KindBasicDiagnosticsSinkProperties const type. 1537func PossibleKindBasicDiagnosticsSinkPropertiesValues() []KindBasicDiagnosticsSinkProperties { 1538 return []KindBasicDiagnosticsSinkProperties{KindAzureInternalMonitoringPipeline, KindDiagnosticsSinkProperties} 1539} 1540 1541// KindBasicFabricEvent enumerates the values for kind basic fabric event. 1542type KindBasicFabricEvent string 1543 1544const ( 1545 // KindApplicationContainerInstanceExited ... 1546 KindApplicationContainerInstanceExited KindBasicFabricEvent = "ApplicationContainerInstanceExited" 1547 // KindApplicationCreated ... 1548 KindApplicationCreated KindBasicFabricEvent = "ApplicationCreated" 1549 // KindApplicationDeleted ... 1550 KindApplicationDeleted KindBasicFabricEvent = "ApplicationDeleted" 1551 // KindApplicationEvent ... 1552 KindApplicationEvent KindBasicFabricEvent = "ApplicationEvent" 1553 // KindApplicationHealthReportExpired ... 1554 KindApplicationHealthReportExpired KindBasicFabricEvent = "ApplicationHealthReportExpired" 1555 // KindApplicationNewHealthReport ... 1556 KindApplicationNewHealthReport KindBasicFabricEvent = "ApplicationNewHealthReport" 1557 // KindApplicationProcessExited ... 1558 KindApplicationProcessExited KindBasicFabricEvent = "ApplicationProcessExited" 1559 // KindApplicationUpgradeCompleted ... 1560 KindApplicationUpgradeCompleted KindBasicFabricEvent = "ApplicationUpgradeCompleted" 1561 // KindApplicationUpgradeDomainCompleted ... 1562 KindApplicationUpgradeDomainCompleted KindBasicFabricEvent = "ApplicationUpgradeDomainCompleted" 1563 // KindApplicationUpgradeRollbackCompleted ... 1564 KindApplicationUpgradeRollbackCompleted KindBasicFabricEvent = "ApplicationUpgradeRollbackCompleted" 1565 // KindApplicationUpgradeRollbackStarted ... 1566 KindApplicationUpgradeRollbackStarted KindBasicFabricEvent = "ApplicationUpgradeRollbackStarted" 1567 // KindApplicationUpgradeStarted ... 1568 KindApplicationUpgradeStarted KindBasicFabricEvent = "ApplicationUpgradeStarted" 1569 // KindChaosCodePackageRestartScheduled ... 1570 KindChaosCodePackageRestartScheduled KindBasicFabricEvent = "ChaosCodePackageRestartScheduled" 1571 // KindChaosNodeRestartScheduled ... 1572 KindChaosNodeRestartScheduled KindBasicFabricEvent = "ChaosNodeRestartScheduled" 1573 // KindChaosPartitionPrimaryMoveScheduled ... 1574 KindChaosPartitionPrimaryMoveScheduled KindBasicFabricEvent = "ChaosPartitionPrimaryMoveScheduled" 1575 // KindChaosPartitionSecondaryMoveScheduled ... 1576 KindChaosPartitionSecondaryMoveScheduled KindBasicFabricEvent = "ChaosPartitionSecondaryMoveScheduled" 1577 // KindChaosReplicaRemovalScheduled ... 1578 KindChaosReplicaRemovalScheduled KindBasicFabricEvent = "ChaosReplicaRemovalScheduled" 1579 // KindChaosReplicaRestartScheduled ... 1580 KindChaosReplicaRestartScheduled KindBasicFabricEvent = "ChaosReplicaRestartScheduled" 1581 // KindChaosStarted ... 1582 KindChaosStarted KindBasicFabricEvent = "ChaosStarted" 1583 // KindChaosStopped ... 1584 KindChaosStopped KindBasicFabricEvent = "ChaosStopped" 1585 // KindClusterEvent ... 1586 KindClusterEvent KindBasicFabricEvent = "ClusterEvent" 1587 // KindClusterHealthReportExpired ... 1588 KindClusterHealthReportExpired KindBasicFabricEvent = "ClusterHealthReportExpired" 1589 // KindClusterNewHealthReport ... 1590 KindClusterNewHealthReport KindBasicFabricEvent = "ClusterNewHealthReport" 1591 // KindClusterUpgradeCompleted ... 1592 KindClusterUpgradeCompleted KindBasicFabricEvent = "ClusterUpgradeCompleted" 1593 // KindClusterUpgradeDomainCompleted ... 1594 KindClusterUpgradeDomainCompleted KindBasicFabricEvent = "ClusterUpgradeDomainCompleted" 1595 // KindClusterUpgradeRollbackCompleted ... 1596 KindClusterUpgradeRollbackCompleted KindBasicFabricEvent = "ClusterUpgradeRollbackCompleted" 1597 // KindClusterUpgradeRollbackStarted ... 1598 KindClusterUpgradeRollbackStarted KindBasicFabricEvent = "ClusterUpgradeRollbackStarted" 1599 // KindClusterUpgradeStarted ... 1600 KindClusterUpgradeStarted KindBasicFabricEvent = "ClusterUpgradeStarted" 1601 // KindContainerInstanceEvent ... 1602 KindContainerInstanceEvent KindBasicFabricEvent = "ContainerInstanceEvent" 1603 // KindDeployedApplicationHealthReportExpired ... 1604 KindDeployedApplicationHealthReportExpired KindBasicFabricEvent = "DeployedApplicationHealthReportExpired" 1605 // KindDeployedApplicationNewHealthReport ... 1606 KindDeployedApplicationNewHealthReport KindBasicFabricEvent = "DeployedApplicationNewHealthReport" 1607 // KindDeployedServicePackageHealthReportExpired ... 1608 KindDeployedServicePackageHealthReportExpired KindBasicFabricEvent = "DeployedServicePackageHealthReportExpired" 1609 // KindDeployedServicePackageNewHealthReport ... 1610 KindDeployedServicePackageNewHealthReport KindBasicFabricEvent = "DeployedServicePackageNewHealthReport" 1611 // KindFabricEvent ... 1612 KindFabricEvent KindBasicFabricEvent = "FabricEvent" 1613 // KindNodeAborted ... 1614 KindNodeAborted KindBasicFabricEvent = "NodeAborted" 1615 // KindNodeAddedToCluster ... 1616 KindNodeAddedToCluster KindBasicFabricEvent = "NodeAddedToCluster" 1617 // KindNodeClosed ... 1618 KindNodeClosed KindBasicFabricEvent = "NodeClosed" 1619 // KindNodeDeactivateCompleted ... 1620 KindNodeDeactivateCompleted KindBasicFabricEvent = "NodeDeactivateCompleted" 1621 // KindNodeDeactivateStarted ... 1622 KindNodeDeactivateStarted KindBasicFabricEvent = "NodeDeactivateStarted" 1623 // KindNodeDown ... 1624 KindNodeDown KindBasicFabricEvent = "NodeDown" 1625 // KindNodeEvent ... 1626 KindNodeEvent KindBasicFabricEvent = "NodeEvent" 1627 // KindNodeHealthReportExpired ... 1628 KindNodeHealthReportExpired KindBasicFabricEvent = "NodeHealthReportExpired" 1629 // KindNodeNewHealthReport ... 1630 KindNodeNewHealthReport KindBasicFabricEvent = "NodeNewHealthReport" 1631 // KindNodeOpenFailed ... 1632 KindNodeOpenFailed KindBasicFabricEvent = "NodeOpenFailed" 1633 // KindNodeOpenSucceeded ... 1634 KindNodeOpenSucceeded KindBasicFabricEvent = "NodeOpenSucceeded" 1635 // KindNodeRemovedFromCluster ... 1636 KindNodeRemovedFromCluster KindBasicFabricEvent = "NodeRemovedFromCluster" 1637 // KindNodeUp ... 1638 KindNodeUp KindBasicFabricEvent = "NodeUp" 1639 // KindPartitionAnalysisEvent ... 1640 KindPartitionAnalysisEvent KindBasicFabricEvent = "PartitionAnalysisEvent" 1641 // KindPartitionEvent ... 1642 KindPartitionEvent KindBasicFabricEvent = "PartitionEvent" 1643 // KindPartitionHealthReportExpired ... 1644 KindPartitionHealthReportExpired KindBasicFabricEvent = "PartitionHealthReportExpired" 1645 // KindPartitionNewHealthReport ... 1646 KindPartitionNewHealthReport KindBasicFabricEvent = "PartitionNewHealthReport" 1647 // KindPartitionPrimaryMoveAnalysis ... 1648 KindPartitionPrimaryMoveAnalysis KindBasicFabricEvent = "PartitionPrimaryMoveAnalysis" 1649 // KindPartitionReconfigured ... 1650 KindPartitionReconfigured KindBasicFabricEvent = "PartitionReconfigured" 1651 // KindReplicaEvent ... 1652 KindReplicaEvent KindBasicFabricEvent = "ReplicaEvent" 1653 // KindServiceCreated ... 1654 KindServiceCreated KindBasicFabricEvent = "ServiceCreated" 1655 // KindServiceDeleted ... 1656 KindServiceDeleted KindBasicFabricEvent = "ServiceDeleted" 1657 // KindServiceEvent ... 1658 KindServiceEvent KindBasicFabricEvent = "ServiceEvent" 1659 // KindServiceHealthReportExpired ... 1660 KindServiceHealthReportExpired KindBasicFabricEvent = "ServiceHealthReportExpired" 1661 // KindServiceNewHealthReport ... 1662 KindServiceNewHealthReport KindBasicFabricEvent = "ServiceNewHealthReport" 1663 // KindStatefulReplicaHealthReportExpired ... 1664 KindStatefulReplicaHealthReportExpired KindBasicFabricEvent = "StatefulReplicaHealthReportExpired" 1665 // KindStatefulReplicaNewHealthReport ... 1666 KindStatefulReplicaNewHealthReport KindBasicFabricEvent = "StatefulReplicaNewHealthReport" 1667 // KindStatelessReplicaHealthReportExpired ... 1668 KindStatelessReplicaHealthReportExpired KindBasicFabricEvent = "StatelessReplicaHealthReportExpired" 1669 // KindStatelessReplicaNewHealthReport ... 1670 KindStatelessReplicaNewHealthReport KindBasicFabricEvent = "StatelessReplicaNewHealthReport" 1671) 1672 1673// PossibleKindBasicFabricEventValues returns an array of possible values for the KindBasicFabricEvent const type. 1674func PossibleKindBasicFabricEventValues() []KindBasicFabricEvent { 1675 return []KindBasicFabricEvent{KindApplicationContainerInstanceExited, KindApplicationCreated, KindApplicationDeleted, KindApplicationEvent, KindApplicationHealthReportExpired, KindApplicationNewHealthReport, KindApplicationProcessExited, KindApplicationUpgradeCompleted, KindApplicationUpgradeDomainCompleted, KindApplicationUpgradeRollbackCompleted, KindApplicationUpgradeRollbackStarted, KindApplicationUpgradeStarted, KindChaosCodePackageRestartScheduled, KindChaosNodeRestartScheduled, KindChaosPartitionPrimaryMoveScheduled, KindChaosPartitionSecondaryMoveScheduled, KindChaosReplicaRemovalScheduled, KindChaosReplicaRestartScheduled, KindChaosStarted, KindChaosStopped, KindClusterEvent, KindClusterHealthReportExpired, KindClusterNewHealthReport, KindClusterUpgradeCompleted, KindClusterUpgradeDomainCompleted, KindClusterUpgradeRollbackCompleted, KindClusterUpgradeRollbackStarted, KindClusterUpgradeStarted, KindContainerInstanceEvent, KindDeployedApplicationHealthReportExpired, KindDeployedApplicationNewHealthReport, KindDeployedServicePackageHealthReportExpired, KindDeployedServicePackageNewHealthReport, KindFabricEvent, KindNodeAborted, KindNodeAddedToCluster, KindNodeClosed, KindNodeDeactivateCompleted, KindNodeDeactivateStarted, KindNodeDown, KindNodeEvent, KindNodeHealthReportExpired, KindNodeNewHealthReport, KindNodeOpenFailed, KindNodeOpenSucceeded, KindNodeRemovedFromCluster, KindNodeUp, KindPartitionAnalysisEvent, KindPartitionEvent, KindPartitionHealthReportExpired, KindPartitionNewHealthReport, KindPartitionPrimaryMoveAnalysis, KindPartitionReconfigured, KindReplicaEvent, KindServiceCreated, KindServiceDeleted, KindServiceEvent, KindServiceHealthReportExpired, KindServiceNewHealthReport, KindStatefulReplicaHealthReportExpired, KindStatefulReplicaNewHealthReport, KindStatelessReplicaHealthReportExpired, KindStatelessReplicaNewHealthReport} 1676} 1677 1678// KindBasicNetworkResourcePropertiesBase enumerates the values for kind basic network resource properties 1679// base. 1680type KindBasicNetworkResourcePropertiesBase string 1681 1682const ( 1683 // KindLocal ... 1684 KindLocal KindBasicNetworkResourcePropertiesBase = "Local" 1685 // KindNetworkResourceProperties ... 1686 KindNetworkResourceProperties KindBasicNetworkResourcePropertiesBase = "NetworkResourceProperties" 1687 // KindNetworkResourcePropertiesBase ... 1688 KindNetworkResourcePropertiesBase KindBasicNetworkResourcePropertiesBase = "NetworkResourcePropertiesBase" 1689) 1690 1691// PossibleKindBasicNetworkResourcePropertiesBaseValues returns an array of possible values for the KindBasicNetworkResourcePropertiesBase const type. 1692func PossibleKindBasicNetworkResourcePropertiesBaseValues() []KindBasicNetworkResourcePropertiesBase { 1693 return []KindBasicNetworkResourcePropertiesBase{KindLocal, KindNetworkResourceProperties, KindNetworkResourcePropertiesBase} 1694} 1695 1696// KindBasicPropertyBatchInfo enumerates the values for kind basic property batch info. 1697type KindBasicPropertyBatchInfo string 1698 1699const ( 1700 // KindFailed ... 1701 KindFailed KindBasicPropertyBatchInfo = "Failed" 1702 // KindPropertyBatchInfo ... 1703 KindPropertyBatchInfo KindBasicPropertyBatchInfo = "PropertyBatchInfo" 1704 // KindSuccessful ... 1705 KindSuccessful KindBasicPropertyBatchInfo = "Successful" 1706) 1707 1708// PossibleKindBasicPropertyBatchInfoValues returns an array of possible values for the KindBasicPropertyBatchInfo const type. 1709func PossibleKindBasicPropertyBatchInfoValues() []KindBasicPropertyBatchInfo { 1710 return []KindBasicPropertyBatchInfo{KindFailed, KindPropertyBatchInfo, KindSuccessful} 1711} 1712 1713// KindBasicPropertyBatchOperation enumerates the values for kind basic property batch operation. 1714type KindBasicPropertyBatchOperation string 1715 1716const ( 1717 // KindCheckExists ... 1718 KindCheckExists KindBasicPropertyBatchOperation = "CheckExists" 1719 // KindCheckSequence ... 1720 KindCheckSequence KindBasicPropertyBatchOperation = "CheckSequence" 1721 // KindCheckValue ... 1722 KindCheckValue KindBasicPropertyBatchOperation = "CheckValue" 1723 // KindDelete ... 1724 KindDelete KindBasicPropertyBatchOperation = "Delete" 1725 // KindGet ... 1726 KindGet KindBasicPropertyBatchOperation = "Get" 1727 // KindPropertyBatchOperation ... 1728 KindPropertyBatchOperation KindBasicPropertyBatchOperation = "PropertyBatchOperation" 1729 // KindPut ... 1730 KindPut KindBasicPropertyBatchOperation = "Put" 1731) 1732 1733// PossibleKindBasicPropertyBatchOperationValues returns an array of possible values for the KindBasicPropertyBatchOperation const type. 1734func PossibleKindBasicPropertyBatchOperationValues() []KindBasicPropertyBatchOperation { 1735 return []KindBasicPropertyBatchOperation{KindCheckExists, KindCheckSequence, KindCheckValue, KindDelete, KindGet, KindPropertyBatchOperation, KindPut} 1736} 1737 1738// KindBasicPropertyValue enumerates the values for kind basic property value. 1739type KindBasicPropertyValue string 1740 1741const ( 1742 // KindBinary ... 1743 KindBinary KindBasicPropertyValue = "Binary" 1744 // KindDouble ... 1745 KindDouble KindBasicPropertyValue = "Double" 1746 // KindGUID ... 1747 KindGUID KindBasicPropertyValue = "Guid" 1748 // KindInt64 ... 1749 KindInt64 KindBasicPropertyValue = "Int64" 1750 // KindPropertyValue ... 1751 KindPropertyValue KindBasicPropertyValue = "PropertyValue" 1752 // KindString ... 1753 KindString KindBasicPropertyValue = "String" 1754) 1755 1756// PossibleKindBasicPropertyValueValues returns an array of possible values for the KindBasicPropertyValue const type. 1757func PossibleKindBasicPropertyValueValues() []KindBasicPropertyValue { 1758 return []KindBasicPropertyValue{KindBinary, KindDouble, KindGUID, KindInt64, KindPropertyValue, KindString} 1759} 1760 1761// KindBasicProvisionApplicationTypeDescriptionBase enumerates the values for kind basic provision application 1762// type description base. 1763type KindBasicProvisionApplicationTypeDescriptionBase string 1764 1765const ( 1766 // KindExternalStore ... 1767 KindExternalStore KindBasicProvisionApplicationTypeDescriptionBase = "ExternalStore" 1768 // KindImageStorePath ... 1769 KindImageStorePath KindBasicProvisionApplicationTypeDescriptionBase = "ImageStorePath" 1770 // KindProvisionApplicationTypeDescriptionBase ... 1771 KindProvisionApplicationTypeDescriptionBase KindBasicProvisionApplicationTypeDescriptionBase = "ProvisionApplicationTypeDescriptionBase" 1772) 1773 1774// PossibleKindBasicProvisionApplicationTypeDescriptionBaseValues returns an array of possible values for the KindBasicProvisionApplicationTypeDescriptionBase const type. 1775func PossibleKindBasicProvisionApplicationTypeDescriptionBaseValues() []KindBasicProvisionApplicationTypeDescriptionBase { 1776 return []KindBasicProvisionApplicationTypeDescriptionBase{KindExternalStore, KindImageStorePath, KindProvisionApplicationTypeDescriptionBase} 1777} 1778 1779// KindBasicRepairImpactDescriptionBase enumerates the values for kind basic repair impact description base. 1780type KindBasicRepairImpactDescriptionBase string 1781 1782const ( 1783 // KindBasicRepairImpactDescriptionBaseKindNode ... 1784 KindBasicRepairImpactDescriptionBaseKindNode KindBasicRepairImpactDescriptionBase = "Node" 1785 // KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase ... 1786 KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase KindBasicRepairImpactDescriptionBase = "RepairImpactDescriptionBase" 1787) 1788 1789// PossibleKindBasicRepairImpactDescriptionBaseValues returns an array of possible values for the KindBasicRepairImpactDescriptionBase const type. 1790func PossibleKindBasicRepairImpactDescriptionBaseValues() []KindBasicRepairImpactDescriptionBase { 1791 return []KindBasicRepairImpactDescriptionBase{KindBasicRepairImpactDescriptionBaseKindNode, KindBasicRepairImpactDescriptionBaseKindRepairImpactDescriptionBase} 1792} 1793 1794// KindBasicRepairTargetDescriptionBase enumerates the values for kind basic repair target description base. 1795type KindBasicRepairTargetDescriptionBase string 1796 1797const ( 1798 // KindBasicRepairTargetDescriptionBaseKindNode ... 1799 KindBasicRepairTargetDescriptionBaseKindNode KindBasicRepairTargetDescriptionBase = "Node" 1800 // KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase ... 1801 KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase KindBasicRepairTargetDescriptionBase = "RepairTargetDescriptionBase" 1802) 1803 1804// PossibleKindBasicRepairTargetDescriptionBaseValues returns an array of possible values for the KindBasicRepairTargetDescriptionBase const type. 1805func PossibleKindBasicRepairTargetDescriptionBaseValues() []KindBasicRepairTargetDescriptionBase { 1806 return []KindBasicRepairTargetDescriptionBase{KindBasicRepairTargetDescriptionBaseKindNode, KindBasicRepairTargetDescriptionBaseKindRepairTargetDescriptionBase} 1807} 1808 1809// KindBasicReplicaStatusBase enumerates the values for kind basic replica status base. 1810type KindBasicReplicaStatusBase string 1811 1812const ( 1813 // KindKeyValueStore ... 1814 KindKeyValueStore KindBasicReplicaStatusBase = "KeyValueStore" 1815 // KindReplicaStatusBase ... 1816 KindReplicaStatusBase KindBasicReplicaStatusBase = "ReplicaStatusBase" 1817) 1818 1819// PossibleKindBasicReplicaStatusBaseValues returns an array of possible values for the KindBasicReplicaStatusBase const type. 1820func PossibleKindBasicReplicaStatusBaseValues() []KindBasicReplicaStatusBase { 1821 return []KindBasicReplicaStatusBase{KindKeyValueStore, KindReplicaStatusBase} 1822} 1823 1824// KindBasicReplicatorStatus enumerates the values for kind basic replicator status. 1825type KindBasicReplicatorStatus string 1826 1827const ( 1828 // KindActiveSecondary ... 1829 KindActiveSecondary KindBasicReplicatorStatus = "ActiveSecondary" 1830 // KindIdleSecondary ... 1831 KindIdleSecondary KindBasicReplicatorStatus = "IdleSecondary" 1832 // KindPrimary ... 1833 KindPrimary KindBasicReplicatorStatus = "Primary" 1834 // KindReplicatorStatus ... 1835 KindReplicatorStatus KindBasicReplicatorStatus = "ReplicatorStatus" 1836 // KindSecondaryReplicatorStatus ... 1837 KindSecondaryReplicatorStatus KindBasicReplicatorStatus = "SecondaryReplicatorStatus" 1838) 1839 1840// PossibleKindBasicReplicatorStatusValues returns an array of possible values for the KindBasicReplicatorStatus const type. 1841func PossibleKindBasicReplicatorStatusValues() []KindBasicReplicatorStatus { 1842 return []KindBasicReplicatorStatus{KindActiveSecondary, KindIdleSecondary, KindPrimary, KindReplicatorStatus, KindSecondaryReplicatorStatus} 1843} 1844 1845// KindBasicSafetyCheck enumerates the values for kind basic safety check. 1846type KindBasicSafetyCheck string 1847 1848const ( 1849 // KindEnsureAvailability ... 1850 KindEnsureAvailability KindBasicSafetyCheck = "EnsureAvailability" 1851 // KindEnsurePartitionQuorum ... 1852 KindEnsurePartitionQuorum KindBasicSafetyCheck = "EnsurePartitionQuorum" 1853 // KindEnsureSeedNodeQuorum ... 1854 KindEnsureSeedNodeQuorum KindBasicSafetyCheck = "EnsureSeedNodeQuorum" 1855 // KindPartitionSafetyCheck ... 1856 KindPartitionSafetyCheck KindBasicSafetyCheck = "PartitionSafetyCheck" 1857 // KindSafetyCheck ... 1858 KindSafetyCheck KindBasicSafetyCheck = "SafetyCheck" 1859 // KindWaitForInbuildReplica ... 1860 KindWaitForInbuildReplica KindBasicSafetyCheck = "WaitForInbuildReplica" 1861 // KindWaitForPrimaryPlacement ... 1862 KindWaitForPrimaryPlacement KindBasicSafetyCheck = "WaitForPrimaryPlacement" 1863 // KindWaitForPrimarySwap ... 1864 KindWaitForPrimarySwap KindBasicSafetyCheck = "WaitForPrimarySwap" 1865 // KindWaitForReconfiguration ... 1866 KindWaitForReconfiguration KindBasicSafetyCheck = "WaitForReconfiguration" 1867) 1868 1869// PossibleKindBasicSafetyCheckValues returns an array of possible values for the KindBasicSafetyCheck const type. 1870func PossibleKindBasicSafetyCheckValues() []KindBasicSafetyCheck { 1871 return []KindBasicSafetyCheck{KindEnsureAvailability, KindEnsurePartitionQuorum, KindEnsureSeedNodeQuorum, KindPartitionSafetyCheck, KindSafetyCheck, KindWaitForInbuildReplica, KindWaitForPrimaryPlacement, KindWaitForPrimarySwap, KindWaitForReconfiguration} 1872} 1873 1874// KindBasicScalingMechanismDescription enumerates the values for kind basic scaling mechanism description. 1875type KindBasicScalingMechanismDescription string 1876 1877const ( 1878 // KindAddRemoveIncrementalNamedPartition ... 1879 KindAddRemoveIncrementalNamedPartition KindBasicScalingMechanismDescription = "AddRemoveIncrementalNamedPartition" 1880 // KindPartitionInstanceCount ... 1881 KindPartitionInstanceCount KindBasicScalingMechanismDescription = "PartitionInstanceCount" 1882 // KindScalingMechanismDescription ... 1883 KindScalingMechanismDescription KindBasicScalingMechanismDescription = "ScalingMechanismDescription" 1884) 1885 1886// PossibleKindBasicScalingMechanismDescriptionValues returns an array of possible values for the KindBasicScalingMechanismDescription const type. 1887func PossibleKindBasicScalingMechanismDescriptionValues() []KindBasicScalingMechanismDescription { 1888 return []KindBasicScalingMechanismDescription{KindAddRemoveIncrementalNamedPartition, KindPartitionInstanceCount, KindScalingMechanismDescription} 1889} 1890 1891// KindBasicScalingTriggerDescription enumerates the values for kind basic scaling trigger description. 1892type KindBasicScalingTriggerDescription string 1893 1894const ( 1895 // KindAveragePartitionLoad ... 1896 KindAveragePartitionLoad KindBasicScalingTriggerDescription = "AveragePartitionLoad" 1897 // KindAverageServiceLoad ... 1898 KindAverageServiceLoad KindBasicScalingTriggerDescription = "AverageServiceLoad" 1899 // KindScalingTriggerDescription ... 1900 KindScalingTriggerDescription KindBasicScalingTriggerDescription = "ScalingTriggerDescription" 1901) 1902 1903// PossibleKindBasicScalingTriggerDescriptionValues returns an array of possible values for the KindBasicScalingTriggerDescription const type. 1904func PossibleKindBasicScalingTriggerDescriptionValues() []KindBasicScalingTriggerDescription { 1905 return []KindBasicScalingTriggerDescription{KindAveragePartitionLoad, KindAverageServiceLoad, KindScalingTriggerDescription} 1906} 1907 1908// KindBasicSecretResourcePropertiesBase enumerates the values for kind basic secret resource properties base. 1909type KindBasicSecretResourcePropertiesBase string 1910 1911const ( 1912 // KindInlinedValue ... 1913 KindInlinedValue KindBasicSecretResourcePropertiesBase = "inlinedValue" 1914 // KindSecretResourceProperties ... 1915 KindSecretResourceProperties KindBasicSecretResourcePropertiesBase = "SecretResourceProperties" 1916 // KindSecretResourcePropertiesBase ... 1917 KindSecretResourcePropertiesBase KindBasicSecretResourcePropertiesBase = "SecretResourcePropertiesBase" 1918) 1919 1920// PossibleKindBasicSecretResourcePropertiesBaseValues returns an array of possible values for the KindBasicSecretResourcePropertiesBase const type. 1921func PossibleKindBasicSecretResourcePropertiesBaseValues() []KindBasicSecretResourcePropertiesBase { 1922 return []KindBasicSecretResourcePropertiesBase{KindInlinedValue, KindSecretResourceProperties, KindSecretResourcePropertiesBase} 1923} 1924 1925// KindBasicServiceTypeDescription enumerates the values for kind basic service type description. 1926type KindBasicServiceTypeDescription string 1927 1928const ( 1929 // KindServiceTypeDescription ... 1930 KindServiceTypeDescription KindBasicServiceTypeDescription = "ServiceTypeDescription" 1931 // KindStateful ... 1932 KindStateful KindBasicServiceTypeDescription = "Stateful" 1933 // KindStateless ... 1934 KindStateless KindBasicServiceTypeDescription = "Stateless" 1935) 1936 1937// PossibleKindBasicServiceTypeDescriptionValues returns an array of possible values for the KindBasicServiceTypeDescription const type. 1938func PossibleKindBasicServiceTypeDescriptionValues() []KindBasicServiceTypeDescription { 1939 return []KindBasicServiceTypeDescription{KindServiceTypeDescription, KindStateful, KindStateless} 1940} 1941 1942// MoveCost enumerates the values for move cost. 1943type MoveCost string 1944 1945const ( 1946 // High Specifies the move cost of the service as High. The value is 3. 1947 High MoveCost = "High" 1948 // Low Specifies the move cost of the service as Low. The value is 1. 1949 Low MoveCost = "Low" 1950 // Medium Specifies the move cost of the service as Medium. The value is 2. 1951 Medium MoveCost = "Medium" 1952 // VeryHigh Specifies the move cost of the service as VeryHigh. The value is 4. 1953 VeryHigh MoveCost = "VeryHigh" 1954 // Zero Zero move cost. This value is zero. 1955 Zero MoveCost = "Zero" 1956) 1957 1958// PossibleMoveCostValues returns an array of possible values for the MoveCost const type. 1959func PossibleMoveCostValues() []MoveCost { 1960 return []MoveCost{High, Low, Medium, VeryHigh, Zero} 1961} 1962 1963// NetworkKind enumerates the values for network kind. 1964type NetworkKind string 1965 1966const ( 1967 // Local Indicates a container network local to a single Service Fabric cluster. The value is 1. 1968 Local NetworkKind = "Local" 1969) 1970 1971// PossibleNetworkKindValues returns an array of possible values for the NetworkKind const type. 1972func PossibleNetworkKindValues() []NetworkKind { 1973 return []NetworkKind{Local} 1974} 1975 1976// NodeDeactivationIntent enumerates the values for node deactivation intent. 1977type NodeDeactivationIntent string 1978 1979const ( 1980 // NodeDeactivationIntentInvalid Indicates the node deactivation intent is invalid. All Service Fabric 1981 // enumerations have the invalid type. The value is zero. This value is not used. 1982 NodeDeactivationIntentInvalid NodeDeactivationIntent = "Invalid" 1983 // NodeDeactivationIntentPause Indicates that the node should be paused. The value is 1. 1984 NodeDeactivationIntentPause NodeDeactivationIntent = "Pause" 1985 // NodeDeactivationIntentRemoveData Indicates that the intent is to reimage the node. Service Fabric does 1986 // not reimage the node, this action is done outside of Service Fabric. The value is 3. 1987 NodeDeactivationIntentRemoveData NodeDeactivationIntent = "RemoveData" 1988 // NodeDeactivationIntentRemoveNode Indicates that the node is being decommissioned and is not expected to 1989 // return. Service Fabric does not decommission the node, this action is done outside of Service Fabric. 1990 // The value is 4. 1991 NodeDeactivationIntentRemoveNode NodeDeactivationIntent = "RemoveNode" 1992 // NodeDeactivationIntentRestart Indicates that the intent is for the node to be restarted after a short 1993 // period of time. Service Fabric does not restart the node, this action is done outside of Service Fabric. 1994 // The value is 2. 1995 NodeDeactivationIntentRestart NodeDeactivationIntent = "Restart" 1996) 1997 1998// PossibleNodeDeactivationIntentValues returns an array of possible values for the NodeDeactivationIntent const type. 1999func PossibleNodeDeactivationIntentValues() []NodeDeactivationIntent { 2000 return []NodeDeactivationIntent{NodeDeactivationIntentInvalid, NodeDeactivationIntentPause, NodeDeactivationIntentRemoveData, NodeDeactivationIntentRemoveNode, NodeDeactivationIntentRestart} 2001} 2002 2003// NodeDeactivationStatus enumerates the values for node deactivation status. 2004type NodeDeactivationStatus string 2005 2006const ( 2007 // NodeDeactivationStatusCompleted The task is completed. The value is 3. 2008 NodeDeactivationStatusCompleted NodeDeactivationStatus = "Completed" 2009 // NodeDeactivationStatusNone No status is associated with the task. The value is zero. 2010 NodeDeactivationStatusNone NodeDeactivationStatus = "None" 2011 // NodeDeactivationStatusSafetyCheckComplete When a node is deactivated Service Fabric performs checks to 2012 // ensure that the operation is safe to proceed to ensure availability of the service and reliability of 2013 // the state. This value indicates that all safety checks have been completed. The value is 2. 2014 NodeDeactivationStatusSafetyCheckComplete NodeDeactivationStatus = "SafetyCheckComplete" 2015 // NodeDeactivationStatusSafetyCheckInProgress When a node is deactivated Service Fabric performs checks to 2016 // ensure that the operation is safe to proceed to ensure availability of the service and reliability of 2017 // the state. This value indicates that one or more safety checks are in progress. The value is 1. 2018 NodeDeactivationStatusSafetyCheckInProgress NodeDeactivationStatus = "SafetyCheckInProgress" 2019) 2020 2021// PossibleNodeDeactivationStatusValues returns an array of possible values for the NodeDeactivationStatus const type. 2022func PossibleNodeDeactivationStatusValues() []NodeDeactivationStatus { 2023 return []NodeDeactivationStatus{NodeDeactivationStatusCompleted, NodeDeactivationStatusNone, NodeDeactivationStatusSafetyCheckComplete, NodeDeactivationStatusSafetyCheckInProgress} 2024} 2025 2026// NodeDeactivationTaskType enumerates the values for node deactivation task type. 2027type NodeDeactivationTaskType string 2028 2029const ( 2030 // NodeDeactivationTaskTypeClient Specifies that the task was created by using the public API. The value is 2031 // 3. 2032 NodeDeactivationTaskTypeClient NodeDeactivationTaskType = "Client" 2033 // NodeDeactivationTaskTypeInfrastructure Specifies the task created by Infrastructure hosting the nodes. 2034 // The value is 1. 2035 NodeDeactivationTaskTypeInfrastructure NodeDeactivationTaskType = "Infrastructure" 2036 // NodeDeactivationTaskTypeInvalid Indicates the node deactivation task type is invalid. All Service Fabric 2037 // enumerations have the invalid type. The value is zero. This value is not used. 2038 NodeDeactivationTaskTypeInvalid NodeDeactivationTaskType = "Invalid" 2039 // NodeDeactivationTaskTypeRepair Specifies the task that was created by the Repair Manager service. The 2040 // value is 2. 2041 NodeDeactivationTaskTypeRepair NodeDeactivationTaskType = "Repair" 2042) 2043 2044// PossibleNodeDeactivationTaskTypeValues returns an array of possible values for the NodeDeactivationTaskType const type. 2045func PossibleNodeDeactivationTaskTypeValues() []NodeDeactivationTaskType { 2046 return []NodeDeactivationTaskType{NodeDeactivationTaskTypeClient, NodeDeactivationTaskTypeInfrastructure, NodeDeactivationTaskTypeInvalid, NodeDeactivationTaskTypeRepair} 2047} 2048 2049// NodeStatus enumerates the values for node status. 2050type NodeStatus string 2051 2052const ( 2053 // NodeStatusDisabled Indicates the node is disabled. The value is 5. 2054 NodeStatusDisabled NodeStatus = "Disabled" 2055 // NodeStatusDisabling Indicates the node is in the process of being disabled. The value is 4. 2056 NodeStatusDisabling NodeStatus = "Disabling" 2057 // NodeStatusDown Indicates the node is down. The value is 2. 2058 NodeStatusDown NodeStatus = "Down" 2059 // NodeStatusEnabling Indicates the node is in process of being enabled. The value is 3. 2060 NodeStatusEnabling NodeStatus = "Enabling" 2061 // NodeStatusInvalid Indicates the node status is invalid. All Service Fabric enumerations have the invalid 2062 // type. The value is zero. 2063 NodeStatusInvalid NodeStatus = "Invalid" 2064 // NodeStatusRemoved Indicates the node is removed. A node would be in Removed state if NodeStateRemoved 2065 // API has been called for this node. In other words, Service Fabric has been informed that the persisted 2066 // state on the node has been permanently lost. The value is 7. 2067 NodeStatusRemoved NodeStatus = "Removed" 2068 // NodeStatusUnknown Indicates the node is unknown. A node would be in Unknown state if Service Fabric does 2069 // not have authoritative information about that node. This can happen if the system learns about a node at 2070 // runtime.The value is 6. 2071 NodeStatusUnknown NodeStatus = "Unknown" 2072 // NodeStatusUp Indicates the node is up. The value is 1. 2073 NodeStatusUp NodeStatus = "Up" 2074) 2075 2076// PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type. 2077func PossibleNodeStatusValues() []NodeStatus { 2078 return []NodeStatus{NodeStatusDisabled, NodeStatusDisabling, NodeStatusDown, NodeStatusEnabling, NodeStatusInvalid, NodeStatusRemoved, NodeStatusUnknown, NodeStatusUp} 2079} 2080 2081// NodeStatusFilter enumerates the values for node status filter. 2082type NodeStatusFilter string 2083 2084const ( 2085 // NodeStatusFilterAll This filter value will match all of the nodes. 2086 NodeStatusFilterAll NodeStatusFilter = "all" 2087 // NodeStatusFilterDefault This filter value will match all of the nodes excepts the ones with status as 2088 // Unknown or Removed. 2089 NodeStatusFilterDefault NodeStatusFilter = "default" 2090 // NodeStatusFilterDisabled This filter value will match nodes that are Disabled. 2091 NodeStatusFilterDisabled NodeStatusFilter = "disabled" 2092 // NodeStatusFilterDisabling This filter value will match nodes that are in the process of being disabled 2093 // with status as Disabling. 2094 NodeStatusFilterDisabling NodeStatusFilter = "disabling" 2095 // NodeStatusFilterDown This filter value will match nodes that are Down. 2096 NodeStatusFilterDown NodeStatusFilter = "down" 2097 // NodeStatusFilterEnabling This filter value will match nodes that are in the process of being enabled 2098 // with status as Enabling. 2099 NodeStatusFilterEnabling NodeStatusFilter = "enabling" 2100 // NodeStatusFilterRemoved This filter value will match nodes whose status is Removed. These are the nodes 2101 // that are removed from the cluster using the RemoveNodeState API. 2102 NodeStatusFilterRemoved NodeStatusFilter = "removed" 2103 // NodeStatusFilterUnknown This filter value will match nodes whose status is Unknown. A node would be in 2104 // Unknown state if Service Fabric does not have authoritative information about that node. This can happen 2105 // if the system learns about a node at runtime. 2106 NodeStatusFilterUnknown NodeStatusFilter = "unknown" 2107 // NodeStatusFilterUp This filter value will match nodes that are Up. 2108 NodeStatusFilterUp NodeStatusFilter = "up" 2109) 2110 2111// PossibleNodeStatusFilterValues returns an array of possible values for the NodeStatusFilter const type. 2112func PossibleNodeStatusFilterValues() []NodeStatusFilter { 2113 return []NodeStatusFilter{NodeStatusFilterAll, NodeStatusFilterDefault, NodeStatusFilterDisabled, NodeStatusFilterDisabling, NodeStatusFilterDown, NodeStatusFilterEnabling, NodeStatusFilterRemoved, NodeStatusFilterUnknown, NodeStatusFilterUp} 2114} 2115 2116// NodeTransitionType enumerates the values for node transition type. 2117type NodeTransitionType string 2118 2119const ( 2120 // NodeTransitionTypeInvalid Reserved. Do not pass into API. 2121 NodeTransitionTypeInvalid NodeTransitionType = "Invalid" 2122 // NodeTransitionTypeStart Transition a stopped node to up. 2123 NodeTransitionTypeStart NodeTransitionType = "Start" 2124 // NodeTransitionTypeStop Transition an up node to stopped. 2125 NodeTransitionTypeStop NodeTransitionType = "Stop" 2126) 2127 2128// PossibleNodeTransitionTypeValues returns an array of possible values for the NodeTransitionType const type. 2129func PossibleNodeTransitionTypeValues() []NodeTransitionType { 2130 return []NodeTransitionType{NodeTransitionTypeInvalid, NodeTransitionTypeStart, NodeTransitionTypeStop} 2131} 2132 2133// NodeUpgradePhase enumerates the values for node upgrade phase. 2134type NodeUpgradePhase string 2135 2136const ( 2137 // NodeUpgradePhaseInvalid Indicates the upgrade state is invalid. All Service Fabric enumerations have the 2138 // invalid type. The value is zero. 2139 NodeUpgradePhaseInvalid NodeUpgradePhase = "Invalid" 2140 // NodeUpgradePhasePostUpgradeSafetyCheck The upgrade has completed and post upgrade safety checks are 2141 // being performed. The value is 3 2142 NodeUpgradePhasePostUpgradeSafetyCheck NodeUpgradePhase = "PostUpgradeSafetyCheck" 2143 // NodeUpgradePhasePreUpgradeSafetyCheck The upgrade has not started yet due to pending safety checks. The 2144 // value is 1 2145 NodeUpgradePhasePreUpgradeSafetyCheck NodeUpgradePhase = "PreUpgradeSafetyCheck" 2146 // NodeUpgradePhaseUpgrading The upgrade is in progress. The value is 2 2147 NodeUpgradePhaseUpgrading NodeUpgradePhase = "Upgrading" 2148) 2149 2150// PossibleNodeUpgradePhaseValues returns an array of possible values for the NodeUpgradePhase const type. 2151func PossibleNodeUpgradePhaseValues() []NodeUpgradePhase { 2152 return []NodeUpgradePhase{NodeUpgradePhaseInvalid, NodeUpgradePhasePostUpgradeSafetyCheck, NodeUpgradePhasePreUpgradeSafetyCheck, NodeUpgradePhaseUpgrading} 2153} 2154 2155// OperatingSystemType enumerates the values for operating system type. 2156type OperatingSystemType string 2157 2158const ( 2159 // Linux The required operating system is Linux. 2160 Linux OperatingSystemType = "Linux" 2161 // Windows The required operating system is Windows. 2162 Windows OperatingSystemType = "Windows" 2163) 2164 2165// PossibleOperatingSystemTypeValues returns an array of possible values for the OperatingSystemType const type. 2166func PossibleOperatingSystemTypeValues() []OperatingSystemType { 2167 return []OperatingSystemType{Linux, Windows} 2168} 2169 2170// OperationState enumerates the values for operation state. 2171type OperationState string 2172 2173const ( 2174 // OperationStateCancelled The operation was cancelled by the user using CancelOperation, and is no longer 2175 // running. 2176 OperationStateCancelled OperationState = "Cancelled" 2177 // OperationStateCompleted The operation has completed successfully and is no longer running. 2178 OperationStateCompleted OperationState = "Completed" 2179 // OperationStateFaulted The operation has failed and is no longer running. 2180 OperationStateFaulted OperationState = "Faulted" 2181 // OperationStateForceCancelled The operation was cancelled by the user using CancelOperation, with the 2182 // force parameter set to true. It is no longer running. Refer to CancelOperation for more details. 2183 OperationStateForceCancelled OperationState = "ForceCancelled" 2184 // OperationStateInvalid The operation state is invalid. 2185 OperationStateInvalid OperationState = "Invalid" 2186 // OperationStateRollingBack The operation is rolling back internal system state because it encountered a 2187 // fatal error or was cancelled by the user. "RollingBack" does not refer to user state. For example, 2188 // if CancelOperation is called on a command of type PartitionDataLoss, state of "RollingBack" does not 2189 // mean service data is being restored (assuming the command has progressed far enough to cause data loss). 2190 // It means the system is rolling back/cleaning up internal system state associated with the command. 2191 OperationStateRollingBack OperationState = "RollingBack" 2192 // OperationStateRunning The operation is in progress. 2193 OperationStateRunning OperationState = "Running" 2194) 2195 2196// PossibleOperationStateValues returns an array of possible values for the OperationState const type. 2197func PossibleOperationStateValues() []OperationState { 2198 return []OperationState{OperationStateCancelled, OperationStateCompleted, OperationStateFaulted, OperationStateForceCancelled, OperationStateInvalid, OperationStateRollingBack, OperationStateRunning} 2199} 2200 2201// OperationType enumerates the values for operation type. 2202type OperationType string 2203 2204const ( 2205 // OperationTypeInvalid The operation state is invalid. 2206 OperationTypeInvalid OperationType = "Invalid" 2207 // OperationTypeNodeTransition An operation started using the StartNodeTransition API. 2208 OperationTypeNodeTransition OperationType = "NodeTransition" 2209 // OperationTypePartitionDataLoss An operation started using the StartDataLoss API. 2210 OperationTypePartitionDataLoss OperationType = "PartitionDataLoss" 2211 // OperationTypePartitionQuorumLoss An operation started using the StartQuorumLoss API. 2212 OperationTypePartitionQuorumLoss OperationType = "PartitionQuorumLoss" 2213 // OperationTypePartitionRestart An operation started using the StartPartitionRestart API. 2214 OperationTypePartitionRestart OperationType = "PartitionRestart" 2215) 2216 2217// PossibleOperationTypeValues returns an array of possible values for the OperationType const type. 2218func PossibleOperationTypeValues() []OperationType { 2219 return []OperationType{OperationTypeInvalid, OperationTypeNodeTransition, OperationTypePartitionDataLoss, OperationTypePartitionQuorumLoss, OperationTypePartitionRestart} 2220} 2221 2222// PackageSharingPolicyScope enumerates the values for package sharing policy scope. 2223type PackageSharingPolicyScope string 2224 2225const ( 2226 // PackageSharingPolicyScopeAll Share all code, config and data packages from corresponding service 2227 // manifest. The value is 1. 2228 PackageSharingPolicyScopeAll PackageSharingPolicyScope = "All" 2229 // PackageSharingPolicyScopeCode Share all code packages from corresponding service manifest. The value is 2230 // 2. 2231 PackageSharingPolicyScopeCode PackageSharingPolicyScope = "Code" 2232 // PackageSharingPolicyScopeConfig Share all config packages from corresponding service manifest. The value 2233 // is 3. 2234 PackageSharingPolicyScopeConfig PackageSharingPolicyScope = "Config" 2235 // PackageSharingPolicyScopeData Share all data packages from corresponding service manifest. The value is 2236 // 4. 2237 PackageSharingPolicyScopeData PackageSharingPolicyScope = "Data" 2238 // PackageSharingPolicyScopeNone No package sharing policy scope. The value is 0. 2239 PackageSharingPolicyScopeNone PackageSharingPolicyScope = "None" 2240) 2241 2242// PossiblePackageSharingPolicyScopeValues returns an array of possible values for the PackageSharingPolicyScope const type. 2243func PossiblePackageSharingPolicyScopeValues() []PackageSharingPolicyScope { 2244 return []PackageSharingPolicyScope{PackageSharingPolicyScopeAll, PackageSharingPolicyScopeCode, PackageSharingPolicyScopeConfig, PackageSharingPolicyScopeData, PackageSharingPolicyScopeNone} 2245} 2246 2247// PartitionAccessStatus enumerates the values for partition access status. 2248type PartitionAccessStatus string 2249 2250const ( 2251 // PartitionAccessStatusGranted Indicates that the read or write operation access is granted and the 2252 // operation is allowed. 2253 PartitionAccessStatusGranted PartitionAccessStatus = "Granted" 2254 // PartitionAccessStatusInvalid Indicates that the read or write operation access status is not valid. This 2255 // value is not returned to the caller. 2256 PartitionAccessStatusInvalid PartitionAccessStatus = "Invalid" 2257 // PartitionAccessStatusNotPrimary Indicates that this client request was received by a replica that is not 2258 // a Primary replica. 2259 PartitionAccessStatusNotPrimary PartitionAccessStatus = "NotPrimary" 2260 // PartitionAccessStatusNoWriteQuorum Indicates that no write quorum is available and, therefore, no write 2261 // operation can be accepted. 2262 PartitionAccessStatusNoWriteQuorum PartitionAccessStatus = "NoWriteQuorum" 2263 // PartitionAccessStatusReconfigurationPending Indicates that the client should try again later, because a 2264 // reconfiguration is in progress. 2265 PartitionAccessStatusReconfigurationPending PartitionAccessStatus = "ReconfigurationPending" 2266) 2267 2268// PossiblePartitionAccessStatusValues returns an array of possible values for the PartitionAccessStatus const type. 2269func PossiblePartitionAccessStatusValues() []PartitionAccessStatus { 2270 return []PartitionAccessStatus{PartitionAccessStatusGranted, PartitionAccessStatusInvalid, PartitionAccessStatusNotPrimary, PartitionAccessStatusNoWriteQuorum, PartitionAccessStatusReconfigurationPending} 2271} 2272 2273// PartitionScheme enumerates the values for partition scheme. 2274type PartitionScheme string 2275 2276const ( 2277 // PartitionSchemeInvalid Indicates the partition kind is invalid. All Service Fabric enumerations have the 2278 // invalid type. The value is zero. 2279 PartitionSchemeInvalid PartitionScheme = "Invalid" 2280 // PartitionSchemeNamed Indicates that the partition is based on string names, and is a 2281 // NamedPartitionSchemeDescription object. The value is 3 2282 PartitionSchemeNamed PartitionScheme = "Named" 2283 // PartitionSchemeSingleton Indicates that the partition is based on string names, and is a 2284 // SingletonPartitionSchemeDescription object, The value is 1. 2285 PartitionSchemeSingleton PartitionScheme = "Singleton" 2286 // PartitionSchemeUniformInt64Range Indicates that the partition is based on Int64 key ranges, and is a 2287 // UniformInt64RangePartitionSchemeDescription object. The value is 2. 2288 PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range" 2289) 2290 2291// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. 2292func PossiblePartitionSchemeValues() []PartitionScheme { 2293 return []PartitionScheme{PartitionSchemeInvalid, PartitionSchemeNamed, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} 2294} 2295 2296// PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition 2297// scheme description. 2298type PartitionSchemeBasicPartitionSchemeDescription string 2299 2300const ( 2301 // PartitionSchemeNamed1 ... 2302 PartitionSchemeNamed1 PartitionSchemeBasicPartitionSchemeDescription = "Named" 2303 // PartitionSchemePartitionSchemeDescription ... 2304 PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" 2305 // PartitionSchemeSingleton1 ... 2306 PartitionSchemeSingleton1 PartitionSchemeBasicPartitionSchemeDescription = "Singleton" 2307 // PartitionSchemeUniformInt64Range1 ... 2308 PartitionSchemeUniformInt64Range1 PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range" 2309) 2310 2311// PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type. 2312func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription { 2313 return []PartitionSchemeBasicPartitionSchemeDescription{PartitionSchemeNamed1, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton1, PartitionSchemeUniformInt64Range1} 2314} 2315 2316// PropertyBatchInfoKind enumerates the values for property batch info kind. 2317type PropertyBatchInfoKind string 2318 2319const ( 2320 // PropertyBatchInfoKindFailed The property batch failed. 2321 PropertyBatchInfoKindFailed PropertyBatchInfoKind = "Failed" 2322 // PropertyBatchInfoKindInvalid Indicates the property batch info is invalid. All Service Fabric 2323 // enumerations have the invalid type. 2324 PropertyBatchInfoKindInvalid PropertyBatchInfoKind = "Invalid" 2325 // PropertyBatchInfoKindSuccessful The property batch succeeded. 2326 PropertyBatchInfoKindSuccessful PropertyBatchInfoKind = "Successful" 2327) 2328 2329// PossiblePropertyBatchInfoKindValues returns an array of possible values for the PropertyBatchInfoKind const type. 2330func PossiblePropertyBatchInfoKindValues() []PropertyBatchInfoKind { 2331 return []PropertyBatchInfoKind{PropertyBatchInfoKindFailed, PropertyBatchInfoKindInvalid, PropertyBatchInfoKindSuccessful} 2332} 2333 2334// PropertyBatchOperationKind enumerates the values for property batch operation kind. 2335type PropertyBatchOperationKind string 2336 2337const ( 2338 // PropertyBatchOperationKindCheckExists The operation will check that a property exists or doesn't exists, 2339 // depending on the provided value. The value is 3. 2340 PropertyBatchOperationKindCheckExists PropertyBatchOperationKind = "CheckExists" 2341 // PropertyBatchOperationKindCheckSequence The operation will ensure that the sequence number is equal to 2342 // the provided value. The value is 4. 2343 PropertyBatchOperationKindCheckSequence PropertyBatchOperationKind = "CheckSequence" 2344 // PropertyBatchOperationKindCheckValue The operation will ensure that the value of a property is equal to 2345 // the provided value. The value is 7. 2346 PropertyBatchOperationKindCheckValue PropertyBatchOperationKind = "CheckValue" 2347 // PropertyBatchOperationKindDelete The operation will delete a property. The value is 5. 2348 PropertyBatchOperationKindDelete PropertyBatchOperationKind = "Delete" 2349 // PropertyBatchOperationKindGet The operation will get a property. The value is 2. 2350 PropertyBatchOperationKindGet PropertyBatchOperationKind = "Get" 2351 // PropertyBatchOperationKindInvalid Indicates the property operation is invalid. All Service Fabric 2352 // enumerations have the invalid type. The value is zero. 2353 PropertyBatchOperationKindInvalid PropertyBatchOperationKind = "Invalid" 2354 // PropertyBatchOperationKindPut The operation will create or edit a property. The value is 1. 2355 PropertyBatchOperationKindPut PropertyBatchOperationKind = "Put" 2356) 2357 2358// PossiblePropertyBatchOperationKindValues returns an array of possible values for the PropertyBatchOperationKind const type. 2359func PossiblePropertyBatchOperationKindValues() []PropertyBatchOperationKind { 2360 return []PropertyBatchOperationKind{PropertyBatchOperationKindCheckExists, PropertyBatchOperationKindCheckSequence, PropertyBatchOperationKindCheckValue, PropertyBatchOperationKindDelete, PropertyBatchOperationKindGet, PropertyBatchOperationKindInvalid, PropertyBatchOperationKindPut} 2361} 2362 2363// PropertyValueKind enumerates the values for property value kind. 2364type PropertyValueKind string 2365 2366const ( 2367 // PropertyValueKindBinary The data inside the property is a binary blob. The value is 1. 2368 PropertyValueKindBinary PropertyValueKind = "Binary" 2369 // PropertyValueKindDouble The data inside the property is a double. The value is 3. 2370 PropertyValueKindDouble PropertyValueKind = "Double" 2371 // PropertyValueKindGUID The data inside the property is a guid. The value is 5. 2372 PropertyValueKindGUID PropertyValueKind = "Guid" 2373 // PropertyValueKindInt64 The data inside the property is an int64. The value is 2. 2374 PropertyValueKindInt64 PropertyValueKind = "Int64" 2375 // PropertyValueKindInvalid Indicates the property is invalid. All Service Fabric enumerations have the 2376 // invalid type. The value is zero. 2377 PropertyValueKindInvalid PropertyValueKind = "Invalid" 2378 // PropertyValueKindString The data inside the property is a string. The value is 4. 2379 PropertyValueKindString PropertyValueKind = "String" 2380) 2381 2382// PossiblePropertyValueKindValues returns an array of possible values for the PropertyValueKind const type. 2383func PossiblePropertyValueKindValues() []PropertyValueKind { 2384 return []PropertyValueKind{PropertyValueKindBinary, PropertyValueKindDouble, PropertyValueKindGUID, PropertyValueKindInt64, PropertyValueKindInvalid, PropertyValueKindString} 2385} 2386 2387// ProvisionApplicationTypeKind enumerates the values for provision application type kind. 2388type ProvisionApplicationTypeKind string 2389 2390const ( 2391 // ProvisionApplicationTypeKindExternalStore Indicates that the provision is for an application package 2392 // that was previously uploaded to an external store. The application package ends with the extension 2393 // *.sfpkg. The value is 2. 2394 ProvisionApplicationTypeKindExternalStore ProvisionApplicationTypeKind = "ExternalStore" 2395 // ProvisionApplicationTypeKindImageStorePath Indicates that the provision is for a package that was 2396 // previously uploaded to the image store. The value is 1. 2397 ProvisionApplicationTypeKindImageStorePath ProvisionApplicationTypeKind = "ImageStorePath" 2398 // ProvisionApplicationTypeKindInvalid Indicates that the provision kind is invalid. This value is default 2399 // and should not be used. The value is zero. 2400 ProvisionApplicationTypeKindInvalid ProvisionApplicationTypeKind = "Invalid" 2401) 2402 2403// PossibleProvisionApplicationTypeKindValues returns an array of possible values for the ProvisionApplicationTypeKind const type. 2404func PossibleProvisionApplicationTypeKindValues() []ProvisionApplicationTypeKind { 2405 return []ProvisionApplicationTypeKind{ProvisionApplicationTypeKindExternalStore, ProvisionApplicationTypeKindImageStorePath, ProvisionApplicationTypeKindInvalid} 2406} 2407 2408// QuorumLossMode enumerates the values for quorum loss mode. 2409type QuorumLossMode string 2410 2411const ( 2412 // QuorumLossModeAllReplicas ... 2413 QuorumLossModeAllReplicas QuorumLossMode = "AllReplicas" 2414 // QuorumLossModeInvalid Reserved. Do not pass into API. 2415 QuorumLossModeInvalid QuorumLossMode = "Invalid" 2416 // QuorumLossModeQuorumReplicas Partial Quorum loss mode : Minimum number of replicas for a partition will 2417 // be down that will cause a quorum loss. 2418 QuorumLossModeQuorumReplicas QuorumLossMode = "QuorumReplicas" 2419) 2420 2421// PossibleQuorumLossModeValues returns an array of possible values for the QuorumLossMode const type. 2422func PossibleQuorumLossModeValues() []QuorumLossMode { 2423 return []QuorumLossMode{QuorumLossModeAllReplicas, QuorumLossModeInvalid, QuorumLossModeQuorumReplicas} 2424} 2425 2426// ReconfigurationPhase enumerates the values for reconfiguration phase. 2427type ReconfigurationPhase string 2428 2429const ( 2430 // ReconfigurationPhaseAbortPhaseZero This phase is for internal use only. 2431 ReconfigurationPhaseAbortPhaseZero ReconfigurationPhase = "AbortPhaseZero" 2432 // ReconfigurationPhaseNone Specifies that there is no reconfiguration in progress. 2433 ReconfigurationPhaseNone ReconfigurationPhase = "None" 2434 // ReconfigurationPhasePhase0 Refers to the phase where the reconfiguration is transferring data from the 2435 // previous primary to the new primary. 2436 ReconfigurationPhasePhase0 ReconfigurationPhase = "Phase0" 2437 // ReconfigurationPhasePhase1 Refers to the phase where the reconfiguration is querying the replica set for 2438 // the progress. 2439 ReconfigurationPhasePhase1 ReconfigurationPhase = "Phase1" 2440 // ReconfigurationPhasePhase2 Refers to the phase where the reconfiguration is ensuring that data from the 2441 // current primary is present in a majority of the replica set. 2442 ReconfigurationPhasePhase2 ReconfigurationPhase = "Phase2" 2443 // ReconfigurationPhasePhase3 This phase is for internal use only. 2444 ReconfigurationPhasePhase3 ReconfigurationPhase = "Phase3" 2445 // ReconfigurationPhasePhase4 This phase is for internal use only. 2446 ReconfigurationPhasePhase4 ReconfigurationPhase = "Phase4" 2447 // ReconfigurationPhaseUnknown Indicates the invalid reconfiguration phase. 2448 ReconfigurationPhaseUnknown ReconfigurationPhase = "Unknown" 2449) 2450 2451// PossibleReconfigurationPhaseValues returns an array of possible values for the ReconfigurationPhase const type. 2452func PossibleReconfigurationPhaseValues() []ReconfigurationPhase { 2453 return []ReconfigurationPhase{ReconfigurationPhaseAbortPhaseZero, ReconfigurationPhaseNone, ReconfigurationPhasePhase0, ReconfigurationPhasePhase1, ReconfigurationPhasePhase2, ReconfigurationPhasePhase3, ReconfigurationPhasePhase4, ReconfigurationPhaseUnknown} 2454} 2455 2456// ReconfigurationType enumerates the values for reconfiguration type. 2457type ReconfigurationType string 2458 2459const ( 2460 // Failover Reconfiguration triggered in response to a primary going down. This could be due to many 2461 // reasons such as primary replica crashing etc. 2462 Failover ReconfigurationType = "Failover" 2463 // Other Reconfigurations where the primary replica is not changing. 2464 Other ReconfigurationType = "Other" 2465 // SwapPrimary Specifies that the primary replica is being swapped with a different replica. 2466 SwapPrimary ReconfigurationType = "SwapPrimary" 2467 // Unknown Indicates the invalid reconfiguration type. 2468 Unknown ReconfigurationType = "Unknown" 2469) 2470 2471// PossibleReconfigurationTypeValues returns an array of possible values for the ReconfigurationType const type. 2472func PossibleReconfigurationTypeValues() []ReconfigurationType { 2473 return []ReconfigurationType{Failover, Other, SwapPrimary, Unknown} 2474} 2475 2476// RepairImpactKind enumerates the values for repair impact kind. 2477type RepairImpactKind string 2478 2479const ( 2480 // RepairImpactKindInvalid The repair impact is not valid or is of an unknown type. 2481 RepairImpactKindInvalid RepairImpactKind = "Invalid" 2482 // RepairImpactKindNode The repair impact affects a set of Service Fabric nodes. 2483 RepairImpactKindNode RepairImpactKind = "Node" 2484) 2485 2486// PossibleRepairImpactKindValues returns an array of possible values for the RepairImpactKind const type. 2487func PossibleRepairImpactKindValues() []RepairImpactKind { 2488 return []RepairImpactKind{RepairImpactKindInvalid, RepairImpactKindNode} 2489} 2490 2491// RepairTargetKind enumerates the values for repair target kind. 2492type RepairTargetKind string 2493 2494const ( 2495 // RepairTargetKindInvalid The repair target is not valid or is of an unknown type. 2496 RepairTargetKindInvalid RepairTargetKind = "Invalid" 2497 // RepairTargetKindNode The repair target is a set of Service Fabric nodes. 2498 RepairTargetKindNode RepairTargetKind = "Node" 2499) 2500 2501// PossibleRepairTargetKindValues returns an array of possible values for the RepairTargetKind const type. 2502func PossibleRepairTargetKindValues() []RepairTargetKind { 2503 return []RepairTargetKind{RepairTargetKindInvalid, RepairTargetKindNode} 2504} 2505 2506// RepairTaskHealthCheckState enumerates the values for repair task health check state. 2507type RepairTaskHealthCheckState string 2508 2509const ( 2510 // InProgress Indicates that the health check is in progress. 2511 InProgress RepairTaskHealthCheckState = "InProgress" 2512 // NotStarted Indicates that the health check has not started. 2513 NotStarted RepairTaskHealthCheckState = "NotStarted" 2514 // Skipped Indicates that the health check was skipped. 2515 Skipped RepairTaskHealthCheckState = "Skipped" 2516 // Succeeded Indicates that the health check succeeded. 2517 Succeeded RepairTaskHealthCheckState = "Succeeded" 2518 // TimedOut Indicates that the health check timed out. 2519 TimedOut RepairTaskHealthCheckState = "TimedOut" 2520) 2521 2522// PossibleRepairTaskHealthCheckStateValues returns an array of possible values for the RepairTaskHealthCheckState const type. 2523func PossibleRepairTaskHealthCheckStateValues() []RepairTaskHealthCheckState { 2524 return []RepairTaskHealthCheckState{InProgress, NotStarted, Skipped, Succeeded, TimedOut} 2525} 2526 2527// ReplicaHealthReportServiceKind enumerates the values for replica health report service kind. 2528type ReplicaHealthReportServiceKind string 2529 2530const ( 2531 // Stateful Uses Service Fabric to make its state or part of its state highly available and reliable. The 2532 // value is 2. 2533 Stateful ReplicaHealthReportServiceKind = "Stateful" 2534 // Stateless Does not use Service Fabric to make its state highly available or reliable. The value is 1 2535 Stateless ReplicaHealthReportServiceKind = "Stateless" 2536) 2537 2538// PossibleReplicaHealthReportServiceKindValues returns an array of possible values for the ReplicaHealthReportServiceKind const type. 2539func PossibleReplicaHealthReportServiceKindValues() []ReplicaHealthReportServiceKind { 2540 return []ReplicaHealthReportServiceKind{Stateful, Stateless} 2541} 2542 2543// ReplicaKind enumerates the values for replica kind. 2544type ReplicaKind string 2545 2546const ( 2547 // ReplicaKindInvalid Represents an invalid replica kind. The value is zero. 2548 ReplicaKindInvalid ReplicaKind = "Invalid" 2549 // ReplicaKindKeyValueStore Represents a key value store replica. The value is 1 2550 ReplicaKindKeyValueStore ReplicaKind = "KeyValueStore" 2551) 2552 2553// PossibleReplicaKindValues returns an array of possible values for the ReplicaKind const type. 2554func PossibleReplicaKindValues() []ReplicaKind { 2555 return []ReplicaKind{ReplicaKindInvalid, ReplicaKindKeyValueStore} 2556} 2557 2558// ReplicaRole enumerates the values for replica role. 2559type ReplicaRole string 2560 2561const ( 2562 // ReplicaRoleActiveSecondary Refers to a replica in the set that receives state updates from the Primary 2563 // replica, applies them, and sends acknowledgements back. Secondary replicas must participate in the write 2564 // quorum for a replica set. There can be multiple active Secondary replicas in a replica set at a time. 2565 // The number of active Secondary replicas is configurable that the reliability subsystem should maintain. 2566 // The value is 4. 2567 ReplicaRoleActiveSecondary ReplicaRole = "ActiveSecondary" 2568 // ReplicaRoleIdleSecondary Refers to a replica in the set that receives a state transfer from the Primary 2569 // replica to prepare for becoming an active Secondary replica. There can be multiple Idle Secondary 2570 // replicas in a replica set at a time. Idle Secondary replicas do not count as a part of a write quorum. 2571 // The value is 3. 2572 ReplicaRoleIdleSecondary ReplicaRole = "IdleSecondary" 2573 // ReplicaRoleNone Specifies that the replica has no responsibility in regard to the replica set. The value 2574 // is 1 2575 ReplicaRoleNone ReplicaRole = "None" 2576 // ReplicaRolePrimary Refers to the replica in the set on which all read and write operations are complete 2577 // in order to enforce strong consistency semantics. Read operations are handled directly by the Primary 2578 // replica, while write operations must be acknowledged by a quorum of the replicas in the replica set. 2579 // There can only be one Primary replica in a replica set at a time. The value is 2. 2580 ReplicaRolePrimary ReplicaRole = "Primary" 2581 // ReplicaRoleUnknown Indicates the initial role that a replica is created in. The value is zero. 2582 ReplicaRoleUnknown ReplicaRole = "Unknown" 2583) 2584 2585// PossibleReplicaRoleValues returns an array of possible values for the ReplicaRole const type. 2586func PossibleReplicaRoleValues() []ReplicaRole { 2587 return []ReplicaRole{ReplicaRoleActiveSecondary, ReplicaRoleIdleSecondary, ReplicaRoleNone, ReplicaRolePrimary, ReplicaRoleUnknown} 2588} 2589 2590// ReplicaStatus enumerates the values for replica status. 2591type ReplicaStatus string 2592 2593const ( 2594 // ReplicaStatusDown The replica is down. The value is 4. 2595 ReplicaStatusDown ReplicaStatus = "Down" 2596 // ReplicaStatusDropped Replica is dropped. This means that the replica has been removed from the replica 2597 // set. If it is persisted, its state has been deleted. The value is 5. 2598 ReplicaStatusDropped ReplicaStatus = "Dropped" 2599 // ReplicaStatusInBuild The replica is being built. This means that a primary replica is seeding this 2600 // replica. The value is 1. 2601 ReplicaStatusInBuild ReplicaStatus = "InBuild" 2602 // ReplicaStatusInvalid Indicates the replica status is invalid. All Service Fabric enumerations have the 2603 // invalid type. The value is zero. 2604 ReplicaStatusInvalid ReplicaStatus = "Invalid" 2605 // ReplicaStatusReady The replica is ready. The value is 3. 2606 ReplicaStatusReady ReplicaStatus = "Ready" 2607 // ReplicaStatusStandby The replica is in standby. The value is 2. 2608 ReplicaStatusStandby ReplicaStatus = "Standby" 2609) 2610 2611// PossibleReplicaStatusValues returns an array of possible values for the ReplicaStatus const type. 2612func PossibleReplicaStatusValues() []ReplicaStatus { 2613 return []ReplicaStatus{ReplicaStatusDown, ReplicaStatusDropped, ReplicaStatusInBuild, ReplicaStatusInvalid, ReplicaStatusReady, ReplicaStatusStandby} 2614} 2615 2616// ReplicatorOperationName enumerates the values for replicator operation name. 2617type ReplicatorOperationName string 2618 2619const ( 2620 // ReplicatorOperationNameAbort Replicator is being aborted. 2621 ReplicatorOperationNameAbort ReplicatorOperationName = "Abort" 2622 // ReplicatorOperationNameBuild Replicator is in the process of building one or more replicas. 2623 ReplicatorOperationNameBuild ReplicatorOperationName = "Build" 2624 // ReplicatorOperationNameChangeRole Replicator is in the process of changing its role. 2625 ReplicatorOperationNameChangeRole ReplicatorOperationName = "ChangeRole" 2626 // ReplicatorOperationNameClose Replicator is closing. 2627 ReplicatorOperationNameClose ReplicatorOperationName = "Close" 2628 // ReplicatorOperationNameInvalid Default value if the replicator is not yet ready. 2629 ReplicatorOperationNameInvalid ReplicatorOperationName = "Invalid" 2630 // ReplicatorOperationNameNone Replicator is not running any operation from Service Fabric perspective. 2631 ReplicatorOperationNameNone ReplicatorOperationName = "None" 2632 // ReplicatorOperationNameOnDataLoss Replicator is handling the data loss condition, where the user service 2633 // may potentially be recovering state from an external source. 2634 ReplicatorOperationNameOnDataLoss ReplicatorOperationName = "OnDataLoss" 2635 // ReplicatorOperationNameOpen Replicator is opening. 2636 ReplicatorOperationNameOpen ReplicatorOperationName = "Open" 2637 // ReplicatorOperationNameUpdateEpoch Due to a change in the replica set, replicator is being updated with 2638 // its Epoch. 2639 ReplicatorOperationNameUpdateEpoch ReplicatorOperationName = "UpdateEpoch" 2640 // ReplicatorOperationNameWaitForCatchup Replicator is waiting for a quorum of replicas to be caught up to 2641 // the latest state. 2642 ReplicatorOperationNameWaitForCatchup ReplicatorOperationName = "WaitForCatchup" 2643) 2644 2645// PossibleReplicatorOperationNameValues returns an array of possible values for the ReplicatorOperationName const type. 2646func PossibleReplicatorOperationNameValues() []ReplicatorOperationName { 2647 return []ReplicatorOperationName{ReplicatorOperationNameAbort, ReplicatorOperationNameBuild, ReplicatorOperationNameChangeRole, ReplicatorOperationNameClose, ReplicatorOperationNameInvalid, ReplicatorOperationNameNone, ReplicatorOperationNameOnDataLoss, ReplicatorOperationNameOpen, ReplicatorOperationNameUpdateEpoch, ReplicatorOperationNameWaitForCatchup} 2648} 2649 2650// ResourceStatus enumerates the values for resource status. 2651type ResourceStatus string 2652 2653const ( 2654 // ResourceStatusCreating Indicates the resource is being created. The value is 3. 2655 ResourceStatusCreating ResourceStatus = "Creating" 2656 // ResourceStatusDeleting Indicates the resource is being deleted. The value is 4. 2657 ResourceStatusDeleting ResourceStatus = "Deleting" 2658 // ResourceStatusFailed Indicates the resource is not functional due to persistent failures. See 2659 // statusDetails property for more details. The value is 5. 2660 ResourceStatusFailed ResourceStatus = "Failed" 2661 // ResourceStatusReady Indicates the resource is ready. The value is 1. 2662 ResourceStatusReady ResourceStatus = "Ready" 2663 // ResourceStatusUnknown Indicates the resource status is unknown. The value is zero. 2664 ResourceStatusUnknown ResourceStatus = "Unknown" 2665 // ResourceStatusUpgrading Indicates the resource is upgrading. The value is 2. 2666 ResourceStatusUpgrading ResourceStatus = "Upgrading" 2667) 2668 2669// PossibleResourceStatusValues returns an array of possible values for the ResourceStatus const type. 2670func PossibleResourceStatusValues() []ResourceStatus { 2671 return []ResourceStatus{ResourceStatusCreating, ResourceStatusDeleting, ResourceStatusFailed, ResourceStatusReady, ResourceStatusUnknown, ResourceStatusUpgrading} 2672} 2673 2674// RestartPartitionMode enumerates the values for restart partition mode. 2675type RestartPartitionMode string 2676 2677const ( 2678 // RestartPartitionModeAllReplicasOrInstances All replicas or instances in the partition are restarted at 2679 // once. 2680 RestartPartitionModeAllReplicasOrInstances RestartPartitionMode = "AllReplicasOrInstances" 2681 // RestartPartitionModeInvalid Reserved. Do not pass into API. 2682 RestartPartitionModeInvalid RestartPartitionMode = "Invalid" 2683 // RestartPartitionModeOnlyActiveSecondaries Only the secondary replicas are restarted. 2684 RestartPartitionModeOnlyActiveSecondaries RestartPartitionMode = "OnlyActiveSecondaries" 2685) 2686 2687// PossibleRestartPartitionModeValues returns an array of possible values for the RestartPartitionMode const type. 2688func PossibleRestartPartitionModeValues() []RestartPartitionMode { 2689 return []RestartPartitionMode{RestartPartitionModeAllReplicasOrInstances, RestartPartitionModeInvalid, RestartPartitionModeOnlyActiveSecondaries} 2690} 2691 2692// RestartPolicy enumerates the values for restart policy. 2693type RestartPolicy string 2694 2695const ( 2696 // Never Service will never be restarted. If the service encounters a failure, it will move to Failed 2697 // state. 2698 Never RestartPolicy = "Never" 2699 // OnFailure Service will be restarted when it encounters a failure. 2700 OnFailure RestartPolicy = "OnFailure" 2701) 2702 2703// PossibleRestartPolicyValues returns an array of possible values for the RestartPolicy const type. 2704func PossibleRestartPolicyValues() []RestartPolicy { 2705 return []RestartPolicy{Never, OnFailure} 2706} 2707 2708// RestoreState enumerates the values for restore state. 2709type RestoreState string 2710 2711const ( 2712 // RestoreStateAccepted Operation has been validated and accepted. Restore is yet to be triggered. 2713 RestoreStateAccepted RestoreState = "Accepted" 2714 // RestoreStateFailure Operation completed with failure. 2715 RestoreStateFailure RestoreState = "Failure" 2716 // RestoreStateInvalid Indicates an invalid restore state. All Service Fabric enumerations have the invalid 2717 // type. 2718 RestoreStateInvalid RestoreState = "Invalid" 2719 // RestoreStateRestoreInProgress Restore operation has been triggered and is under process. 2720 RestoreStateRestoreInProgress RestoreState = "RestoreInProgress" 2721 // RestoreStateSuccess Operation completed with success. 2722 RestoreStateSuccess RestoreState = "Success" 2723 // RestoreStateTimeout Operation timed out. 2724 RestoreStateTimeout RestoreState = "Timeout" 2725) 2726 2727// PossibleRestoreStateValues returns an array of possible values for the RestoreState const type. 2728func PossibleRestoreStateValues() []RestoreState { 2729 return []RestoreState{RestoreStateAccepted, RestoreStateFailure, RestoreStateInvalid, RestoreStateRestoreInProgress, RestoreStateSuccess, RestoreStateTimeout} 2730} 2731 2732// ResultStatus enumerates the values for result status. 2733type ResultStatus string 2734 2735const ( 2736 // ResultStatusCancelled Indicates that the repair task was cancelled prior to execution. 2737 ResultStatusCancelled ResultStatus = "Cancelled" 2738 // ResultStatusFailed Indicates that there was a failure during execution of the repair task. Some work may 2739 // have been performed. 2740 ResultStatusFailed ResultStatus = "Failed" 2741 // ResultStatusInterrupted Indicates that execution of the repair task was interrupted by a cancellation 2742 // request after some work had already been performed. 2743 ResultStatusInterrupted ResultStatus = "Interrupted" 2744 // ResultStatusInvalid Indicates that the repair task result is invalid. All Service Fabric enumerations 2745 // have the invalid value. 2746 ResultStatusInvalid ResultStatus = "Invalid" 2747 // ResultStatusPending Indicates that the repair task result is not yet available, because the repair task 2748 // has not finished executing. 2749 ResultStatusPending ResultStatus = "Pending" 2750 // ResultStatusSucceeded Indicates that the repair task completed execution successfully. 2751 ResultStatusSucceeded ResultStatus = "Succeeded" 2752) 2753 2754// PossibleResultStatusValues returns an array of possible values for the ResultStatus const type. 2755func PossibleResultStatusValues() []ResultStatus { 2756 return []ResultStatus{ResultStatusCancelled, ResultStatusFailed, ResultStatusInterrupted, ResultStatusInvalid, ResultStatusPending, ResultStatusSucceeded} 2757} 2758 2759// RetentionPolicyType enumerates the values for retention policy type. 2760type RetentionPolicyType string 2761 2762const ( 2763 // RetentionPolicyTypeBasic Indicates a basic retention policy type. 2764 RetentionPolicyTypeBasic RetentionPolicyType = "Basic" 2765 // RetentionPolicyTypeInvalid Indicates an invalid retention policy type. 2766 RetentionPolicyTypeInvalid RetentionPolicyType = "Invalid" 2767) 2768 2769// PossibleRetentionPolicyTypeValues returns an array of possible values for the RetentionPolicyType const type. 2770func PossibleRetentionPolicyTypeValues() []RetentionPolicyType { 2771 return []RetentionPolicyType{RetentionPolicyTypeBasic, RetentionPolicyTypeInvalid} 2772} 2773 2774// RetentionPolicyTypeBasicBasicRetentionPolicyDescription enumerates the values for retention policy type 2775// basic basic retention policy description. 2776type RetentionPolicyTypeBasicBasicRetentionPolicyDescription string 2777 2778const ( 2779 // RetentionPolicyTypeBasic1 ... 2780 RetentionPolicyTypeBasic1 RetentionPolicyTypeBasicBasicRetentionPolicyDescription = "Basic" 2781 // RetentionPolicyTypeRetentionPolicyDescription ... 2782 RetentionPolicyTypeRetentionPolicyDescription RetentionPolicyTypeBasicBasicRetentionPolicyDescription = "RetentionPolicyDescription" 2783) 2784 2785// PossibleRetentionPolicyTypeBasicBasicRetentionPolicyDescriptionValues returns an array of possible values for the RetentionPolicyTypeBasicBasicRetentionPolicyDescription const type. 2786func PossibleRetentionPolicyTypeBasicBasicRetentionPolicyDescriptionValues() []RetentionPolicyTypeBasicBasicRetentionPolicyDescription { 2787 return []RetentionPolicyTypeBasicBasicRetentionPolicyDescription{RetentionPolicyTypeBasic1, RetentionPolicyTypeRetentionPolicyDescription} 2788} 2789 2790// RollingUpgradeMode enumerates the values for rolling upgrade mode. 2791type RollingUpgradeMode string 2792 2793const ( 2794 // RollingUpgradeModeInvalid Indicates the upgrade mode is invalid. All Service Fabric enumerations have 2795 // the invalid type. The value is zero. 2796 RollingUpgradeModeInvalid RollingUpgradeMode = "Invalid" 2797 // RollingUpgradeModeMonitored The upgrade will stop after completing each upgrade domain and automatically 2798 // monitor health before proceeding. The value is 3 2799 RollingUpgradeModeMonitored RollingUpgradeMode = "Monitored" 2800 // RollingUpgradeModeUnmonitoredAuto The upgrade will proceed automatically without performing any health 2801 // monitoring. The value is 1 2802 RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto" 2803 // RollingUpgradeModeUnmonitoredManual The upgrade will stop after completing each upgrade domain, giving 2804 // the opportunity to manually monitor health before proceeding. The value is 2 2805 RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = "UnmonitoredManual" 2806) 2807 2808// PossibleRollingUpgradeModeValues returns an array of possible values for the RollingUpgradeMode const type. 2809func PossibleRollingUpgradeModeValues() []RollingUpgradeMode { 2810 return []RollingUpgradeMode{RollingUpgradeModeInvalid, RollingUpgradeModeMonitored, RollingUpgradeModeUnmonitoredAuto, RollingUpgradeModeUnmonitoredManual} 2811} 2812 2813// SafetyCheckKind enumerates the values for safety check kind. 2814type SafetyCheckKind string 2815 2816const ( 2817 // SafetyCheckKindEnsureAvailability Indicates that there is either a stateless service partition on the 2818 // node having exactly one instance, or there is a primary replica on the node for which the partition is 2819 // quorum loss. In both cases, bringing down the replicas due to upgrade will result in loss of 2820 // availability. The value is 7. 2821 SafetyCheckKindEnsureAvailability SafetyCheckKind = "EnsureAvailability" 2822 // SafetyCheckKindEnsurePartitionQuorum Indicates that there is some partition for which if we bring down 2823 // the replica on the node, it will result in quorum loss for that partition. The value is 2. 2824 SafetyCheckKindEnsurePartitionQuorum SafetyCheckKind = "EnsurePartitionQuorum" 2825 // SafetyCheckKindEnsureSeedNodeQuorum Indicates that if we bring down the node then this will result in 2826 // global seed node quorum loss. The value is 1. 2827 SafetyCheckKindEnsureSeedNodeQuorum SafetyCheckKind = "EnsureSeedNodeQuorum" 2828 // SafetyCheckKindInvalid Indicates that the upgrade safety check kind is invalid. All Service Fabric 2829 // enumerations have the invalid type. The value is zero. 2830 SafetyCheckKindInvalid SafetyCheckKind = "Invalid" 2831 // SafetyCheckKindWaitForInbuildReplica Indicates that there is either a replica on the node that is going 2832 // through copy, or there is a primary replica on the node that is copying data to some other replica. In 2833 // both cases, bringing down the replica on the node due to upgrade will abort the copy. The value is 6. 2834 SafetyCheckKindWaitForInbuildReplica SafetyCheckKind = "WaitForInbuildReplica" 2835 // SafetyCheckKindWaitForPrimaryPlacement Indicates that there is some replica on the node that was moved 2836 // out of this node due to upgrade. Service Fabric is now waiting for the primary to be moved back to this 2837 // node. The value is 3. 2838 SafetyCheckKindWaitForPrimaryPlacement SafetyCheckKind = "WaitForPrimaryPlacement" 2839 // SafetyCheckKindWaitForPrimarySwap Indicates that Service Fabric is waiting for a primary replica to be 2840 // moved out of the node before starting upgrade on that node. The value is 4. 2841 SafetyCheckKindWaitForPrimarySwap SafetyCheckKind = "WaitForPrimarySwap" 2842 // SafetyCheckKindWaitForReconfiguration Indicates that there is some replica on the node that is involved 2843 // in a reconfiguration. Service Fabric is waiting for the reconfiguration to be complete before staring 2844 // upgrade on that node. The value is 5. 2845 SafetyCheckKindWaitForReconfiguration SafetyCheckKind = "WaitForReconfiguration" 2846) 2847 2848// PossibleSafetyCheckKindValues returns an array of possible values for the SafetyCheckKind const type. 2849func PossibleSafetyCheckKindValues() []SafetyCheckKind { 2850 return []SafetyCheckKind{SafetyCheckKindEnsureAvailability, SafetyCheckKindEnsurePartitionQuorum, SafetyCheckKindEnsureSeedNodeQuorum, SafetyCheckKindInvalid, SafetyCheckKindWaitForInbuildReplica, SafetyCheckKindWaitForPrimaryPlacement, SafetyCheckKindWaitForPrimarySwap, SafetyCheckKindWaitForReconfiguration} 2851} 2852 2853// ScalingMechanismKind enumerates the values for scaling mechanism kind. 2854type ScalingMechanismKind string 2855 2856const ( 2857 // ScalingMechanismKindAddRemoveIncrementalNamedPartition Indicates a mechanism for scaling where new named 2858 // partitions are added or removed from a service. The value is 2. 2859 ScalingMechanismKindAddRemoveIncrementalNamedPartition ScalingMechanismKind = "AddRemoveIncrementalNamedPartition" 2860 // ScalingMechanismKindInvalid Indicates the scaling mechanism is invalid. All Service Fabric enumerations 2861 // have the invalid type. The value is zero. 2862 ScalingMechanismKindInvalid ScalingMechanismKind = "Invalid" 2863 // ScalingMechanismKindPartitionInstanceCount Indicates a mechanism for scaling where new instances are 2864 // added or removed from a partition. The value is 1. 2865 ScalingMechanismKindPartitionInstanceCount ScalingMechanismKind = "PartitionInstanceCount" 2866) 2867 2868// PossibleScalingMechanismKindValues returns an array of possible values for the ScalingMechanismKind const type. 2869func PossibleScalingMechanismKindValues() []ScalingMechanismKind { 2870 return []ScalingMechanismKind{ScalingMechanismKindAddRemoveIncrementalNamedPartition, ScalingMechanismKindInvalid, ScalingMechanismKindPartitionInstanceCount} 2871} 2872 2873// ScalingTriggerKind enumerates the values for scaling trigger kind. 2874type ScalingTriggerKind string 2875 2876const ( 2877 // ScalingTriggerKindAveragePartitionLoad Indicates a trigger where scaling decisions are made based on 2878 // average load of a partition. The value is 1. 2879 ScalingTriggerKindAveragePartitionLoad ScalingTriggerKind = "AveragePartitionLoad" 2880 // ScalingTriggerKindAverageServiceLoad Indicates a trigger where scaling decisions are made based on 2881 // average load of a service. The value is 2. 2882 ScalingTriggerKindAverageServiceLoad ScalingTriggerKind = "AverageServiceLoad" 2883 // ScalingTriggerKindInvalid Indicates the scaling trigger is invalid. All Service Fabric enumerations have 2884 // the invalid type. The value is zero. 2885 ScalingTriggerKindInvalid ScalingTriggerKind = "Invalid" 2886) 2887 2888// PossibleScalingTriggerKindValues returns an array of possible values for the ScalingTriggerKind const type. 2889func PossibleScalingTriggerKindValues() []ScalingTriggerKind { 2890 return []ScalingTriggerKind{ScalingTriggerKindAveragePartitionLoad, ScalingTriggerKindAverageServiceLoad, ScalingTriggerKindInvalid} 2891} 2892 2893// ScheduleKind enumerates the values for schedule kind. 2894type ScheduleKind string 2895 2896const ( 2897 // ScheduleKindBackupScheduleDescription ... 2898 ScheduleKindBackupScheduleDescription ScheduleKind = "BackupScheduleDescription" 2899 // ScheduleKindFrequencyBased ... 2900 ScheduleKindFrequencyBased ScheduleKind = "FrequencyBased" 2901 // ScheduleKindTimeBased ... 2902 ScheduleKindTimeBased ScheduleKind = "TimeBased" 2903) 2904 2905// PossibleScheduleKindValues returns an array of possible values for the ScheduleKind const type. 2906func PossibleScheduleKindValues() []ScheduleKind { 2907 return []ScheduleKind{ScheduleKindBackupScheduleDescription, ScheduleKindFrequencyBased, ScheduleKindTimeBased} 2908} 2909 2910// Scheme enumerates the values for scheme. 2911type Scheme string 2912 2913const ( 2914 // HTTP Indicates that the probe is http. 2915 HTTP Scheme = "http" 2916 // HTTPS Indicates that the probe is https. No cert validation. 2917 HTTPS Scheme = "https" 2918) 2919 2920// PossibleSchemeValues returns an array of possible values for the Scheme const type. 2921func PossibleSchemeValues() []Scheme { 2922 return []Scheme{HTTP, HTTPS} 2923} 2924 2925// SecretKind enumerates the values for secret kind. 2926type SecretKind string 2927 2928const ( 2929 // InlinedValue A simple secret resource whose plaintext value is provided by the user. 2930 InlinedValue SecretKind = "inlinedValue" 2931 // KeyVaultVersionedReference A secret resource that references a specific version of a secret stored in 2932 // Azure Key Vault; the expected value is a versioned KeyVault URI corresponding to the version of the 2933 // secret being referenced. 2934 KeyVaultVersionedReference SecretKind = "keyVaultVersionedReference" 2935) 2936 2937// PossibleSecretKindValues returns an array of possible values for the SecretKind const type. 2938func PossibleSecretKindValues() []SecretKind { 2939 return []SecretKind{InlinedValue, KeyVaultVersionedReference} 2940} 2941 2942// ServiceCorrelationScheme enumerates the values for service correlation scheme. 2943type ServiceCorrelationScheme string 2944 2945const ( 2946 // ServiceCorrelationSchemeAffinity Indicates that this service has an affinity relationship with another 2947 // service. Provided for backwards compatibility, consider preferring the Aligned or NonAlignedAffinity 2948 // options. The value is 1. 2949 ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity" 2950 // ServiceCorrelationSchemeAlignedAffinity Aligned affinity ensures that the primaries of the partitions of 2951 // the affinitized services are collocated on the same nodes. This is the default and is the same as 2952 // selecting the Affinity scheme. The value is 2. 2953 ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity" 2954 // ServiceCorrelationSchemeInvalid An invalid correlation scheme. Cannot be used. The value is zero. 2955 ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid" 2956 // ServiceCorrelationSchemeNonAlignedAffinity Non-Aligned affinity guarantees that all replicas of each 2957 // service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas 2958 // of particular role will be collocated. The value is 3. 2959 ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity" 2960) 2961 2962// PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type. 2963func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme { 2964 return []ServiceCorrelationScheme{ServiceCorrelationSchemeAffinity, ServiceCorrelationSchemeAlignedAffinity, ServiceCorrelationSchemeInvalid, ServiceCorrelationSchemeNonAlignedAffinity} 2965} 2966 2967// ServiceEndpointRole enumerates the values for service endpoint role. 2968type ServiceEndpointRole string 2969 2970const ( 2971 // ServiceEndpointRoleInvalid Indicates the service endpoint role is invalid. All Service Fabric 2972 // enumerations have the invalid type. The value is zero. 2973 ServiceEndpointRoleInvalid ServiceEndpointRole = "Invalid" 2974 // ServiceEndpointRoleStatefulPrimary Indicates that the service endpoint is of a primary replica of a 2975 // stateful service. The value is 2. 2976 ServiceEndpointRoleStatefulPrimary ServiceEndpointRole = "StatefulPrimary" 2977 // ServiceEndpointRoleStatefulSecondary Indicates that the service endpoint is of a secondary replica of a 2978 // stateful service. The value is 3. 2979 ServiceEndpointRoleStatefulSecondary ServiceEndpointRole = "StatefulSecondary" 2980 // ServiceEndpointRoleStateless Indicates that the service endpoint is of a stateless service. The value is 2981 // 1. 2982 ServiceEndpointRoleStateless ServiceEndpointRole = "Stateless" 2983) 2984 2985// PossibleServiceEndpointRoleValues returns an array of possible values for the ServiceEndpointRole const type. 2986func PossibleServiceEndpointRoleValues() []ServiceEndpointRole { 2987 return []ServiceEndpointRole{ServiceEndpointRoleInvalid, ServiceEndpointRoleStatefulPrimary, ServiceEndpointRoleStatefulSecondary, ServiceEndpointRoleStateless} 2988} 2989 2990// ServiceKind enumerates the values for service kind. 2991type ServiceKind string 2992 2993const ( 2994 // ServiceKindInvalid Indicates the service kind is invalid. All Service Fabric enumerations have the 2995 // invalid type. The value is zero. 2996 ServiceKindInvalid ServiceKind = "Invalid" 2997 // ServiceKindStateful Uses Service Fabric to make its state or part of its state highly available and 2998 // reliable. The value is 2. 2999 ServiceKindStateful ServiceKind = "Stateful" 3000 // ServiceKindStateless Does not use Service Fabric to make its state highly available or reliable. The 3001 // value is 1. 3002 ServiceKindStateless ServiceKind = "Stateless" 3003) 3004 3005// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. 3006func PossibleServiceKindValues() []ServiceKind { 3007 return []ServiceKind{ServiceKindInvalid, ServiceKindStateful, ServiceKindStateless} 3008} 3009 3010// ServiceKindBasicDeployedServiceReplicaDetailInfo enumerates the values for service kind basic deployed 3011// service replica detail info. 3012type ServiceKindBasicDeployedServiceReplicaDetailInfo string 3013 3014const ( 3015 // ServiceKindDeployedServiceReplicaDetailInfo ... 3016 ServiceKindDeployedServiceReplicaDetailInfo ServiceKindBasicDeployedServiceReplicaDetailInfo = "DeployedServiceReplicaDetailInfo" 3017 // ServiceKindStateful1 ... 3018 ServiceKindStateful1 ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateful" 3019 // ServiceKindStateless1 ... 3020 ServiceKindStateless1 ServiceKindBasicDeployedServiceReplicaDetailInfo = "Stateless" 3021) 3022 3023// PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaDetailInfo const type. 3024func PossibleServiceKindBasicDeployedServiceReplicaDetailInfoValues() []ServiceKindBasicDeployedServiceReplicaDetailInfo { 3025 return []ServiceKindBasicDeployedServiceReplicaDetailInfo{ServiceKindDeployedServiceReplicaDetailInfo, ServiceKindStateful1, ServiceKindStateless1} 3026} 3027 3028// ServiceKindBasicDeployedServiceReplicaInfo enumerates the values for service kind basic deployed service 3029// replica info. 3030type ServiceKindBasicDeployedServiceReplicaInfo string 3031 3032const ( 3033 // ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo ... 3034 ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo ServiceKindBasicDeployedServiceReplicaInfo = "DeployedServiceReplicaInfo" 3035 // ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful ... 3036 ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful ServiceKindBasicDeployedServiceReplicaInfo = "Stateful" 3037 // ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless ... 3038 ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless ServiceKindBasicDeployedServiceReplicaInfo = "Stateless" 3039) 3040 3041// PossibleServiceKindBasicDeployedServiceReplicaInfoValues returns an array of possible values for the ServiceKindBasicDeployedServiceReplicaInfo const type. 3042func PossibleServiceKindBasicDeployedServiceReplicaInfoValues() []ServiceKindBasicDeployedServiceReplicaInfo { 3043 return []ServiceKindBasicDeployedServiceReplicaInfo{ServiceKindBasicDeployedServiceReplicaInfoServiceKindDeployedServiceReplicaInfo, ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateful, ServiceKindBasicDeployedServiceReplicaInfoServiceKindStateless} 3044} 3045 3046// ServiceKindBasicReplicaHealth enumerates the values for service kind basic replica health. 3047type ServiceKindBasicReplicaHealth string 3048 3049const ( 3050 // ServiceKindBasicReplicaHealthServiceKindReplicaHealth ... 3051 ServiceKindBasicReplicaHealthServiceKindReplicaHealth ServiceKindBasicReplicaHealth = "ReplicaHealth" 3052 // ServiceKindBasicReplicaHealthServiceKindStateful ... 3053 ServiceKindBasicReplicaHealthServiceKindStateful ServiceKindBasicReplicaHealth = "Stateful" 3054 // ServiceKindBasicReplicaHealthServiceKindStateless ... 3055 ServiceKindBasicReplicaHealthServiceKindStateless ServiceKindBasicReplicaHealth = "Stateless" 3056) 3057 3058// PossibleServiceKindBasicReplicaHealthValues returns an array of possible values for the ServiceKindBasicReplicaHealth const type. 3059func PossibleServiceKindBasicReplicaHealthValues() []ServiceKindBasicReplicaHealth { 3060 return []ServiceKindBasicReplicaHealth{ServiceKindBasicReplicaHealthServiceKindReplicaHealth, ServiceKindBasicReplicaHealthServiceKindStateful, ServiceKindBasicReplicaHealthServiceKindStateless} 3061} 3062 3063// ServiceKindBasicReplicaHealthState enumerates the values for service kind basic replica health state. 3064type ServiceKindBasicReplicaHealthState string 3065 3066const ( 3067 // ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ... 3068 ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState ServiceKindBasicReplicaHealthState = "ReplicaHealthState" 3069 // ServiceKindBasicReplicaHealthStateServiceKindStateful ... 3070 ServiceKindBasicReplicaHealthStateServiceKindStateful ServiceKindBasicReplicaHealthState = "Stateful" 3071 // ServiceKindBasicReplicaHealthStateServiceKindStateless ... 3072 ServiceKindBasicReplicaHealthStateServiceKindStateless ServiceKindBasicReplicaHealthState = "Stateless" 3073) 3074 3075// PossibleServiceKindBasicReplicaHealthStateValues returns an array of possible values for the ServiceKindBasicReplicaHealthState const type. 3076func PossibleServiceKindBasicReplicaHealthStateValues() []ServiceKindBasicReplicaHealthState { 3077 return []ServiceKindBasicReplicaHealthState{ServiceKindBasicReplicaHealthStateServiceKindReplicaHealthState, ServiceKindBasicReplicaHealthStateServiceKindStateful, ServiceKindBasicReplicaHealthStateServiceKindStateless} 3078} 3079 3080// ServiceKindBasicReplicaInfo enumerates the values for service kind basic replica info. 3081type ServiceKindBasicReplicaInfo string 3082 3083const ( 3084 // ServiceKindBasicReplicaInfoServiceKindReplicaInfo ... 3085 ServiceKindBasicReplicaInfoServiceKindReplicaInfo ServiceKindBasicReplicaInfo = "ReplicaInfo" 3086 // ServiceKindBasicReplicaInfoServiceKindStateful ... 3087 ServiceKindBasicReplicaInfoServiceKindStateful ServiceKindBasicReplicaInfo = "Stateful" 3088 // ServiceKindBasicReplicaInfoServiceKindStateless ... 3089 ServiceKindBasicReplicaInfoServiceKindStateless ServiceKindBasicReplicaInfo = "Stateless" 3090) 3091 3092// PossibleServiceKindBasicReplicaInfoValues returns an array of possible values for the ServiceKindBasicReplicaInfo const type. 3093func PossibleServiceKindBasicReplicaInfoValues() []ServiceKindBasicReplicaInfo { 3094 return []ServiceKindBasicReplicaInfo{ServiceKindBasicReplicaInfoServiceKindReplicaInfo, ServiceKindBasicReplicaInfoServiceKindStateful, ServiceKindBasicReplicaInfoServiceKindStateless} 3095} 3096 3097// ServiceKindBasicServiceDescription enumerates the values for service kind basic service description. 3098type ServiceKindBasicServiceDescription string 3099 3100const ( 3101 // ServiceKindBasicServiceDescriptionServiceKindServiceDescription ... 3102 ServiceKindBasicServiceDescriptionServiceKindServiceDescription ServiceKindBasicServiceDescription = "ServiceDescription" 3103 // ServiceKindBasicServiceDescriptionServiceKindStateful ... 3104 ServiceKindBasicServiceDescriptionServiceKindStateful ServiceKindBasicServiceDescription = "Stateful" 3105 // ServiceKindBasicServiceDescriptionServiceKindStateless ... 3106 ServiceKindBasicServiceDescriptionServiceKindStateless ServiceKindBasicServiceDescription = "Stateless" 3107) 3108 3109// PossibleServiceKindBasicServiceDescriptionValues returns an array of possible values for the ServiceKindBasicServiceDescription const type. 3110func PossibleServiceKindBasicServiceDescriptionValues() []ServiceKindBasicServiceDescription { 3111 return []ServiceKindBasicServiceDescription{ServiceKindBasicServiceDescriptionServiceKindServiceDescription, ServiceKindBasicServiceDescriptionServiceKindStateful, ServiceKindBasicServiceDescriptionServiceKindStateless} 3112} 3113 3114// ServiceKindBasicServiceInfo enumerates the values for service kind basic service info. 3115type ServiceKindBasicServiceInfo string 3116 3117const ( 3118 // ServiceKindBasicServiceInfoServiceKindServiceInfo ... 3119 ServiceKindBasicServiceInfoServiceKindServiceInfo ServiceKindBasicServiceInfo = "ServiceInfo" 3120 // ServiceKindBasicServiceInfoServiceKindStateful ... 3121 ServiceKindBasicServiceInfoServiceKindStateful ServiceKindBasicServiceInfo = "Stateful" 3122 // ServiceKindBasicServiceInfoServiceKindStateless ... 3123 ServiceKindBasicServiceInfoServiceKindStateless ServiceKindBasicServiceInfo = "Stateless" 3124) 3125 3126// PossibleServiceKindBasicServiceInfoValues returns an array of possible values for the ServiceKindBasicServiceInfo const type. 3127func PossibleServiceKindBasicServiceInfoValues() []ServiceKindBasicServiceInfo { 3128 return []ServiceKindBasicServiceInfo{ServiceKindBasicServiceInfoServiceKindServiceInfo, ServiceKindBasicServiceInfoServiceKindStateful, ServiceKindBasicServiceInfoServiceKindStateless} 3129} 3130 3131// ServiceKindBasicServicePartitionInfo enumerates the values for service kind basic service partition info. 3132type ServiceKindBasicServicePartitionInfo string 3133 3134const ( 3135 // ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ... 3136 ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo ServiceKindBasicServicePartitionInfo = "ServicePartitionInfo" 3137 // ServiceKindBasicServicePartitionInfoServiceKindStateful ... 3138 ServiceKindBasicServicePartitionInfoServiceKindStateful ServiceKindBasicServicePartitionInfo = "Stateful" 3139 // ServiceKindBasicServicePartitionInfoServiceKindStateless ... 3140 ServiceKindBasicServicePartitionInfoServiceKindStateless ServiceKindBasicServicePartitionInfo = "Stateless" 3141) 3142 3143// PossibleServiceKindBasicServicePartitionInfoValues returns an array of possible values for the ServiceKindBasicServicePartitionInfo const type. 3144func PossibleServiceKindBasicServicePartitionInfoValues() []ServiceKindBasicServicePartitionInfo { 3145 return []ServiceKindBasicServicePartitionInfo{ServiceKindBasicServicePartitionInfoServiceKindServicePartitionInfo, ServiceKindBasicServicePartitionInfoServiceKindStateful, ServiceKindBasicServicePartitionInfoServiceKindStateless} 3146} 3147 3148// ServiceKindBasicServiceUpdateDescription enumerates the values for service kind basic service update 3149// description. 3150type ServiceKindBasicServiceUpdateDescription string 3151 3152const ( 3153 // ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ... 3154 ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription ServiceKindBasicServiceUpdateDescription = "ServiceUpdateDescription" 3155 // ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ... 3156 ServiceKindBasicServiceUpdateDescriptionServiceKindStateful ServiceKindBasicServiceUpdateDescription = "Stateful" 3157 // ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ... 3158 ServiceKindBasicServiceUpdateDescriptionServiceKindStateless ServiceKindBasicServiceUpdateDescription = "Stateless" 3159) 3160 3161// PossibleServiceKindBasicServiceUpdateDescriptionValues returns an array of possible values for the ServiceKindBasicServiceUpdateDescription const type. 3162func PossibleServiceKindBasicServiceUpdateDescriptionValues() []ServiceKindBasicServiceUpdateDescription { 3163 return []ServiceKindBasicServiceUpdateDescription{ServiceKindBasicServiceUpdateDescriptionServiceKindServiceUpdateDescription, ServiceKindBasicServiceUpdateDescriptionServiceKindStateful, ServiceKindBasicServiceUpdateDescriptionServiceKindStateless} 3164} 3165 3166// ServiceLoadMetricWeight enumerates the values for service load metric weight. 3167type ServiceLoadMetricWeight string 3168 3169const ( 3170 // ServiceLoadMetricWeightHigh Specifies the metric weight of the service load as High. The value is 3. 3171 ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High" 3172 // ServiceLoadMetricWeightLow Specifies the metric weight of the service load as Low. The value is 1. 3173 ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low" 3174 // ServiceLoadMetricWeightMedium Specifies the metric weight of the service load as Medium. The value is 2. 3175 ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium" 3176 // ServiceLoadMetricWeightZero Disables resource balancing for this metric. This value is zero. 3177 ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero" 3178) 3179 3180// PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type. 3181func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight { 3182 return []ServiceLoadMetricWeight{ServiceLoadMetricWeightHigh, ServiceLoadMetricWeightLow, ServiceLoadMetricWeightMedium, ServiceLoadMetricWeightZero} 3183} 3184 3185// ServiceOperationName enumerates the values for service operation name. 3186type ServiceOperationName string 3187 3188const ( 3189 // ServiceOperationNameAbort The service replica or instance is being aborted. 3190 ServiceOperationNameAbort ServiceOperationName = "Abort" 3191 // ServiceOperationNameChangeRole The service replica is changing roles. 3192 ServiceOperationNameChangeRole ServiceOperationName = "ChangeRole" 3193 // ServiceOperationNameClose The service replica or instance is being closed. 3194 ServiceOperationNameClose ServiceOperationName = "Close" 3195 // ServiceOperationNameNone The service replica or instance is not going through any life-cycle changes. 3196 ServiceOperationNameNone ServiceOperationName = "None" 3197 // ServiceOperationNameOpen The service replica or instance is being opened. 3198 ServiceOperationNameOpen ServiceOperationName = "Open" 3199 // ServiceOperationNameUnknown Reserved for future use. 3200 ServiceOperationNameUnknown ServiceOperationName = "Unknown" 3201) 3202 3203// PossibleServiceOperationNameValues returns an array of possible values for the ServiceOperationName const type. 3204func PossibleServiceOperationNameValues() []ServiceOperationName { 3205 return []ServiceOperationName{ServiceOperationNameAbort, ServiceOperationNameChangeRole, ServiceOperationNameClose, ServiceOperationNameNone, ServiceOperationNameOpen, ServiceOperationNameUnknown} 3206} 3207 3208// ServicePackageActivationMode enumerates the values for service package activation mode. 3209type ServicePackageActivationMode string 3210 3211const ( 3212 // ExclusiveProcess With this activation mode, each replica or instance of service, on a given node, will 3213 // have its own dedicated activation of service package on a node. The value is 1. 3214 ExclusiveProcess ServicePackageActivationMode = "ExclusiveProcess" 3215 // SharedProcess This is the default activation mode. With this activation mode, replicas or instances from 3216 // different partition(s) of service, on a given node, will share same activation of service package on a 3217 // node. The value is zero. 3218 SharedProcess ServicePackageActivationMode = "SharedProcess" 3219) 3220 3221// PossibleServicePackageActivationModeValues returns an array of possible values for the ServicePackageActivationMode const type. 3222func PossibleServicePackageActivationModeValues() []ServicePackageActivationMode { 3223 return []ServicePackageActivationMode{ExclusiveProcess, SharedProcess} 3224} 3225 3226// ServicePartitionKind enumerates the values for service partition kind. 3227type ServicePartitionKind string 3228 3229const ( 3230 // ServicePartitionKindInt64Range Indicates that the partition is based on Int64 key ranges, and 3231 // UniformInt64RangePartitionSchemeDescription was specified while creating the service. The value is 2. 3232 ServicePartitionKindInt64Range ServicePartitionKind = "Int64Range" 3233 // ServicePartitionKindInvalid Indicates the partition kind is invalid. All Service Fabric enumerations 3234 // have the invalid type. The value is zero. 3235 ServicePartitionKindInvalid ServicePartitionKind = "Invalid" 3236 // ServicePartitionKindNamed Indicates that the partition is based on string names, and 3237 // NamedPartitionInformation was specified while creating the service. The value is 3. 3238 ServicePartitionKindNamed ServicePartitionKind = "Named" 3239 // ServicePartitionKindSingleton Indicates that there is only one partition, and 3240 // SingletonPartitionSchemeDescription was specified while creating the service. The value is 1. 3241 ServicePartitionKindSingleton ServicePartitionKind = "Singleton" 3242) 3243 3244// PossibleServicePartitionKindValues returns an array of possible values for the ServicePartitionKind const type. 3245func PossibleServicePartitionKindValues() []ServicePartitionKind { 3246 return []ServicePartitionKind{ServicePartitionKindInt64Range, ServicePartitionKindInvalid, ServicePartitionKindNamed, ServicePartitionKindSingleton} 3247} 3248 3249// ServicePartitionKindBasicPartitionInformation enumerates the values for service partition kind basic 3250// partition information. 3251type ServicePartitionKindBasicPartitionInformation string 3252 3253const ( 3254 // ServicePartitionKindInt64Range1 ... 3255 ServicePartitionKindInt64Range1 ServicePartitionKindBasicPartitionInformation = "Int64Range" 3256 // ServicePartitionKindNamed1 ... 3257 ServicePartitionKindNamed1 ServicePartitionKindBasicPartitionInformation = "Named" 3258 // ServicePartitionKindPartitionInformation ... 3259 ServicePartitionKindPartitionInformation ServicePartitionKindBasicPartitionInformation = "PartitionInformation" 3260 // ServicePartitionKindSingleton1 ... 3261 ServicePartitionKindSingleton1 ServicePartitionKindBasicPartitionInformation = "Singleton" 3262) 3263 3264// PossibleServicePartitionKindBasicPartitionInformationValues returns an array of possible values for the ServicePartitionKindBasicPartitionInformation const type. 3265func PossibleServicePartitionKindBasicPartitionInformationValues() []ServicePartitionKindBasicPartitionInformation { 3266 return []ServicePartitionKindBasicPartitionInformation{ServicePartitionKindInt64Range1, ServicePartitionKindNamed1, ServicePartitionKindPartitionInformation, ServicePartitionKindSingleton1} 3267} 3268 3269// ServicePartitionStatus enumerates the values for service partition status. 3270type ServicePartitionStatus string 3271 3272const ( 3273 // ServicePartitionStatusDeleting Indicates that the partition is being deleted. The value is 5. 3274 ServicePartitionStatusDeleting ServicePartitionStatus = "Deleting" 3275 // ServicePartitionStatusInQuorumLoss Indicates that the partition is in quorum loss. This means that 3276 // number of replicas that are up and participating in a replica set is less than MinReplicaSetSize for 3277 // this partition. The value is 3. 3278 ServicePartitionStatusInQuorumLoss ServicePartitionStatus = "InQuorumLoss" 3279 // ServicePartitionStatusInvalid Indicates the partition status is invalid. All Service Fabric enumerations 3280 // have the invalid type. The value is zero. 3281 ServicePartitionStatusInvalid ServicePartitionStatus = "Invalid" 3282 // ServicePartitionStatusNotReady Indicates that the partition is not ready. This status is returned when 3283 // none of the other states apply. The value is 2. 3284 ServicePartitionStatusNotReady ServicePartitionStatus = "NotReady" 3285 // ServicePartitionStatusReady Indicates that the partition is ready. This means that for a stateless 3286 // service partition there is at least one instance that is up and for a stateful service partition the 3287 // number of ready replicas is greater than or equal to the MinReplicaSetSize. The value is 1. 3288 ServicePartitionStatusReady ServicePartitionStatus = "Ready" 3289 // ServicePartitionStatusReconfiguring Indicates that the partition is undergoing reconfiguration of its 3290 // replica sets. This can happen due to failover, upgrade, load balancing or addition or removal of 3291 // replicas from the replica set. The value is 4. 3292 ServicePartitionStatusReconfiguring ServicePartitionStatus = "Reconfiguring" 3293) 3294 3295// PossibleServicePartitionStatusValues returns an array of possible values for the ServicePartitionStatus const type. 3296func PossibleServicePartitionStatusValues() []ServicePartitionStatus { 3297 return []ServicePartitionStatus{ServicePartitionStatusDeleting, ServicePartitionStatusInQuorumLoss, ServicePartitionStatusInvalid, ServicePartitionStatusNotReady, ServicePartitionStatusReady, ServicePartitionStatusReconfiguring} 3298} 3299 3300// ServicePlacementPolicyType enumerates the values for service placement policy type. 3301type ServicePlacementPolicyType string 3302 3303const ( 3304 // ServicePlacementPolicyTypeAllowMultipleStatelessInstancesOnNode Indicates that the 3305 // ServicePlacementPolicyDescription is of type 3306 // ServicePlacementAllowMultipleStatelessInstancesOnNodePolicyDescription, which indicates that multiple 3307 // stateless instances of a particular partition of the service can be placed on a node. The value is 6. 3308 ServicePlacementPolicyTypeAllowMultipleStatelessInstancesOnNode ServicePlacementPolicyType = "AllowMultipleStatelessInstancesOnNode" 3309 // ServicePlacementPolicyTypeInvalid Indicates the type of the placement policy is invalid. All Service 3310 // Fabric enumerations have the invalid type. The value is zero. 3311 ServicePlacementPolicyTypeInvalid ServicePlacementPolicyType = "Invalid" 3312 // ServicePlacementPolicyTypeInvalidDomain Indicates that the ServicePlacementPolicyDescription is of type 3313 // ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade 3314 // domain cannot be used for placement of this service. The value is 1. 3315 ServicePlacementPolicyTypeInvalidDomain ServicePlacementPolicyType = "InvalidDomain" 3316 // ServicePlacementPolicyTypeNonPartiallyPlaceService Indicates that the ServicePlacementPolicyDescription 3317 // is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible 3318 // all replicas of a particular partition of the service should be placed atomically. The value is 5. 3319 ServicePlacementPolicyTypeNonPartiallyPlaceService ServicePlacementPolicyType = "NonPartiallyPlaceService" 3320 // ServicePlacementPolicyTypePreferPrimaryDomain Indicates that the ServicePlacementPolicyDescription is of 3321 // type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the Primary 3322 // replica for the partitions of the service should be located in a particular domain as an optimization. 3323 // The value is 3. 3324 ServicePlacementPolicyTypePreferPrimaryDomain ServicePlacementPolicyType = "PreferPrimaryDomain" 3325 // ServicePlacementPolicyTypeRequireDomain Indicates that the ServicePlacementPolicyDescription is of type 3326 // ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service 3327 // must be placed in a specific domain. The value is 2. 3328 ServicePlacementPolicyTypeRequireDomain ServicePlacementPolicyType = "RequireDomain" 3329 // ServicePlacementPolicyTypeRequireDomainDistribution Indicates that the ServicePlacementPolicyDescription 3330 // is of type ServicePlacementRequireDomainDistributionPolicyDescription, indicating that the system will 3331 // disallow placement of any two replicas from the same partition in the same domain at any time. The value 3332 // is 4. 3333 ServicePlacementPolicyTypeRequireDomainDistribution ServicePlacementPolicyType = "RequireDomainDistribution" 3334) 3335 3336// PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type. 3337func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType { 3338 return []ServicePlacementPolicyType{ServicePlacementPolicyTypeAllowMultipleStatelessInstancesOnNode, ServicePlacementPolicyTypeInvalid, ServicePlacementPolicyTypeInvalidDomain, ServicePlacementPolicyTypeNonPartiallyPlaceService, ServicePlacementPolicyTypePreferPrimaryDomain, ServicePlacementPolicyTypeRequireDomain, ServicePlacementPolicyTypeRequireDomainDistribution} 3339} 3340 3341// ServiceStatus enumerates the values for service status. 3342type ServiceStatus string 3343 3344const ( 3345 // ServiceStatusActive Indicates the service status is active. The value is 1. 3346 ServiceStatusActive ServiceStatus = "Active" 3347 // ServiceStatusCreating Indicates the service is being created. The value is 4. 3348 ServiceStatusCreating ServiceStatus = "Creating" 3349 // ServiceStatusDeleting Indicates the service is being deleted. The value is 3. 3350 ServiceStatusDeleting ServiceStatus = "Deleting" 3351 // ServiceStatusFailed Indicates creation or deletion was terminated due to persistent failures. Another 3352 // create/delete request can be accepted. The value is 5. 3353 ServiceStatusFailed ServiceStatus = "Failed" 3354 // ServiceStatusUnknown Indicates the service status is unknown. The value is zero. 3355 ServiceStatusUnknown ServiceStatus = "Unknown" 3356 // ServiceStatusUpgrading Indicates the service is upgrading. The value is 2. 3357 ServiceStatusUpgrading ServiceStatus = "Upgrading" 3358) 3359 3360// PossibleServiceStatusValues returns an array of possible values for the ServiceStatus const type. 3361func PossibleServiceStatusValues() []ServiceStatus { 3362 return []ServiceStatus{ServiceStatusActive, ServiceStatusCreating, ServiceStatusDeleting, ServiceStatusFailed, ServiceStatusUnknown, ServiceStatusUpgrading} 3363} 3364 3365// ServiceTypeRegistrationStatus enumerates the values for service type registration status. 3366type ServiceTypeRegistrationStatus string 3367 3368const ( 3369 // ServiceTypeRegistrationStatusDisabled Indicates that the service type is disabled on this node. A type 3370 // gets disabled when there are too many failures of the code package hosting the service type. If the 3371 // service type is disabled, new replicas of that service type will not be placed on the node until it is 3372 // enabled again. The service type is enabled again after the process hosting it comes up and re-registers 3373 // the type or a preconfigured time interval has passed. The value is 1. 3374 ServiceTypeRegistrationStatusDisabled ServiceTypeRegistrationStatus = "Disabled" 3375 // ServiceTypeRegistrationStatusEnabled Indicates that the service type is enabled on this node. Replicas 3376 // of this service type can be placed on this node when the code package registers the service type. The 3377 // value is 2. 3378 ServiceTypeRegistrationStatusEnabled ServiceTypeRegistrationStatus = "Enabled" 3379 // ServiceTypeRegistrationStatusInvalid Indicates the registration status is invalid. All Service Fabric 3380 // enumerations have the invalid type. The value is zero. 3381 ServiceTypeRegistrationStatusInvalid ServiceTypeRegistrationStatus = "Invalid" 3382 // ServiceTypeRegistrationStatusRegistered Indicates that the service type is enabled and registered on the 3383 // node by a code package. Replicas of this service type can now be placed on this node. The value is 3. 3384 ServiceTypeRegistrationStatusRegistered ServiceTypeRegistrationStatus = "Registered" 3385) 3386 3387// PossibleServiceTypeRegistrationStatusValues returns an array of possible values for the ServiceTypeRegistrationStatus const type. 3388func PossibleServiceTypeRegistrationStatusValues() []ServiceTypeRegistrationStatus { 3389 return []ServiceTypeRegistrationStatus{ServiceTypeRegistrationStatusDisabled, ServiceTypeRegistrationStatusEnabled, ServiceTypeRegistrationStatusInvalid, ServiceTypeRegistrationStatusRegistered} 3390} 3391 3392// SettingType enumerates the values for setting type. 3393type SettingType string 3394 3395const ( 3396 // SettingTypeClearText The setting in clear text, will not be processed in any way and passed in as is 3397 SettingTypeClearText SettingType = "ClearText" 3398 // SettingTypeKeyVaultReference The URI to a KeyVault secret version, will be resolved using the 3399 // application's managed identity (this type is only valid if the app was assigned a managed identity) 3400 // before getting passed in 3401 SettingTypeKeyVaultReference SettingType = "KeyVaultReference" 3402 // SettingTypeSecretValueReference The reference to a SecretValue resource, will be resolved before getting 3403 // passed in 3404 SettingTypeSecretValueReference SettingType = "SecretValueReference" 3405) 3406 3407// PossibleSettingTypeValues returns an array of possible values for the SettingType const type. 3408func PossibleSettingTypeValues() []SettingType { 3409 return []SettingType{SettingTypeClearText, SettingTypeKeyVaultReference, SettingTypeSecretValueReference} 3410} 3411 3412// SizeTypes enumerates the values for size types. 3413type SizeTypes string 3414 3415const ( 3416 // SizeTypesLarge ... 3417 SizeTypesLarge SizeTypes = "Large" 3418 // SizeTypesMedium ... 3419 SizeTypesMedium SizeTypes = "Medium" 3420 // SizeTypesSmall ... 3421 SizeTypesSmall SizeTypes = "Small" 3422) 3423 3424// PossibleSizeTypesValues returns an array of possible values for the SizeTypes const type. 3425func PossibleSizeTypesValues() []SizeTypes { 3426 return []SizeTypes{SizeTypesLarge, SizeTypesMedium, SizeTypesSmall} 3427} 3428 3429// State enumerates the values for state. 3430type State string 3431 3432const ( 3433 // StateApproved Indicates that the repair task has been approved by the Repair Manager and is safe to 3434 // execute. 3435 StateApproved State = "Approved" 3436 // StateClaimed Indicates that the repair task has been claimed by a repair executor. 3437 StateClaimed State = "Claimed" 3438 // StateCompleted Indicates that the repair task has completed, and no further state changes will occur. 3439 StateCompleted State = "Completed" 3440 // StateCreated Indicates that the repair task has been created. 3441 StateCreated State = "Created" 3442 // StateExecuting Indicates that execution of the repair task is in progress. 3443 StateExecuting State = "Executing" 3444 // StateInvalid Indicates that the repair task state is invalid. All Service Fabric enumerations have the 3445 // invalid value. 3446 StateInvalid State = "Invalid" 3447 // StatePreparing Indicates that the Repair Manager is preparing the system to handle the impact of the 3448 // repair task, usually by taking resources offline gracefully. 3449 StatePreparing State = "Preparing" 3450 // StateRestoring Indicates that the Repair Manager is restoring the system to its pre-repair state, 3451 // usually by bringing resources back online. 3452 StateRestoring State = "Restoring" 3453) 3454 3455// PossibleStateValues returns an array of possible values for the State const type. 3456func PossibleStateValues() []State { 3457 return []State{StateApproved, StateClaimed, StateCompleted, StateCreated, StateExecuting, StateInvalid, StatePreparing, StateRestoring} 3458} 3459 3460// StorageKind enumerates the values for storage kind. 3461type StorageKind string 3462 3463const ( 3464 // StorageKindAzureBlobStore ... 3465 StorageKindAzureBlobStore StorageKind = "AzureBlobStore" 3466 // StorageKindBackupStorageDescription ... 3467 StorageKindBackupStorageDescription StorageKind = "BackupStorageDescription" 3468 // StorageKindDsmsAzureBlobStore ... 3469 StorageKindDsmsAzureBlobStore StorageKind = "DsmsAzureBlobStore" 3470 // StorageKindFileShare ... 3471 StorageKindFileShare StorageKind = "FileShare" 3472) 3473 3474// PossibleStorageKindValues returns an array of possible values for the StorageKind const type. 3475func PossibleStorageKindValues() []StorageKind { 3476 return []StorageKind{StorageKindAzureBlobStore, StorageKindBackupStorageDescription, StorageKindDsmsAzureBlobStore, StorageKindFileShare} 3477} 3478 3479// Type enumerates the values for type. 3480type Type string 3481 3482const ( 3483 // TypeInvalidDomain ... 3484 TypeInvalidDomain Type = "InvalidDomain" 3485 // TypeNonPartiallyPlaceService ... 3486 TypeNonPartiallyPlaceService Type = "NonPartiallyPlaceService" 3487 // TypePreferPrimaryDomain ... 3488 TypePreferPrimaryDomain Type = "PreferPrimaryDomain" 3489 // TypeRequireDomain ... 3490 TypeRequireDomain Type = "RequireDomain" 3491 // TypeRequireDomainDistribution ... 3492 TypeRequireDomainDistribution Type = "RequireDomainDistribution" 3493 // TypeServicePlacementPolicyDescription ... 3494 TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription" 3495) 3496 3497// PossibleTypeValues returns an array of possible values for the Type const type. 3498func PossibleTypeValues() []Type { 3499 return []Type{TypeInvalidDomain, TypeNonPartiallyPlaceService, TypePreferPrimaryDomain, TypeRequireDomain, TypeRequireDomainDistribution, TypeServicePlacementPolicyDescription} 3500} 3501 3502// TypeBasicExecutionPolicy enumerates the values for type basic execution policy. 3503type TypeBasicExecutionPolicy string 3504 3505const ( 3506 // TypeDefault ... 3507 TypeDefault TypeBasicExecutionPolicy = "Default" 3508 // TypeExecutionPolicy ... 3509 TypeExecutionPolicy TypeBasicExecutionPolicy = "ExecutionPolicy" 3510 // TypeRunToCompletion ... 3511 TypeRunToCompletion TypeBasicExecutionPolicy = "RunToCompletion" 3512) 3513 3514// PossibleTypeBasicExecutionPolicyValues returns an array of possible values for the TypeBasicExecutionPolicy const type. 3515func PossibleTypeBasicExecutionPolicyValues() []TypeBasicExecutionPolicy { 3516 return []TypeBasicExecutionPolicy{TypeDefault, TypeExecutionPolicy, TypeRunToCompletion} 3517} 3518 3519// UpgradeDomainState enumerates the values for upgrade domain state. 3520type UpgradeDomainState string 3521 3522const ( 3523 // UpgradeDomainStateCompleted The upgrade domain has completed upgrade. The value is 3 3524 UpgradeDomainStateCompleted UpgradeDomainState = "Completed" 3525 // UpgradeDomainStateInProgress The upgrade domain is being upgraded but not complete yet. The value is 2 3526 UpgradeDomainStateInProgress UpgradeDomainState = "InProgress" 3527 // UpgradeDomainStateInvalid Indicates the upgrade domain state is invalid. All Service Fabric enumerations 3528 // have the invalid type. The value is zero. 3529 UpgradeDomainStateInvalid UpgradeDomainState = "Invalid" 3530 // UpgradeDomainStatePending The upgrade domain has not started upgrading yet. The value is 1 3531 UpgradeDomainStatePending UpgradeDomainState = "Pending" 3532) 3533 3534// PossibleUpgradeDomainStateValues returns an array of possible values for the UpgradeDomainState const type. 3535func PossibleUpgradeDomainStateValues() []UpgradeDomainState { 3536 return []UpgradeDomainState{UpgradeDomainStateCompleted, UpgradeDomainStateInProgress, UpgradeDomainStateInvalid, UpgradeDomainStatePending} 3537} 3538 3539// UpgradeKind enumerates the values for upgrade kind. 3540type UpgradeKind string 3541 3542const ( 3543 // UpgradeKindInvalid Indicates the upgrade kind is invalid. All Service Fabric enumerations have the 3544 // invalid type. The value is zero. 3545 UpgradeKindInvalid UpgradeKind = "Invalid" 3546 // UpgradeKindRolling The upgrade progresses one upgrade domain at a time. The value is 1 3547 UpgradeKindRolling UpgradeKind = "Rolling" 3548) 3549 3550// PossibleUpgradeKindValues returns an array of possible values for the UpgradeKind const type. 3551func PossibleUpgradeKindValues() []UpgradeKind { 3552 return []UpgradeKind{UpgradeKindInvalid, UpgradeKindRolling} 3553} 3554 3555// UpgradeMode enumerates the values for upgrade mode. 3556type UpgradeMode string 3557 3558const ( 3559 // UpgradeModeInvalid Indicates the upgrade mode is invalid. All Service Fabric enumerations have the 3560 // invalid type. The value is zero. 3561 UpgradeModeInvalid UpgradeMode = "Invalid" 3562 // UpgradeModeMonitored The upgrade will stop after completing each upgrade domain and automatically 3563 // monitor health before proceeding. The value is 3 3564 UpgradeModeMonitored UpgradeMode = "Monitored" 3565 // UpgradeModeUnmonitoredAuto The upgrade will proceed automatically without performing any health 3566 // monitoring. The value is 1 3567 UpgradeModeUnmonitoredAuto UpgradeMode = "UnmonitoredAuto" 3568 // UpgradeModeUnmonitoredManual The upgrade will stop after completing each upgrade domain, giving the 3569 // opportunity to manually monitor health before proceeding. The value is 2 3570 UpgradeModeUnmonitoredManual UpgradeMode = "UnmonitoredManual" 3571) 3572 3573// PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type. 3574func PossibleUpgradeModeValues() []UpgradeMode { 3575 return []UpgradeMode{UpgradeModeInvalid, UpgradeModeMonitored, UpgradeModeUnmonitoredAuto, UpgradeModeUnmonitoredManual} 3576} 3577 3578// UpgradeSortOrder enumerates the values for upgrade sort order. 3579type UpgradeSortOrder string 3580 3581const ( 3582 // UpgradeSortOrderDefault Indicates that the default sort order (as specified in cluster manifest) will be 3583 // used. The value is 1. 3584 UpgradeSortOrderDefault UpgradeSortOrder = "Default" 3585 // UpgradeSortOrderInvalid Indicates that this sort order is not valid. All Service Fabric enumerations 3586 // have the invalid type. The value is 0. 3587 UpgradeSortOrderInvalid UpgradeSortOrder = "Invalid" 3588 // UpgradeSortOrderLexicographical Indicates that forward lexicographical sort order (UD names sorted as 3589 // strings) will be used. The value is 3. 3590 UpgradeSortOrderLexicographical UpgradeSortOrder = "Lexicographical" 3591 // UpgradeSortOrderNumeric Indicates that forward numeric sort order (UD names sorted as numbers) will be 3592 // used. The value is 2. 3593 UpgradeSortOrderNumeric UpgradeSortOrder = "Numeric" 3594 // UpgradeSortOrderReverseLexicographical Indicates that reverse lexicographical sort order (UD names 3595 // sorted as strings) will be used. The value is 5. 3596 UpgradeSortOrderReverseLexicographical UpgradeSortOrder = "ReverseLexicographical" 3597 // UpgradeSortOrderReverseNumeric Indicates that reverse numeric sort order (UD names sorted as numbers) 3598 // will be used. The value is 4. 3599 UpgradeSortOrderReverseNumeric UpgradeSortOrder = "ReverseNumeric" 3600) 3601 3602// PossibleUpgradeSortOrderValues returns an array of possible values for the UpgradeSortOrder const type. 3603func PossibleUpgradeSortOrderValues() []UpgradeSortOrder { 3604 return []UpgradeSortOrder{UpgradeSortOrderDefault, UpgradeSortOrderInvalid, UpgradeSortOrderLexicographical, UpgradeSortOrderNumeric, UpgradeSortOrderReverseLexicographical, UpgradeSortOrderReverseNumeric} 3605} 3606 3607// UpgradeState enumerates the values for upgrade state. 3608type UpgradeState string 3609 3610const ( 3611 // UpgradeStateFailed The upgrade has failed and is unable to execute FailureAction. The value is 6 3612 UpgradeStateFailed UpgradeState = "Failed" 3613 // UpgradeStateInvalid Indicates the upgrade state is invalid. All Service Fabric enumerations have the 3614 // invalid type. The value is zero. 3615 UpgradeStateInvalid UpgradeState = "Invalid" 3616 // UpgradeStateRollingBackCompleted The upgrade has finished rolling back. The value is 2 3617 UpgradeStateRollingBackCompleted UpgradeState = "RollingBackCompleted" 3618 // UpgradeStateRollingBackInProgress The upgrade is rolling back to the previous version but is not 3619 // complete yet. The value is 1 3620 UpgradeStateRollingBackInProgress UpgradeState = "RollingBackInProgress" 3621 // UpgradeStateRollingForwardCompleted The upgrade has finished rolling forward. The value is 5 3622 UpgradeStateRollingForwardCompleted UpgradeState = "RollingForwardCompleted" 3623 // UpgradeStateRollingForwardInProgress The upgrade is rolling forward to the target version but is not 3624 // complete yet. The value is 4 3625 UpgradeStateRollingForwardInProgress UpgradeState = "RollingForwardInProgress" 3626 // UpgradeStateRollingForwardPending The current upgrade domain has finished upgrading. The overall upgrade 3627 // is waiting for an explicit move next request in UnmonitoredManual mode or performing health checks in 3628 // Monitored mode. The value is 3 3629 UpgradeStateRollingForwardPending UpgradeState = "RollingForwardPending" 3630) 3631 3632// PossibleUpgradeStateValues returns an array of possible values for the UpgradeState const type. 3633func PossibleUpgradeStateValues() []UpgradeState { 3634 return []UpgradeState{UpgradeStateFailed, UpgradeStateInvalid, UpgradeStateRollingBackCompleted, UpgradeStateRollingBackInProgress, UpgradeStateRollingForwardCompleted, UpgradeStateRollingForwardInProgress, UpgradeStateRollingForwardPending} 3635} 3636 3637// UpgradeType enumerates the values for upgrade type. 3638type UpgradeType string 3639 3640const ( 3641 // UpgradeTypeInvalid Indicates the upgrade kind is invalid. All Service Fabric enumerations have the 3642 // invalid type. The value is zero. 3643 UpgradeTypeInvalid UpgradeType = "Invalid" 3644 // UpgradeTypeRolling The upgrade progresses one upgrade domain at a time. The value is 1. 3645 UpgradeTypeRolling UpgradeType = "Rolling" 3646 // UpgradeTypeRollingForceRestart The upgrade gets restarted by force. The value is 2. 3647 UpgradeTypeRollingForceRestart UpgradeType = "Rolling_ForceRestart" 3648) 3649 3650// PossibleUpgradeTypeValues returns an array of possible values for the UpgradeType const type. 3651func PossibleUpgradeTypeValues() []UpgradeType { 3652 return []UpgradeType{UpgradeTypeInvalid, UpgradeTypeRolling, UpgradeTypeRollingForceRestart} 3653} 3654 3655// VolumeProvider enumerates the values for volume provider. 3656type VolumeProvider string 3657 3658const ( 3659 // SFAzureFile Provides volumes that are backed by Azure Files. 3660 SFAzureFile VolumeProvider = "SFAzureFile" 3661) 3662 3663// PossibleVolumeProviderValues returns an array of possible values for the VolumeProvider const type. 3664func PossibleVolumeProviderValues() []VolumeProvider { 3665 return []VolumeProvider{SFAzureFile} 3666} 3667