Commit bf26ca1
authored
fix: prepare to generate grafeas (#2761)
In this PR:
- Add suffix to sample source folder
- Add unit tests
Context:
- The package name of grafeas is `io.grafeas.v1` which is not starts
with `com`. When copying samples to destination directory, we need to
change the suffix of source directory.
- grafeas doesn't have a valid api_id (empty string). Before this
change, the `api_id` will be populated as
`{library.api_shortname}.googleapis.com`, which is not correct. `api_id`
should not be populated to `.repo-metadata.json` if set to empty string.
With the library entry added in generation configuration:
```
- api_shortname: containeranalysis
name_pretty: Grafeas
product_documentation: https://grafeas.io
api_description: n/a
client_documentation: "https://cloud.google.com/java/docs/reference/grafeas/latest/overview"
release_level: stable
distribution_name: "io.grafeas:grafeas"
api_id: ""
codeowner_team: "@googleapis/aap-dpes"
library_name: grafeas
requires_billing: false
GAPICs:
- proto_path: grafeas/v1
```
The generated java-grafeas is in #108201 parent b8e5889 commit bf26ca1
File tree
7 files changed
+82
-15
lines changed- sdk-platform-java/library_generation
- test
- resources/test_mv_src
- gapic/destination/java_gapic_srcjar/src
- main/java
- test/java
- proto/destination/java_gapic_srcjar/proto/src/main/java
- samples
- destination_com/java_gapic_srcjar/samples/snippets/generated/src/main/java/com
- destination_io/java_gapic_srcjar/samples/snippets/generated/src/main/java/io
- utils
7 files changed
+82
-15
lines changedLines changed: 73 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
105 | 164 | | |
106 | 165 | | |
107 | 166 | | |
| |||
247 | 306 | | |
248 | 307 | | |
249 | 308 | | |
250 | | - | |
| 309 | + | |
251 | 310 | | |
252 | 311 | | |
253 | 312 | | |
| |||
266 | 325 | | |
267 | 326 | | |
268 | 327 | | |
269 | | - | |
| 328 | + | |
270 | 329 | | |
271 | 330 | | |
272 | 331 | | |
| |||
317 | 376 | | |
318 | 377 | | |
319 | 378 | | |
320 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
321 | 383 | | |
322 | 384 | | |
323 | 385 | | |
| |||
326 | 388 | | |
327 | 389 | | |
328 | 390 | | |
329 | | - | |
| 391 | + | |
330 | 392 | | |
331 | 393 | | |
332 | 394 | | |
333 | 395 | | |
334 | | - | |
| 396 | + | |
335 | 397 | | |
336 | 398 | | |
337 | 399 | | |
| |||
340 | 402 | | |
341 | 403 | | |
342 | 404 | | |
343 | | - | |
| 405 | + | |
344 | 406 | | |
345 | 407 | | |
346 | 408 | | |
347 | 409 | | |
348 | 410 | | |
349 | | - | |
| 411 | + | |
350 | 412 | | |
351 | 413 | | |
352 | 414 | | |
353 | | - | |
| 415 | + | |
354 | 416 | | |
355 | | - | |
356 | | - | |
| 417 | + | |
| 418 | + | |
357 | 419 | | |
358 | 420 | | |
359 | 421 | | |
360 | 422 | | |
361 | 423 | | |
362 | 424 | | |
363 | 425 | | |
364 | | - | |
| 426 | + | |
365 | 427 | | |
366 | 428 | | |
367 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | | - | |
47 | | - | |
48 | | - | |
| 53 | + | |
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
| |||
0 commit comments