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