38 lines
1.3 KiB
Go
38 lines
1.3 KiB
Go
// Code generated by "stringer -type=ResourceInstanceChangeActionReason changes.go"; DO NOT EDIT.
|
|
|
|
package plans
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[ResourceInstanceChangeNoReason-0]
|
|
_ = x[ResourceInstanceReplaceBecauseTainted-84]
|
|
_ = x[ResourceInstanceReplaceByRequest-82]
|
|
_ = x[ResourceInstanceReplaceBecauseCannotUpdate-70]
|
|
}
|
|
|
|
const (
|
|
_ResourceInstanceChangeActionReason_name_0 = "ResourceInstanceChangeNoReason"
|
|
_ResourceInstanceChangeActionReason_name_1 = "ResourceInstanceReplaceBecauseCannotUpdate"
|
|
_ResourceInstanceChangeActionReason_name_2 = "ResourceInstanceReplaceByRequest"
|
|
_ResourceInstanceChangeActionReason_name_3 = "ResourceInstanceReplaceBecauseTainted"
|
|
)
|
|
|
|
func (i ResourceInstanceChangeActionReason) String() string {
|
|
switch {
|
|
case i == 0:
|
|
return _ResourceInstanceChangeActionReason_name_0
|
|
case i == 70:
|
|
return _ResourceInstanceChangeActionReason_name_1
|
|
case i == 82:
|
|
return _ResourceInstanceChangeActionReason_name_2
|
|
case i == 84:
|
|
return _ResourceInstanceChangeActionReason_name_3
|
|
default:
|
|
return "ResourceInstanceChangeActionReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|