Skip to content

Commit

Permalink
chore: add generation config (#2792)
Browse files Browse the repository at this point in the history
In this PR:
- Add a generation configuration containing `common-protos` and `iam`
- Rename `.OwlBot.yaml` to `.OwlBot-hermetic.yaml` and refactor deep
copy source dir.
- Generate libraries using latest image.
  • Loading branch information
JoeWang1127 authored May 23, 2024
1 parent cf44b07 commit 9677bc8
Show file tree
Hide file tree
Showing 446 changed files with 549 additions and 500 deletions.
57 changes: 57 additions & 0 deletions generation_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
gapic_generator_version: 2.40.2-SNAPSHOT
googleapis_commitish: 3d50414a7ff3f0b8ffe8ad7858257396e4f18131
template_excludes:
- .github/*
- .kokoro/*
- samples/*
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- LICENSE
- SECURITY.md
- java.header
- license-checks.xml
- README.md
- renovate.json
- .gitignore

# 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
Original file line number Diff line number Diff line change
Expand Up @@ -22,50 +22,50 @@ deep-preserve-regex:
- "/java-common-protos/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"

deep-copy-regex:
- source: "/google/api/google-api-java/proto-google-api-java/src"
- source: "/google/api/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/cloud/audit/google-cloud-audit-java/proto-google-cloud-audit-java/src"
- source: "/google/cloud/audit/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

# For geo common protos
- source: "/google/geo/type/google-geo-type-java/proto-google-geo-type-java/src"
- source: "/google/geo/type/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

# For shopping common protos
- source: "/google/shopping/type/google-shopping-type-java/proto-google-shopping-type-java/src"
- source: "/google/shopping/type/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

# It is only used once in https://github.com/googleapis/googleapis/blob/master/google/chat/v1/BUILD.bazel#L47,
# and technically not a common proto, maybe a violation of AIP-215 if it is not.
# However, it's better to put it here so that we don't have to manually add it to BUILD.bazel file and hermetic build scripts.
- source: "/google/apps/card/v1/google-apps-card-v1-java/proto-google-apps-card-v1-java/src"
- source: "/google/apps/card/v1/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/logging/type/google-logging-type-java/proto-google-logging-type-java/src"
- source: "/google/logging/type/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/longrunning/google-longrunning-java/proto-google-longrunning-java/src"
- source: "/google/longrunning/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/rpc/google-rpc-java/proto-google-rpc-java/src"
- source: "/google/rpc/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/rpc/context/google-context-java/proto-google-context-java/src"
- source: "/google/rpc/context/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/type/google-type-java/proto-google-type-java/src"
- source: "/google/type/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/cloud/google-apps-script-type-java/proto-google-apps-script-type-java/src"
- source: "/google/cloud/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/cloud/location/google-cloud-location-java/proto-google-cloud-location-java/src"
- source: "/google/cloud/location/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src"

- source: "/google/cloud/location/google-cloud-location-java/grpc-google-cloud-location-java/src"
- source: "/google/cloud/location/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src"

- source: "/google/longrunning/google-longrunning-java/grpc-google-longrunning-java/src"
- source: "/google/longrunning/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/java-common-protos/v1/grpc-google-common-protos/src"
api-name: common-protos
6 changes: 3 additions & 3 deletions java-common-protos/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"client_documentation": "https://cloud.google.com/java/docs/reference/proto-google-common-protos/latest/history",
"release_level": "stable",
"transport": "grpc",
"requires_billing": true,
"language": "java",
"repo": "googleapis/sdk-platform-java",
"repo_short": "java-common-protos",
"library_type": "OTHER",
"distribution_name": "com.google.api.grpc:proto-google-common-protos",
"library_type": "OTHER",
"requires_billing": true,
"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"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google LLC
* Copyright 2024 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 9677bc8

Please sign in to comment.