-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: always fully generate the repo if it is a non-monorepo or cont…
…ains common protos (#3162) In this PR: - Always perform a full generation in a non-monorepo or the repo contains common protos. - Secure generation workflow (use environment variable to avoid script injection), inspired by googleapis/java-bigtable#2317 This PR also brings changes in common protos and iam due to protoc updates (25.3 -> 25.4). --------- Co-authored-by: cloud-java-bot <cloud-java-bot@google.com>
- Loading branch information
Showing
7 changed files
with
173 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
library_generation/test/resources/test-config/monorepo_with_common_protos.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
googleapis_commitish: 6a474b31c53cc1797710206824a17b364a835d2d | ||
gapic_generator_version: 2.34.0 | ||
# the libraries are ordered with respect to library name, which is | ||
# java-{library.library_name} or java-{library.api-shortname} when | ||
# library.library_name is not defined. | ||
libraries: | ||
- api_shortname: common-protos | ||
name_pretty: Common Protos | ||
product_documentation: https://github.com/googleapis/api-common-protos | ||
api_description: Protobuf classes for Google's common protos. | ||
release_level: stable | ||
client_documentation: https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history | ||
distribution_name: com.google.api.grpc:proto-google-common-protos | ||
excluded_dependencies: "proto-google-common-protos,grpc-google-common-protos,proto-google-common-protos-parent" | ||
excluded_poms: "proto-google-common-protos-bom,proto-google-common-protos" | ||
library_type: OTHER | ||
GAPICs: | ||
- proto_path: google/api | ||
- proto_path: google/apps/card/v1 | ||
- proto_path: google/cloud | ||
- proto_path: google/cloud/audit | ||
- proto_path: google/cloud/location | ||
- proto_path: google/geo/type | ||
- proto_path: google/logging/type | ||
- proto_path: google/longrunning | ||
- proto_path: google/rpc | ||
- proto_path: google/rpc/context | ||
- proto_path: google/shopping/type | ||
- proto_path: google/type | ||
- api_shortname: iam | ||
name_pretty: IAM | ||
product_documentation: https://cloud.google.com/iam | ||
api_description: Manages access control for Google Cloud Platform resources | ||
release_level: stable | ||
client_documentation: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/overview | ||
distribution_name: com.google.api.grpc:proto-google-iam-v1 | ||
excluded_dependencies: "grpc-google-iam-v1" | ||
excluded_poms: "proto-google-iam-v1-bom,google-iam-policy,proto-google-iam-v1" | ||
library_type: OTHER | ||
GAPICs: | ||
- proto_path: google/iam/v1 | ||
- proto_path: google/iam/v2 | ||
- proto_path: google/iam/v2beta |
33 changes: 33 additions & 0 deletions
33
library_generation/test/resources/test-config/monorepo_without_common_protos.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
gapic_generator_version: 2.34.0 | ||
protoc_version: 25.2 | ||
googleapis_commitish: 1a45bf7393b52407188c82e63101db7dc9c72026 | ||
libraries_bom_version: 26.37.0 | ||
libraries: | ||
- api_shortname: cloudasset | ||
name_pretty: Cloud Asset Inventory | ||
product_documentation: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" | ||
api_description: "provides inventory services based on a time series database." | ||
library_name: "asset" | ||
client_documentation: "https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview" | ||
distribution_name: "com.google.cloud:google-cloud-asset" | ||
release_level: "stable" | ||
issue_tracker: "https://issuetracker.google.com/issues/new?component=187210&template=0" | ||
api_reference: "https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview" | ||
GAPICs: | ||
- 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: cloudbuild | ||
name_pretty: Cloud Build | ||
product_documentation: https://cloud.google.com/cloud-build/ | ||
api_description: lets you build software quickly across all languages. Get complete | ||
control over defining custom workflows for building, testing, and deploying across | ||
multiple environments such as VMs, serverless, Kubernetes, or Firebase. | ||
release_level: stable | ||
distribution_name: com.google.cloud:google-cloud-build | ||
issue_tracker: https://issuetracker.google.com/savedsearches/5226584 | ||
GAPICs: | ||
- proto_path: google/devtools/cloudbuild/v1 | ||
- proto_path: google/devtools/cloudbuild/v2 |