gapic-generator-java icon indicating copy to clipboard operation
gapic-generator-java copied to clipboard

chore: allow --api-path as option to generate cmd and generate per api/majorversion

Open zhumin8 opened this issue 9 months ago • 2 comments

This change allow generator to generate for a specified api-path. When "--api-path" is not specified, fallback to "--library-names", and behavior for existing command should not change.

For now, api-path should only take in path to api/version, e.g. google/cloud/functions/v2

-- Manual tests

python library_generation/cli/entry_point.py generate --output=/path/to/empty/output --generation-input=/path/to/gen-input --api-root=/path/to/googleapis --api-path=google/cloud/alloydb/v1

generate output

├── google-cloud-alloydb
│   ├── pom.xml                                                                            
│   ├── src                                                                                
│   │   ├── main                                                                           
│   │   │   ├──......                                                
│   │   │   │    └── v1  
├── google-cloud-alloydb-bom
├── grpc-google-cloud-alloydb-v1
├── owlbot.py
├── pom.xml
├── proto-google-cloud-alloydb-v1
├── README.md
└── samples

zhumin8 avatar Mar 18 '25 21:03 zhumin8

Thanks for the patience!https://github.com/googleapis/sdk-platform-java/pull/3726 has been merged and merging main should fix the generation IT.

diegomarquezp avatar Apr 02 '25 18:04 diegomarquezp