Skip to content

Commit

Permalink
fix(internal/gengapic): add workaround to a delete lro (#1398)
Browse files Browse the repository at this point in the history
Flowup to #1397
  • Loading branch information
codyoss committed Sep 22, 2023
1 parent aa995a4 commit 096e74d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/gengapic/lro.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,10 @@ func lroTypeName(m *descriptor.MethodDescriptorProto) string {
if t.Post == "/v1beta1/{parent=projects/*/locations/*/featureGroups/*}/features" {
return m.GetName() + "RegistryOperation"
}
case *annotations.HttpRule_Delete:
if t.Delete == "/v1beta1/{name=projects/*/locations/*/featureGroups/*/features/*}" {
return m.GetName() + "RegistryOperation"
}
}
}
return m.GetName() + "Operation"
Expand Down

0 comments on commit 096e74d

Please sign in to comment.