Skip to content

Commit

Permalink
Regenerate containeranalysis client (#4762)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and andrey-qlogic committed Mar 28, 2019
1 parent f24c662 commit ba9d70a
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.common.collect.ImmutableMap;
import com.google.containeranalysis.v1beta1.GetScanConfigRequest;
import com.google.containeranalysis.v1beta1.ListScanConfigsRequest;
import com.google.containeranalysis.v1beta1.ListScanConfigsResponse;
Expand All @@ -37,6 +39,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -167,28 +170,82 @@ protected GrpcContainerAnalysisV1Beta1Stub(
GrpcCallSettings<SetIamPolicyRequest, Policy> setIamPolicyTransportSettings =
GrpcCallSettings.<SetIamPolicyRequest, Policy>newBuilder()
.setMethodDescriptor(setIamPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<SetIamPolicyRequest>() {
@Override
public Map<String, String> extract(SetIamPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("resource", String.valueOf(request.getResource()));
return params.build();
}
})
.build();
GrpcCallSettings<GetIamPolicyRequest, Policy> getIamPolicyTransportSettings =
GrpcCallSettings.<GetIamPolicyRequest, Policy>newBuilder()
.setMethodDescriptor(getIamPolicyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetIamPolicyRequest>() {
@Override
public Map<String, String> extract(GetIamPolicyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("resource", String.valueOf(request.getResource()));
return params.build();
}
})
.build();
GrpcCallSettings<TestIamPermissionsRequest, TestIamPermissionsResponse>
testIamPermissionsTransportSettings =
GrpcCallSettings.<TestIamPermissionsRequest, TestIamPermissionsResponse>newBuilder()
.setMethodDescriptor(testIamPermissionsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<TestIamPermissionsRequest>() {
@Override
public Map<String, String> extract(TestIamPermissionsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("resource", String.valueOf(request.getResource()));
return params.build();
}
})
.build();
GrpcCallSettings<GetScanConfigRequest, ScanConfig> getScanConfigTransportSettings =
GrpcCallSettings.<GetScanConfigRequest, ScanConfig>newBuilder()
.setMethodDescriptor(getScanConfigMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetScanConfigRequest>() {
@Override
public Map<String, String> extract(GetScanConfigRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListScanConfigsRequest, ListScanConfigsResponse>
listScanConfigsTransportSettings =
GrpcCallSettings.<ListScanConfigsRequest, ListScanConfigsResponse>newBuilder()
.setMethodDescriptor(listScanConfigsMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListScanConfigsRequest>() {
@Override
public Map<String, String> extract(ListScanConfigsRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateScanConfigRequest, ScanConfig> updateScanConfigTransportSettings =
GrpcCallSettings.<UpdateScanConfigRequest, ScanConfig>newBuilder()
.setMethodDescriptor(updateScanConfigMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateScanConfigRequest>() {
@Override
public Map<String, String> extract(UpdateScanConfigRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();

this.setIamPolicyCallable =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.common.collect.ImmutableMap;
import com.google.protobuf.Empty;
import io.grafeas.v1beta1.BatchCreateNotesRequest;
import io.grafeas.v1beta1.BatchCreateNotesResponse;
Expand Down Expand Up @@ -53,6 +55,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down Expand Up @@ -278,70 +281,206 @@ protected GrpcGrafeasV1Beta1Stub(
GrpcCallSettings<GetOccurrenceRequest, Occurrence> getOccurrenceTransportSettings =
GrpcCallSettings.<GetOccurrenceRequest, Occurrence>newBuilder()
.setMethodDescriptor(getOccurrenceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetOccurrenceRequest>() {
@Override
public Map<String, String> extract(GetOccurrenceRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListOccurrencesRequest, ListOccurrencesResponse>
listOccurrencesTransportSettings =
GrpcCallSettings.<ListOccurrencesRequest, ListOccurrencesResponse>newBuilder()
.setMethodDescriptor(listOccurrencesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListOccurrencesRequest>() {
@Override
public Map<String, String> extract(ListOccurrencesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteOccurrenceRequest, Empty> deleteOccurrenceTransportSettings =
GrpcCallSettings.<DeleteOccurrenceRequest, Empty>newBuilder()
.setMethodDescriptor(deleteOccurrenceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteOccurrenceRequest>() {
@Override
public Map<String, String> extract(DeleteOccurrenceRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<CreateOccurrenceRequest, Occurrence> createOccurrenceTransportSettings =
GrpcCallSettings.<CreateOccurrenceRequest, Occurrence>newBuilder()
.setMethodDescriptor(createOccurrenceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateOccurrenceRequest>() {
@Override
public Map<String, String> extract(CreateOccurrenceRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<BatchCreateOccurrencesRequest, BatchCreateOccurrencesResponse>
batchCreateOccurrencesTransportSettings =
GrpcCallSettings
.<BatchCreateOccurrencesRequest, BatchCreateOccurrencesResponse>newBuilder()
.setMethodDescriptor(batchCreateOccurrencesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<BatchCreateOccurrencesRequest>() {
@Override
public Map<String, String> extract(BatchCreateOccurrencesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateOccurrenceRequest, Occurrence> updateOccurrenceTransportSettings =
GrpcCallSettings.<UpdateOccurrenceRequest, Occurrence>newBuilder()
.setMethodDescriptor(updateOccurrenceMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateOccurrenceRequest>() {
@Override
public Map<String, String> extract(UpdateOccurrenceRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<GetOccurrenceNoteRequest, Note> getOccurrenceNoteTransportSettings =
GrpcCallSettings.<GetOccurrenceNoteRequest, Note>newBuilder()
.setMethodDescriptor(getOccurrenceNoteMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetOccurrenceNoteRequest>() {
@Override
public Map<String, String> extract(GetOccurrenceNoteRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<GetNoteRequest, Note> getNoteTransportSettings =
GrpcCallSettings.<GetNoteRequest, Note>newBuilder()
.setMethodDescriptor(getNoteMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetNoteRequest>() {
@Override
public Map<String, String> extract(GetNoteRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListNotesRequest, ListNotesResponse> listNotesTransportSettings =
GrpcCallSettings.<ListNotesRequest, ListNotesResponse>newBuilder()
.setMethodDescriptor(listNotesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListNotesRequest>() {
@Override
public Map<String, String> extract(ListNotesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteNoteRequest, Empty> deleteNoteTransportSettings =
GrpcCallSettings.<DeleteNoteRequest, Empty>newBuilder()
.setMethodDescriptor(deleteNoteMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteNoteRequest>() {
@Override
public Map<String, String> extract(DeleteNoteRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<CreateNoteRequest, Note> createNoteTransportSettings =
GrpcCallSettings.<CreateNoteRequest, Note>newBuilder()
.setMethodDescriptor(createNoteMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<CreateNoteRequest>() {
@Override
public Map<String, String> extract(CreateNoteRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<BatchCreateNotesRequest, BatchCreateNotesResponse>
batchCreateNotesTransportSettings =
GrpcCallSettings.<BatchCreateNotesRequest, BatchCreateNotesResponse>newBuilder()
.setMethodDescriptor(batchCreateNotesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<BatchCreateNotesRequest>() {
@Override
public Map<String, String> extract(BatchCreateNotesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateNoteRequest, Note> updateNoteTransportSettings =
GrpcCallSettings.<UpdateNoteRequest, Note>newBuilder()
.setMethodDescriptor(updateNoteMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateNoteRequest>() {
@Override
public Map<String, String> extract(UpdateNoteRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ListNoteOccurrencesRequest, ListNoteOccurrencesResponse>
listNoteOccurrencesTransportSettings =
GrpcCallSettings.<ListNoteOccurrencesRequest, ListNoteOccurrencesResponse>newBuilder()
.setMethodDescriptor(listNoteOccurrencesMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ListNoteOccurrencesRequest>() {
@Override
public Map<String, String> extract(ListNoteOccurrencesRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<GetVulnerabilityOccurrencesSummaryRequest, VulnerabilityOccurrencesSummary>
getVulnerabilityOccurrencesSummaryTransportSettings =
GrpcCallSettings
.<GetVulnerabilityOccurrencesSummaryRequest, VulnerabilityOccurrencesSummary>
newBuilder()
.setMethodDescriptor(getVulnerabilityOccurrencesSummaryMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetVulnerabilityOccurrencesSummaryRequest>() {
@Override
public Map<String, String> extract(
GetVulnerabilityOccurrencesSummaryRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();

this.getOccurrenceCallable =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-03-06T08:38:24.918772Z",
"updateTime": "2019-03-28T07:39:28.087076Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.16.15",
"dockerImage": "googleapis/artman@sha256:9caadfa59d48224cba5f3217eb9d61a155b78ccf31e628abef385bc5b7ed3bd2"
"version": "0.16.20",
"dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "856117505ff9075b3e9c0b5674113667b6cf9e00",
"internalRef": "236931378"
"sha": "6a84b3267b0a95e922608b9891219075047eee29",
"internalRef": "240640999"
}
}
],
Expand Down

0 comments on commit ba9d70a

Please sign in to comment.