Skip to content

Commit

Permalink
feat: add v1beta2 of secretmanager (#10577)
Browse files Browse the repository at this point in the history
* feat: add `v1beta2` of `secretmanager`

* add generated `v1beta2` files

* add grpc-common-protos

* remove deep-preserve for v1beta1

* correct preservation of ITs

* remove v1beta1 manually

* remove v1beta1 manually ii
  • Loading branch information
diegomarquezp authored Mar 21, 2024
1 parent 206d790 commit b87dd72
Show file tree
Hide file tree
Showing 169 changed files with 43,808 additions and 15,382 deletions.
1 change: 1 addition & 0 deletions generation_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,7 @@ libraries:
requires_billing: false
GAPICs:
- proto_path: google/cloud/secretmanager/v1
- proto_path: google/cloud/secretmanager/v1beta2

- api_shortname: securesourcemanager
name_pretty: Secure Source Manager API
Expand Down
14 changes: 5 additions & 9 deletions java-secretmanager/.OwlBot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,18 @@ deep-remove-regex:
- "/java-secretmanager/google-.*/src"

deep-preserve-regex:
- "/java-secretmanager/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java"
- "/java-secretmanager/proto-google-cloud-secretmanager-v1beta1"
- "/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1"
- "/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1"
- "/java-secretmanager/google-cloud-secretmanager/src/test/java/com/google/cloud/secretmanager/v1beta1"
- "/java-secretmanager/google-.*/src/test/java/com/google/cloud/.*/v1/it/IT.*Test.java"
- "/java-secretmanager/proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicName.java"


deep-copy-regex:
- source: "/google/cloud/secretmanager/(v\\d)/.*-java/proto-google-.*/src"
- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/proto-google-.*/src"
dest: "/owl-bot-staging/java-secretmanager/$1/proto-google-cloud-secretmanager-$1/src"
- source: "/google/cloud/secretmanager/(v\\d)/.*-java/grpc-google-.*/src"
- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/grpc-google-.*/src"
dest: "/owl-bot-staging/java-secretmanager/$1/grpc-google-cloud-secretmanager-$1/src"
- source: "/google/cloud/secretmanager/(v\\d)/.*-java/gapic-google-.*/src"
- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/gapic-google-.*/src"
dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src"
- source: "/google/cloud/secretmanager/(v\\d)/.*-java/samples/snippets/generated"
- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/samples/snippets/generated"
dest: "/owl-bot-staging/java-secretmanager/$1/samples/snippets/generated"

api-name: secretmanager
8 changes: 4 additions & 4 deletions java-secretmanager/google-cloud-secretmanager-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-secretmanager-v1beta1</artifactId>
<version>2.38.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-secretmanager-v1beta1:current} -->
<artifactId>grpc-google-cloud-secretmanager-v1beta2</artifactId>
<version>2.38.0-SNAPSHOT</version><!-- {x-version-update:grpc-google-cloud-secretmanager-v1beta2:current} -->
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
Expand All @@ -42,8 +42,8 @@
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-secretmanager-v1beta1</artifactId>
<version>2.38.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-secretmanager-v1beta1:current} -->
<artifactId>proto-google-cloud-secretmanager-v1beta2</artifactId>
<version>2.38.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-secretmanager-v1beta2:current} -->
</dependency>
</dependencies>
</dependencyManagement>
Expand Down
13 changes: 9 additions & 4 deletions java-secretmanager/google-cloud-secretmanager/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-iam-v1</artifactId>
<artifactId>proto-google-cloud-secretmanager-v1beta2</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-secretmanager-v1</artifactId>
<artifactId>proto-google-iam-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>proto-google-cloud-secretmanager-v1beta1</artifactId>
<artifactId>proto-google-cloud-secretmanager-v1</artifactId>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
Expand All @@ -72,6 +72,11 @@
<groupId>org.threeten</groupId>
<artifactId>threetenbp</artifactId>
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-common-protos</artifactId>
</dependency>


<!-- Test dependencies -->
<dependency>
Expand All @@ -91,7 +96,7 @@
</dependency>
<dependency>
<groupId>com.google.api.grpc</groupId>
<artifactId>grpc-google-cloud-secretmanager-v1beta1</artifactId>
<artifactId>grpc-google-cloud-secretmanager-v1beta2</artifactId>
<scope>test</scope>
</dependency>
<!-- Need testing utility classes for generated gRPC clients tests -->
Expand Down
Loading

0 comments on commit b87dd72

Please sign in to comment.