Source-Date: Tue Feb 16 14:06:04 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: e8bc4471a88ac5f60defe3ed436f517174e59ba0
Source-Link: https://github.com/googleapis/googleapis/commit/e8bc4471a88ac5f60defe3ed436f517174e59ba0
---
.../v1/ContainerAnalysisClient.java | 197 ++++++++++++++++++
.../containeranalysis/v1/package-info.java | 8 +
.../v1/stub/GrpcContainerAnalysisStub.java | 4 +
.../v1/MockContainerAnalysisImpl.java | 32 ++-
synth.metadata | 6 +-
5 files changed, 240 insertions(+), 7 deletions(-)
diff --git a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java
index 1ed88581..bf4e0adb 100644
--- a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java
+++ b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java
@@ -53,6 +53,14 @@
* This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
*
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ResourceName resource = ProjectName.of("[PROJECT]");
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = containerAnalysisClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
* Note: close() needs to be called on the ContainerAnalysisClient object to clean up resources
* such as threads. In the example above, try-with-resources is used, which automatically calls
* close().
@@ -172,6 +180,16 @@ public ContainerAnalysisStub getStub() {
*
The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ResourceName resource = ProjectName.of("[PROJECT]");
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = containerAnalysisClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy is being specified. See the
* operation documentation for the appropriate value for this field.
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
@@ -197,6 +215,16 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * String resource = ProjectName.of("[PROJECT]").toString();
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = containerAnalysisClient.setIamPolicy(resource, policy);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy is being specified. See the
* operation documentation for the appropriate value for this field.
* @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the
@@ -219,6 +247,19 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .build();
+ * Policy response = containerAnalysisClient.setIamPolicy(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -236,6 +277,19 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
* Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * SetIamPolicyRequest request =
+ * SetIamPolicyRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .setPolicy(Policy.newBuilder().build())
+ * .build();
+ * ApiFuture future = containerAnalysisClient.setIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
*/
public final UnaryCallable setIamPolicyCallable() {
return stub.setIamPolicyCallable();
@@ -250,6 +304,15 @@ public final UnaryCallable setIamPolicyCallable() {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ResourceName resource = ProjectName.of("[PROJECT]");
+ * Policy response = containerAnalysisClient.getIamPolicy(resource);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -271,6 +334,15 @@ public final Policy getIamPolicy(ResourceName resource) {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * String resource = ProjectName.of("[PROJECT]").toString();
+ * Policy response = containerAnalysisClient.getIamPolicy(resource);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy is being requested. See the
* operation documentation for the appropriate value for this field.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
@@ -289,6 +361,19 @@ public final Policy getIamPolicy(String resource) {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * Policy response = containerAnalysisClient.getIamPolicy(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -306,6 +391,19 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
* Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * GetIamPolicyRequest request =
+ * GetIamPolicyRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .setOptions(GetPolicyOptions.newBuilder().build())
+ * .build();
+ * ApiFuture future = containerAnalysisClient.getIamPolicyCallable().futureCall(request);
+ * // Do something.
+ * Policy response = future.get();
+ * }
+ * }
*/
public final UnaryCallable getIamPolicyCallable() {
return stub.getIamPolicyCallable();
@@ -319,6 +417,17 @@ public final UnaryCallable getIamPolicyCallable() {
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ResourceName resource = ProjectName.of("[PROJECT]");
+ * List permissions = new ArrayList<>();
+ * TestIamPermissionsResponse response =
+ * containerAnalysisClient.testIamPermissions(resource, permissions);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy detail is being requested. See the
* operation documentation for the appropriate value for this field.
* @param permissions The set of permissions to check for the `resource`. Permissions with
@@ -344,6 +453,17 @@ public final TestIamPermissionsResponse testIamPermissions(
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * String resource = ProjectName.of("[PROJECT]").toString();
+ * List permissions = new ArrayList<>();
+ * TestIamPermissionsResponse response =
+ * containerAnalysisClient.testIamPermissions(resource, permissions);
+ * }
+ * }
+ *
* @param resource REQUIRED: The resource for which the policy detail is being requested. See the
* operation documentation for the appropriate value for this field.
* @param permissions The set of permissions to check for the `resource`. Permissions with
@@ -369,6 +489,19 @@ public final TestIamPermissionsResponse testIamPermissions(
* The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
+ *
Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * TestIamPermissionsResponse response = containerAnalysisClient.testIamPermissions(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -385,6 +518,20 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
*
* Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * TestIamPermissionsRequest request =
+ * TestIamPermissionsRequest.newBuilder()
+ * .setResource(ProjectName.of("[PROJECT]").toString())
+ * .addAllPermissions(new ArrayList())
+ * .build();
+ * ApiFuture future =
+ * containerAnalysisClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something.
+ * TestIamPermissionsResponse response = future.get();
+ * }
+ * }
*/
public final UnaryCallable
testIamPermissionsCallable() {
@@ -395,6 +542,17 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
/**
* Gets a summary of the number and severity of occurrences.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ProjectName parent = ProjectName.of("[PROJECT]");
+ * String filter = "filter-1274492040";
+ * VulnerabilityOccurrencesSummary response =
+ * containerAnalysisClient.getVulnerabilityOccurrencesSummary(parent, filter);
+ * }
+ * }
+ *
* @param parent The name of the project to get a vulnerability summary for in the form of
* `projects/[PROJECT_ID]`.
* @param filter The filter expression.
@@ -414,6 +572,17 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
/**
* Gets a summary of the number and severity of occurrences.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * String parent = ProjectName.of("[PROJECT]").toString();
+ * String filter = "filter-1274492040";
+ * VulnerabilityOccurrencesSummary response =
+ * containerAnalysisClient.getVulnerabilityOccurrencesSummary(parent, filter);
+ * }
+ * }
+ *
* @param parent The name of the project to get a vulnerability summary for in the form of
* `projects/[PROJECT_ID]`.
* @param filter The filter expression.
@@ -433,6 +602,20 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
/**
* Gets a summary of the number and severity of occurrences.
*
+ * Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * GetVulnerabilityOccurrencesSummaryRequest request =
+ * GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
+ * .setParent(ProjectName.of("[PROJECT]").toString())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * VulnerabilityOccurrencesSummary response =
+ * containerAnalysisClient.getVulnerabilityOccurrencesSummary(request);
+ * }
+ * }
+ *
* @param request The request object containing all of the parameters for the API call.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -446,6 +629,20 @@ public final VulnerabilityOccurrencesSummary getVulnerabilityOccurrencesSummary(
* Gets a summary of the number and severity of occurrences.
*
* Sample code:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * GetVulnerabilityOccurrencesSummaryRequest request =
+ * GetVulnerabilityOccurrencesSummaryRequest.newBuilder()
+ * .setParent(ProjectName.of("[PROJECT]").toString())
+ * .setFilter("filter-1274492040")
+ * .build();
+ * ApiFuture future =
+ * containerAnalysisClient.getVulnerabilityOccurrencesSummaryCallable().futureCall(request);
+ * // Do something.
+ * VulnerabilityOccurrencesSummary response = future.get();
+ * }
+ * }
*/
public final UnaryCallable<
GetVulnerabilityOccurrencesSummaryRequest, VulnerabilityOccurrencesSummary>
diff --git a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/package-info.java b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/package-info.java
index 20d05f6c..597ebd66 100644
--- a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/package-info.java
+++ b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/package-info.java
@@ -32,6 +32,14 @@
* to that note.
*
* Sample for ContainerAnalysisClient:
+ *
+ *
{@code
+ * try (ContainerAnalysisClient containerAnalysisClient = ContainerAnalysisClient.create()) {
+ * ResourceName resource = ProjectName.of("[PROJECT]");
+ * Policy policy = Policy.newBuilder().build();
+ * Policy response = containerAnalysisClient.setIamPolicy(resource, policy);
+ * }
+ * }
*/
@Generated("by gapic-generator-java")
package com.google.cloud.devtools.containeranalysis.v1;
diff --git a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/GrpcContainerAnalysisStub.java b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/GrpcContainerAnalysisStub.java
index 8bca88c1..051df17e 100644
--- a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/GrpcContainerAnalysisStub.java
+++ b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/GrpcContainerAnalysisStub.java
@@ -226,19 +226,23 @@ public GrpcOperationsStub getOperationsStub() {
return operationsStub;
}
+ @Override
public UnaryCallable setIamPolicyCallable() {
return setIamPolicyCallable;
}
+ @Override
public UnaryCallable getIamPolicyCallable() {
return getIamPolicyCallable;
}
+ @Override
public UnaryCallable
testIamPermissionsCallable() {
return testIamPermissionsCallable;
}
+ @Override
public UnaryCallable
getVulnerabilityOccurrencesSummaryCallable() {
return getVulnerabilityOccurrencesSummaryCallable;
diff --git a/google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/MockContainerAnalysisImpl.java b/google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/MockContainerAnalysisImpl.java
index ee65fb5d..936c608a 100644
--- a/google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/MockContainerAnalysisImpl.java
+++ b/google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/MockContainerAnalysisImpl.java
@@ -75,7 +75,13 @@ public void setIamPolicy(SetIamPolicyRequest request, StreamObserver res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method SetIamPolicy, expected %s or %s",
+ response.getClass().getName(),
+ Policy.class.getName(),
+ Exception.class.getName())));
}
}
@@ -89,7 +95,13 @@ public void getIamPolicy(GetIamPolicyRequest request, StreamObserver res
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GetIamPolicy, expected %s or %s",
+ response.getClass().getName(),
+ Policy.class.getName(),
+ Exception.class.getName())));
}
}
@@ -105,7 +117,13 @@ public void testIamPermissions(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method TestIamPermissions, expected %s or %s",
+ response.getClass().getName(),
+ TestIamPermissionsResponse.class.getName(),
+ Exception.class.getName())));
}
}
@@ -121,7 +139,13 @@ public void getVulnerabilityOccurrencesSummary(
} else if (response instanceof Exception) {
responseObserver.onError(((Exception) response));
} else {
- responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ responseObserver.onError(
+ new IllegalArgumentException(
+ String.format(
+ "Unrecognized response type %s for method GetVulnerabilityOccurrencesSummary, expected %s or %s",
+ response.getClass().getName(),
+ VulnerabilityOccurrencesSummary.class.getName(),
+ Exception.class.getName())));
}
}
}
diff --git a/synth.metadata b/synth.metadata
index 989fd3b1..84c1cba3 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "6b9f88aad1d512c8080f797768dd05660630047d"
+ "sha": "76a20e87ca73b574ae8e7d15cd94eeae6ea0ce82"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "cb7fc620590382a4a2ea6ffdf6f51ae0e77bbbb5",
- "internalRef": "334682521"
+ "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
+ "internalRef": "357800868"
}
},
{
From 4d7dd2c46cf0f5ed7b721723080642d9eef82370 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Tue, 23 Feb 2021 09:40:06 -0800
Subject: [PATCH 03/12] chore: regenerate README (#462)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2021-02-23 17:24:37,860 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-containeranalysis/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-02-23 17:24:39,408 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
Full log will be available here:
https://source.cloud.google.com/results/invocations/72dccf6d-08de-47bc-9a41-77abd266097c/targets
- [ ] To automatically regenerate this PR, check this box.
---
.github/readme/synth.metadata/synth.metadata | 4 ++--
README.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index ed5f374a..82a268cb 100644
--- a/.github/readme/synth.metadata/synth.metadata
+++ b/.github/readme/synth.metadata/synth.metadata
@@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "979b50a50903ba0836bd516d3f759da9d97cc048"
+ "sha": "874915cb9c8f42c1e56824cd4a8de44affbc7dc9"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2"
+ "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012"
}
}
]
diff --git a/README.md b/README.md
index 63551f5f..a4551dfc 100644
--- a/README.md
+++ b/README.md
@@ -51,12 +51,12 @@ compile 'com.google.cloud:google-cloud-containeranalysis'
```
If you are using Gradle without BOM, add this to your dependencies
```Groovy
-compile 'com.google.cloud:google-cloud-containeranalysis:1.2.11'
+compile 'com.google.cloud:google-cloud-containeranalysis:1.2.29'
```
If you are using SBT, add this to your dependencies
```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "1.2.11"
+libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "1.2.29"
```
## Authentication
From d7f8a70b25e04b92507636bf70697e6ec0ff952b Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Tue, 23 Feb 2021 22:52:18 +0100
Subject: [PATCH 04/12] chore(deps): update dependency
com.google.cloud:google-cloud-containeranalysis to v1.2.29 (#460)
---
samples/install-without-bom/pom.xml | 2 +-
samples/snapshot/pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 0550d06b..7f2ca544 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-containeranalysis
- 1.2.11
+ 1.2.29
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index d2d365f7..e7c6f65f 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-containeranalysis
- 1.2.11
+ 1.2.29
From 792daa15c0a78a9e68df445ce36fe0c7d9f47469 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Tue, 23 Feb 2021 14:06:04 -0800
Subject: [PATCH 05/12] chore: regenerate README (#463)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2021-02-23 21:54:38,293 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-containeranalysis/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-02-23 21:54:39,850 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
Full log will be available here:
https://source.cloud.google.com/results/invocations/96329685-16fc-4450-9397-a10dea8a2347/targets
- [ ] To automatically regenerate this PR, check this box.
---
.github/readme/synth.metadata/synth.metadata | 2 +-
README.md | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index 82a268cb..0e84b0eb 100644
--- a/.github/readme/synth.metadata/synth.metadata
+++ b/.github/readme/synth.metadata/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "874915cb9c8f42c1e56824cd4a8de44affbc7dc9"
+ "sha": "d7f8a70b25e04b92507636bf70697e6ec0ff952b"
}
},
{
diff --git a/README.md b/README.md
index a4551dfc..f8ed673c 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ If you are using Maven without BOM, add this to your dependencies:
com.google.cloud
google-cloud-containeranalysis
- 1.2.11
+ 1.2.29
```
From 2e2ae27571f0cadb97a55dfed24edb7e861d875c Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 24 Feb 2021 10:18:45 -0800
Subject: [PATCH 06/12] chore: release gapic-generator-java v0.0.21 with
gapic_metadata.json support (#464)
Committer: @miraleung
PiperOrigin-RevId: 358516065
Source-Author: Google APIs
Source-Date: Fri Feb 19 17:43:23 2021 -0800
Source-Repo: googleapis/googleapis
Source-Sha: af8f71dae961ee036a0ac52a1965270149a6b2c9
Source-Link: https://github.com/googleapis/googleapis/commit/af8f71dae961ee036a0ac52a1965270149a6b2c9
---
.../containeranalysis/v1/gapic_metadata.json | 30 +++++++++++++++++++
synth.metadata | 7 +++--
2 files changed, 34 insertions(+), 3 deletions(-)
create mode 100644 google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/gapic_metadata.json
diff --git a/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/gapic_metadata.json b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/gapic_metadata.json
new file mode 100644
index 00000000..bfd2bb81
--- /dev/null
+++ b/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/gapic_metadata.json
@@ -0,0 +1,30 @@
+{
+ "schema": "1.0",
+ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
+ "language": "java",
+ "protoPackage": "google.devtools.containeranalysis.v1",
+ "libraryPackage": "com.google.cloud.devtools.containeranalysis.v1",
+ "services": {
+ "ContainerAnalysis": {
+ "clients": {
+ "grpc": {
+ "libraryClient": "ContainerAnalysisClient",
+ "rpcs": {
+ "GetIamPolicy": {
+ "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
+ },
+ "GetVulnerabilityOccurrencesSummary": {
+ "methods": ["getVulnerabilityOccurrencesSummary", "getVulnerabilityOccurrencesSummary", "getVulnerabilityOccurrencesSummary", "getVulnerabilityOccurrencesSummaryCallable"]
+ },
+ "SetIamPolicy": {
+ "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"]
+ },
+ "TestIamPermissions": {
+ "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"]
+ }
+ }
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/synth.metadata b/synth.metadata
index 84c1cba3..b1dc0514 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "76a20e87ca73b574ae8e7d15cd94eeae6ea0ce82"
+ "sha": "792daa15c0a78a9e68df445ce36fe0c7d9f47469"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "e8bc4471a88ac5f60defe3ed436f517174e59ba0",
- "internalRef": "357800868"
+ "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
+ "internalRef": "358516065"
}
},
{
@@ -103,6 +103,7 @@
"codecov.yaml",
"google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisClient.java",
"google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/ContainerAnalysisSettings.java",
+ "google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/gapic_metadata.json",
"google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/package-info.java",
"google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStub.java",
"google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/ContainerAnalysisStubSettings.java",
From 5ded9131b11ce7f314e38a1d1edc16222000abe5 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Wed, 24 Feb 2021 19:19:57 +0100
Subject: [PATCH 07/12] chore(deps): update dependency
com.google.cloud:libraries-bom to v17 (#465)
---
samples/snippets/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 9b00f194..530c5b67 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 16.4.0
+ 17.0.0
pom
import
From a4908763554ea3fe10f94c511a2b556cefcaf46d Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 24 Feb 2021 10:28:02 -0800
Subject: [PATCH 08/12] chore: regenerate README (#466)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2021-02-24 18:21:09,745 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-containeranalysis/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-02-24 18:21:11,279 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
Full log will be available here:
https://source.cloud.google.com/results/invocations/12b007dc-f354-4f74-982b-e71835587e32/targets
- [ ] To automatically regenerate this PR, check this box.
---
.github/readme/synth.metadata/synth.metadata | 2 +-
README.md | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index 0e84b0eb..2568254c 100644
--- a/.github/readme/synth.metadata/synth.metadata
+++ b/.github/readme/synth.metadata/synth.metadata
@@ -4,7 +4,7 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "d7f8a70b25e04b92507636bf70697e6ec0ff952b"
+ "sha": "5ded9131b11ce7f314e38a1d1edc16222000abe5"
}
},
{
diff --git a/README.md b/README.md
index f8ed673c..30dc8ff5 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloud
libraries-bom
- 16.4.0
+ 17.0.0
pom
import
@@ -45,7 +45,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies
```Groovy
-implementation platform('com.google.cloud:libraries-bom:16.4.0')
+implementation platform('com.google.cloud:libraries-bom:17.0.0')
compile 'com.google.cloud:google-cloud-containeranalysis'
```
From 2f8c44bfc7165dfd6cc37f8661402a488d4447e8 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 25 Feb 2021 01:56:27 +0100
Subject: [PATCH 09/12] chore(deps): update dependency
com.google.cloud:libraries-bom to v18 (#467)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Renovate configuration
:date: **Schedule**: At any time (no schedule defined).
:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-containeranalysis).
---
samples/snippets/pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 530c5b67..6dc029c4 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -30,7 +30,7 @@
com.google.cloud
libraries-bom
- 17.0.0
+ 18.0.0
pom
import
From a73c2f66b6ea5cc41df7cd6daae0bcbda0744856 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot
Date: Wed, 24 Feb 2021 17:20:07 -0800
Subject: [PATCH 10/12] chore: regenerate README (#468)
This PR was generated using Autosynth. :rainbow:
Log from Synthtool
```
2021-02-25 00:59:35,496 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-containeranalysis/.github/readme/synth.py.
On branch autosynth-readme
nothing to commit, working tree clean
2021-02-25 00:59:36,990 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata.
```
Full log will be available here:
https://source.cloud.google.com/results/invocations/f81b2616-d3f6-4582-aa7e-53b007e6b2bc/targets
- [ ] To automatically regenerate this PR, check this box.
---
.github/readme/synth.metadata/synth.metadata | 4 ++--
README.md | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata
index 2568254c..28f894ee 100644
--- a/.github/readme/synth.metadata/synth.metadata
+++ b/.github/readme/synth.metadata/synth.metadata
@@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-containeranalysis.git",
- "sha": "5ded9131b11ce7f314e38a1d1edc16222000abe5"
+ "sha": "2f8c44bfc7165dfd6cc37f8661402a488d4447e8"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "79ab0b44a2cc7d803d07c107f9faf07729fc4012"
+ "sha": "0199c79b8324fba66476300824aa931788c47e2d"
}
}
]
diff --git a/README.md b/README.md
index 30dc8ff5..c297fba9 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file
com.google.cloud
libraries-bom
- 17.0.0
+ 18.0.0
pom
import
@@ -45,7 +45,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies
```Groovy
-implementation platform('com.google.cloud:libraries-bom:17.0.0')
+implementation platform('com.google.cloud:libraries-bom:18.0.0')
compile 'com.google.cloud:google-cloud-containeranalysis'
```
From 6176e530d2474cfcfdf5fb9142b68293ba7961a8 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 25 Feb 2021 20:38:07 +0100
Subject: [PATCH 11/12] build(deps): update dependency
com.google.cloud:google-cloud-shared-config to v0.11.0 (#469)
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `0.10.0` -> `0.11.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-config
### [`v0.11.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#0110-httpswwwgithubcomgoogleapisjava-shared-configcomparev0100v0110-2021-02-25)
[Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0)
##### Features
- migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15))
##### Dependencies
- update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6))
- update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413))
---
### Renovate configuration
:date: **Schedule**: At any time (no schedule defined).
:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, check this box
---
This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-containeranalysis).
---
google-cloud-containeranalysis-bom/pom.xml | 2 +-
pom.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/google-cloud-containeranalysis-bom/pom.xml b/google-cloud-containeranalysis-bom/pom.xml
index 163b5cf6..eaa59227 100644
--- a/google-cloud-containeranalysis-bom/pom.xml
+++ b/google-cloud-containeranalysis-bom/pom.xml
@@ -8,7 +8,7 @@
com.google.cloud
google-cloud-shared-config
- 0.10.0
+ 0.11.0
Google Cloud Container Analysis BOM
diff --git a/pom.xml b/pom.xml
index 1a65fac8..068a6254 100644
--- a/pom.xml
+++ b/pom.xml
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 0.10.0
+ 0.11.0
From c5380c836f6ac7fa1e69a6bb7b6771c5468ca444 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 25 Feb 2021 15:18:27 -0500
Subject: [PATCH 12/12] chore(master): release 1.2.13 (#461)
* chore(master): release 1.2.13
* retrigger checks
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Shabir Abdul Samadh <7249208+Shabirmean@users.noreply.github.com>
---
CHANGELOG.md | 7 +++++++
google-cloud-containeranalysis-bom/pom.xml | 12 ++++++------
google-cloud-containeranalysis/pom.xml | 4 ++--
grpc-google-cloud-containeranalysis-v1/pom.xml | 4 ++--
grpc-google-cloud-containeranalysis-v1beta1/pom.xml | 4 ++--
pom.xml | 12 ++++++------
proto-google-cloud-containeranalysis-v1/pom.xml | 4 ++--
proto-google-cloud-containeranalysis-v1beta1/pom.xml | 4 ++--
versions.txt | 10 +++++-----
9 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc1a23fd..cb108139 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+### [1.2.13](https://www.github.com/googleapis/java-containeranalysis/compare/v1.2.12...v1.2.13) (2021-02-25)
+
+
+### Documentation
+
+* generate samples in gapic client classes ([#454](https://www.github.com/googleapis/java-containeranalysis/issues/454)) ([874915c](https://www.github.com/googleapis/java-containeranalysis/commit/874915cb9c8f42c1e56824cd4a8de44affbc7dc9))
+
### [1.2.12](https://www.github.com/googleapis/java-containeranalysis/compare/v1.2.11...v1.2.12) (2021-02-23)
diff --git a/google-cloud-containeranalysis-bom/pom.xml b/google-cloud-containeranalysis-bom/pom.xml
index eaa59227..5c98262f 100644
--- a/google-cloud-containeranalysis-bom/pom.xml
+++ b/google-cloud-containeranalysis-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-containeranalysis-bom
- 1.2.30-SNAPSHOT
+ 1.2.30
pom
com.google.cloud
@@ -64,27 +64,27 @@
com.google.api.grpc
proto-google-cloud-containeranalysis-v1
- 1.2.30-SNAPSHOT
+ 1.2.30
com.google.api.grpc
grpc-google-cloud-containeranalysis-v1beta1
- 0.88.30-SNAPSHOT
+ 0.88.30
com.google.cloud
google-cloud-containeranalysis
- 1.2.30-SNAPSHOT
+ 1.2.30
com.google.api.grpc
grpc-google-cloud-containeranalysis-v1
- 1.2.30-SNAPSHOT
+ 1.2.30
com.google.api.grpc
proto-google-cloud-containeranalysis-v1beta1
- 0.88.30-SNAPSHOT
+ 0.88.30