From 7f0f2469311f30485aeab1b47370c8a04c087555 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Thu, 28 Mar 2019 00:50:32 -0700 Subject: [PATCH] Regenerate os-login client --- .../v1/stub/GrpcOsLoginServiceStub.java | 57 +++++++++++++++++++ .../google-cloud-os-login/synth.metadata | 10 ++-- 2 files changed, 62 insertions(+), 5 deletions(-) diff --git a/google-cloud-clients/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java b/google-cloud-clients/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java index 5786fcab9913..aacd559ba3a6 100644 --- a/google-cloud-clients/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java +++ b/google-cloud-clients/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/GrpcOsLoginServiceStub.java @@ -21,6 +21,7 @@ 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.cloud.oslogin.common.OsLoginProto.SshPublicKey; import com.google.cloud.oslogin.v1.DeletePosixAccountRequest; @@ -31,10 +32,12 @@ import com.google.cloud.oslogin.v1.ImportSshPublicKeyResponse; import com.google.cloud.oslogin.v1.LoginProfile; import com.google.cloud.oslogin.v1.UpdateSshPublicKeyRequest; +import com.google.common.collect.ImmutableMap; import com.google.protobuf.Empty; 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; @@ -158,27 +161,81 @@ protected GrpcOsLoginServiceStub( GrpcCallSettings deletePosixAccountTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePosixAccountMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeletePosixAccountRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings deleteSshPublicKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteSshPublicKeyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteSshPublicKeyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings getLoginProfileTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getLoginProfileMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetLoginProfileRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings getSshPublicKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getSshPublicKeyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetSshPublicKeyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); GrpcCallSettings importSshPublicKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(importSshPublicKeyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ImportSshPublicKeyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) .build(); GrpcCallSettings updateSshPublicKeyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateSshPublicKeyMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateSshPublicKeyRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) .build(); this.deletePosixAccountCallable = diff --git a/google-cloud-clients/google-cloud-os-login/synth.metadata b/google-cloud-clients/google-cloud-os-login/synth.metadata index c3771c843c06..c3ec97c890b4 100644 --- a/google-cloud-clients/google-cloud-os-login/synth.metadata +++ b/google-cloud-clients/google-cloud-os-login/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-03-01T08:48:43.656993Z", + "updateTime": "2019-03-28T07:50:32.379579Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.14", - "dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7" + "version": "0.16.20", + "dockerImage": "googleapis/artman@sha256:e3c054a2fb85a12481c722af616c7fb6f1d02d862248385eecbec3e4240ebd1e" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "41d72d444fbe445f4da89e13be02078734fb7875", - "internalRef": "236230004" + "sha": "6a84b3267b0a95e922608b9891219075047eee29", + "internalRef": "240640999" } } ],