github.com/hashicorp/terraform-plugin-sdk@v1.17.2/internal/plans/action_string.go (about) 1 // Code generated by "stringer -type Action"; DO NOT EDIT. 2 3 package plans 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[NoOp-0] 12 _ = x[Create-43] 13 _ = x[Read-8592] 14 _ = x[Update-126] 15 _ = x[DeleteThenCreate-8723] 16 _ = x[CreateThenDelete-177] 17 _ = x[Delete-45] 18 } 19 20 const ( 21 _Action_name_0 = "NoOp" 22 _Action_name_1 = "Create" 23 _Action_name_2 = "Delete" 24 _Action_name_3 = "Update" 25 _Action_name_4 = "CreateThenDelete" 26 _Action_name_5 = "Read" 27 _Action_name_6 = "DeleteThenCreate" 28 ) 29 30 func (i Action) String() string { 31 switch { 32 case i == 0: 33 return _Action_name_0 34 case i == 43: 35 return _Action_name_1 36 case i == 45: 37 return _Action_name_2 38 case i == 126: 39 return _Action_name_3 40 case i == 177: 41 return _Action_name_4 42 case i == 8592: 43 return _Action_name_5 44 case i == 8723: 45 return _Action_name_6 46 default: 47 return "Action(" + strconv.FormatInt(int64(i), 10) + ")" 48 } 49 }