Skip to content

Commit

Permalink
feat: [oslogin] add regions field to ImportSshPublicKeyRequest (#10205)
Browse files Browse the repository at this point in the history
* feat: add regions field to ImportSshPublicKeyRequest

PiperOrigin-RevId: 596667704

Source-Link: googleapis/googleapis@c340584

Source-Link: googleapis/googleapis-gen@53aa884
Copy-Tag: eyJwIjoiamF2YS1vcy1sb2dpbi8uT3dsQm90LnlhbWwiLCJoIjoiNTNhYTg4NDE2NzU3MTA0NDUwMWQwNzQyMjBlNjNhYmNkOThjNmFjMSJ9

* 🦉 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 Jan 9, 2024
1 parent 16e399f commit 96c4cd6
Show file tree
Hide file tree
Showing 6 changed files with 425 additions and 55 deletions.
Expand Up @@ -1057,6 +1057,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey(
* .setParent(UserName.of("[USER]").toString())
* .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build())
* .setProjectId("projectId-894832108")
* .addAllRegions(new ArrayList<String>())
* .build();
* ImportSshPublicKeyResponse response = osLoginServiceClient.importSshPublicKey(request);
* }
Expand Down Expand Up @@ -1088,6 +1089,7 @@ public final ImportSshPublicKeyResponse importSshPublicKey(ImportSshPublicKeyReq
* .setParent(UserName.of("[USER]").toString())
* .setSshPublicKey(OsLoginProto.SshPublicKey.newBuilder().build())
* .setProjectId("projectId-894832108")
* .addAllRegions(new ArrayList<String>())
* .build();
* ApiFuture<ImportSshPublicKeyResponse> future =
* osLoginServiceClient.importSshPublicKeyCallable().futureCall(request);
Expand Down
Expand Up @@ -258,6 +258,7 @@ public class HttpJsonOsLoginServiceStub extends OsLoginServiceStub {
ProtoRestSerializer<ImportSshPublicKeyRequest> serializer =
ProtoRestSerializer.create();
serializer.putQueryParam(fields, "projectId", request.getProjectId());
serializer.putQueryParam(fields, "regions", request.getRegionsList());
serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
return fields;
})
Expand Down

0 comments on commit 96c4cd6

Please sign in to comment.