Skip to content

Commit

Permalink
feat: [run] Adds support for custom audiences (#9618)
Browse files Browse the repository at this point in the history
* feat: Adds support for custom audiences

Custom Audiences
 * The new field is found in https://cloud.google.com/run/docs/reference/rest/v2/projects.locations.services.
 * For more information, see https://cloud.google.com/run/docs/configuring/custom-audiences.

PiperOrigin-RevId: 546032394

Source-Link: googleapis/googleapis@96f0194

Source-Link: googleapis/googleapis-gen@f95d5ca
Copy-Tag: eyJwIjoiamF2YS1ydW4vLk93bEJvdC55YW1sIiwiaCI6ImY5NWQ1Y2FmYzU3MzBkZDFjNmUzMGFhMjM5NWUxYjM3YzQxMjJhZDgifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Jul 7, 2023
1 parent 6cebb8d commit 29d1eb1
Show file tree
Hide file tree
Showing 7 changed files with 490 additions and 69 deletions.
4 changes: 2 additions & 2 deletions java-run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>libraries-bom</artifactId>
<version>26.16.0</version>
<version>26.18.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down Expand Up @@ -201,7 +201,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.19.0
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.20.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ public void createServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -206,6 +207,7 @@ public void createServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -289,6 +291,7 @@ public void getServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -363,6 +366,7 @@ public void getServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -537,6 +541,7 @@ public void updateServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -579,6 +584,7 @@ public void updateServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -640,6 +646,7 @@ public void updateServiceExceptionTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -682,6 +689,7 @@ public void deleteServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -761,6 +769,7 @@ public void deleteServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public void createServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -213,6 +214,7 @@ public void createServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -295,6 +297,7 @@ public void getServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -363,6 +366,7 @@ public void getServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -519,6 +523,7 @@ public void updateServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -595,6 +600,7 @@ public void deleteServiceTest() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down Expand Up @@ -671,6 +677,7 @@ public void deleteServiceTest2() throws Exception {
RevisionName.of("[PROJECT]", "[LOCATION]", "[SERVICE]", "[REVISION]").toString())
.addAllTrafficStatuses(new ArrayList<TrafficTargetStatus>())
.setUri("uri116076")
.addAllCustomAudiences(new ArrayList<String>())
.setSatisfiesPzs(true)
.setReconciling(true)
.setEtag("etag3123477")
Expand Down
Loading

0 comments on commit 29d1eb1

Please sign in to comment.