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