-
Notifications
You must be signed in to change notification settings - Fork 66
test: Add a sample generate_config yaml file. #2337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
3515982
4ffdfc4
dbf8d97
30d0fc3
9b40631
e418836
16ade90
23d8b91
d1177aa
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
suztomo marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#Required. | ||
gapic_generator_version: 2.30.0 | ||
blakeli0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#Required. | ||
googleapis-commitish: 4512234113a18c1fda1fb0d0ceac8f4b4efe9801 | ||
#Required. | ||
owlbot-cli-image: sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409 | ||
#Required. | ||
synthtool-commitish: 59fe44fde9866a26e7ee4e4450fd79f67f8cf599 | ||
#Required. | ||
python-version: 3.11.2 | ||
#Optional. The root folder name of generated client libraries. If empty, modules will be created under current folder, useful for single module | ||
destination-path: google-cloud-java | ||
suztomo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#Optional. This is a relative path to destination-path above. We will create a new versions.txt file if it is not specified | ||
versions_path: versions.txt | ||
blakeli0 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
#Required. | ||
products: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since gapic-generator-java updates don't reflect immediately in a single PR on google-cloud-java but rather gradually updating the libraries, would it make sense to have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think that's acceptable for now, but we should remove it and have the whole repo generated with a single version of generator all the time once we switch to the new process. |
||
#Required. Can be used for populating the folder name java-{api_shortName}. This is also the destination-name in new-client.py. | ||
- api_shortname: asset | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you write an example of java-bigtable, which combines two clients: bigtable and bigtable-admin? |
||
#Optional. The default value is the title of service yaml | ||
name-pretty: Cloud Asset | ||
#Required. | ||
library_type: GAPIC_AUTO | ||
#Optional. The default value is com.google.cloud | ||
group_id: com.google.cloud | ||
#Optional. The default value is google.cloud.{api_shortname} | ||
artifact_id: google.cloud.asset | ||
#Optiona. The default value is true. | ||
requires-billing: true | ||
#Optional. The default value is documentation.summary from service yaml | ||
api_description: | ||
#Optional. | ||
product_documentation: | ||
#Optional. | ||
client_documentation: | ||
#Optional. | ||
rest_documentation: | ||
#Optional. | ||
rpc_documentation: | ||
#Required. | ||
services: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What happens if there's a new version defined in googleapis? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A new service will be added. Are new versions of APIs automatically updated now? I guess yes with proper owlbot.yaml config? if so, we may want to automatically update it with a separate process, or replace owlbot.yaml's functionality with this file. That's probably why @suztomo mentioned this idea in the meeting. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Yes, OwlBot cli copies all versions of the services using I'm thinking the wrapper file (the one reading the config file and generate libraries) can find versioned directory within
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's better to explicit list them, and/or support a wildcard configuration like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the wildcard/regex is fine. |
||
#Required. This is a relative path to googleapis/googleapis. We'll parse all the parameters needed by generate_library.sh from BUILD.bazel in this folder. | ||
- proto_path: google/cloud/asset/v1 | ||
- proto_path: google/cloud/asset/v1p1beta1 | ||
- proto_path: google/cloud/asset/v1p2beta1 | ||
- proto_path: google/cloud/asset/v1p5beta1 | ||
- proto_path: google/cloud/asset/v1p7beta1 | ||
- api_shortname: speech | ||
library_type: GAPIC_AUTO | ||
services: | ||
- proto_path: google/cloud/asset/v1 | ||
proto_only: false | ||
|
Uh oh!
There was an error while loading. Please reload this page.