googleapis / googleapis/google-cloud-java

[sdk-platform-java] Generator is not generating all the root level resources in the proto files

Abierto
#12,402 1 comentario 0 reacciones 0 asignados Ver en GitHub
priority: p3 type: bug
Lenguaje dominante
Java
Estrellas
2.1k
Forks
1.2k
Merge medio
1 d 23 h
PR fusionados (30 d)
154

Descripción

See [this](yaqs/4937742893109477376#n15) and the earlier comments in the thread for more context.

Given two top level resources added to the proto file:
```
option (google.api.resource_definition) = {
type: "service.googleapis.com/FolderLocation"
pattern: "folders/{folder}/locations/{location}"
};

option (google.api.resource_definition) = {
type: "service.googleapis.com/OrganizationLocation"
pattern: "organizations/{organization}/locations/{location}"
};
```
It seems to only generate a resource for FolderLocation as `FolderLocationName`.

These resource definitions are the parent to a child resource:
```
message ChildResource {
option (google.api.resource) = {
type: "service.googleapis.com/ChildResource"
pattern: "organizations/{organization}/locations/{location}/things/{thing}"
pattern: "folders/{folder}/locations/{location}/things/{thing}"
plural: "childResource"
singular: "childResource"
};
}
```

These should map properly to the the two top level resource definitions, but it only seems to map to one.

We need to investigate why only one of these resources is being created.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.