Skip to content

Commit

Permalink
Regenerate os-login client (#4771)
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 a9dbeb4 commit e197b84
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;

Expand Down Expand Up @@ -158,27 +161,81 @@ protected GrpcOsLoginServiceStub(
GrpcCallSettings<DeletePosixAccountRequest, Empty> deletePosixAccountTransportSettings =
GrpcCallSettings.<DeletePosixAccountRequest, Empty>newBuilder()
.setMethodDescriptor(deletePosixAccountMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeletePosixAccountRequest>() {
@Override
public Map<String, String> extract(DeletePosixAccountRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<DeleteSshPublicKeyRequest, Empty> deleteSshPublicKeyTransportSettings =
GrpcCallSettings.<DeleteSshPublicKeyRequest, Empty>newBuilder()
.setMethodDescriptor(deleteSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<DeleteSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(DeleteSshPublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<GetLoginProfileRequest, LoginProfile> getLoginProfileTransportSettings =
GrpcCallSettings.<GetLoginProfileRequest, LoginProfile>newBuilder()
.setMethodDescriptor(getLoginProfileMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetLoginProfileRequest>() {
@Override
public Map<String, String> extract(GetLoginProfileRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<GetSshPublicKeyRequest, SshPublicKey> getSshPublicKeyTransportSettings =
GrpcCallSettings.<GetSshPublicKeyRequest, SshPublicKey>newBuilder()
.setMethodDescriptor(getSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<GetSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(GetSshPublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();
GrpcCallSettings<ImportSshPublicKeyRequest, ImportSshPublicKeyResponse>
importSshPublicKeyTransportSettings =
GrpcCallSettings.<ImportSshPublicKeyRequest, ImportSshPublicKeyResponse>newBuilder()
.setMethodDescriptor(importSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<ImportSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(ImportSshPublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("parent", String.valueOf(request.getParent()));
return params.build();
}
})
.build();
GrpcCallSettings<UpdateSshPublicKeyRequest, SshPublicKey> updateSshPublicKeyTransportSettings =
GrpcCallSettings.<UpdateSshPublicKeyRequest, SshPublicKey>newBuilder()
.setMethodDescriptor(updateSshPublicKeyMethodDescriptor)
.setParamsExtractor(
new RequestParamsExtractor<UpdateSshPublicKeyRequest>() {
@Override
public Map<String, String> extract(UpdateSshPublicKeyRequest request) {
ImmutableMap.Builder<String, String> params = ImmutableMap.builder();
params.put("name", String.valueOf(request.getName()));
return params.build();
}
})
.build();

this.deletePosixAccountCallable =
Expand Down
10 changes: 5 additions & 5 deletions google-cloud-clients/google-cloud-os-login/synth.metadata
Original file line number Diff line number Diff line change
@@ -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"
}
}
],
Expand Down

0 comments on commit e197b84

Please sign in to comment.