2021-04-28 21:02:34 +02:00
|
|
|
// 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]
|
2021-09-23 02:58:41 +02:00
|
|
|
_ = x[ResourceInstanceDeleteBecauseNoResourceConfig-78]
|
|
|
|
_ = x[ResourceInstanceDeleteBecauseWrongRepetition-87]
|
|
|
|
_ = x[ResourceInstanceDeleteBecauseCountIndex-67]
|
|
|
|
_ = x[ResourceInstanceDeleteBecauseEachKey-69]
|
|
|
|
_ = x[ResourceInstanceDeleteBecauseNoModule-77]
|
2021-04-28 21:02:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const (
|
|
|
|
_ResourceInstanceChangeActionReason_name_0 = "ResourceInstanceChangeNoReason"
|
2021-09-23 02:58:41 +02:00
|
|
|
_ResourceInstanceChangeActionReason_name_1 = "ResourceInstanceDeleteBecauseCountIndex"
|
|
|
|
_ResourceInstanceChangeActionReason_name_2 = "ResourceInstanceDeleteBecauseEachKeyResourceInstanceReplaceBecauseCannotUpdate"
|
|
|
|
_ResourceInstanceChangeActionReason_name_3 = "ResourceInstanceDeleteBecauseNoModuleResourceInstanceDeleteBecauseNoResourceConfig"
|
|
|
|
_ResourceInstanceChangeActionReason_name_4 = "ResourceInstanceReplaceByRequest"
|
|
|
|
_ResourceInstanceChangeActionReason_name_5 = "ResourceInstanceReplaceBecauseTainted"
|
|
|
|
_ResourceInstanceChangeActionReason_name_6 = "ResourceInstanceDeleteBecauseWrongRepetition"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
|
|
|
_ResourceInstanceChangeActionReason_index_2 = [...]uint8{0, 36, 78}
|
|
|
|
_ResourceInstanceChangeActionReason_index_3 = [...]uint8{0, 37, 82}
|
2021-04-28 21:02:34 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func (i ResourceInstanceChangeActionReason) String() string {
|
|
|
|
switch {
|
|
|
|
case i == 0:
|
|
|
|
return _ResourceInstanceChangeActionReason_name_0
|
2021-09-23 02:58:41 +02:00
|
|
|
case i == 67:
|
2021-04-28 21:02:34 +02:00
|
|
|
return _ResourceInstanceChangeActionReason_name_1
|
2021-09-23 02:58:41 +02:00
|
|
|
case 69 <= i && i <= 70:
|
|
|
|
i -= 69
|
|
|
|
return _ResourceInstanceChangeActionReason_name_2[_ResourceInstanceChangeActionReason_index_2[i]:_ResourceInstanceChangeActionReason_index_2[i+1]]
|
|
|
|
case 77 <= i && i <= 78:
|
|
|
|
i -= 77
|
|
|
|
return _ResourceInstanceChangeActionReason_name_3[_ResourceInstanceChangeActionReason_index_3[i]:_ResourceInstanceChangeActionReason_index_3[i+1]]
|
2021-04-28 21:02:34 +02:00
|
|
|
case i == 82:
|
2021-09-23 02:58:41 +02:00
|
|
|
return _ResourceInstanceChangeActionReason_name_4
|
2021-04-28 21:02:34 +02:00
|
|
|
case i == 84:
|
2021-09-23 02:58:41 +02:00
|
|
|
return _ResourceInstanceChangeActionReason_name_5
|
|
|
|
case i == 87:
|
|
|
|
return _ResourceInstanceChangeActionReason_name_6
|
2021-04-28 21:02:34 +02:00
|
|
|
default:
|
|
|
|
return "ResourceInstanceChangeActionReason(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
|
|
}
|
|
|
|
}
|