@@ -27,7 +27,7 @@ func GenerateGoCode(input *codespec.Resource) string {
2727 switch tmplInputs .ResourceName {
2828 case "push_based_log_export_api" :
2929 tmplInputs .APIOperations .Create .Wait = & codetemplate.Wait {
30- StateAttribute : "State " ,
30+ StateAttribute : "state " ,
3131 PendingStates : []string {"INITIATING" , "BUCKET_VERIFIED" },
3232 TargetStates : []string {"ACTIVE" },
3333 TimeoutSeconds : 15 * 60 ,
@@ -36,7 +36,7 @@ func GenerateGoCode(input *codespec.Resource) string {
3636 }
3737 tmplInputs .APIOperations .Update .Wait = tmplInputs .APIOperations .Create .Wait
3838 tmplInputs .APIOperations .Delete .Wait = & codetemplate.Wait {
39- StateAttribute : "State " ,
39+ StateAttribute : "state " ,
4040 PendingStates : []string {"ACTIVE" , "INITIATING" , "BUCKET_VERIFIED" },
4141 TargetStates : []string {"UNCONFIGURED" , retrystrategy .RetryStrategyDeletedState }, // DELETED is a special state value when API returns 404 or empty object
4242 TimeoutSeconds : 15 * 60 ,
@@ -45,7 +45,7 @@ func GenerateGoCode(input *codespec.Resource) string {
4545 }
4646 case "search_deployment_api" :
4747 tmplInputs .APIOperations .Create .Wait = & codetemplate.Wait {
48- StateAttribute : "StateName " ,
48+ StateAttribute : "stateName " ,
4949 PendingStates : []string {"UPDATING" , "PAUSED" },
5050 TargetStates : []string {"IDLE" },
5151 TimeoutSeconds : 3 * 60 * 60 ,
@@ -54,7 +54,7 @@ func GenerateGoCode(input *codespec.Resource) string {
5454 }
5555 tmplInputs .APIOperations .Update .Wait = tmplInputs .APIOperations .Create .Wait
5656 tmplInputs .APIOperations .Delete .Wait = & codetemplate.Wait {
57- StateAttribute : "StateName " ,
57+ StateAttribute : "stateName " ,
5858 PendingStates : []string {"IDLE" , "UPDATING" , "PAUSED" },
5959 TargetStates : []string {retrystrategy .RetryStrategyDeletedState }, // DELETED is a special state value when API returns 404 or empty object
6060 TimeoutSeconds : 3 * 60 * 60 ,
0 commit comments