googleapis / googleapis/google-cloud-java

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

Đang mở
#12,402 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p3 type: bug
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.