@@ -28,44 +28,62 @@ option java_outer_classname = "OsLoginProto";
2828option java_package = "com.google.cloud.oslogin.v1beta" ;
2929option php_namespace = "Google\\Cloud\\OsLogin\\V1beta" ;
3030
31-
3231// Cloud OS Login API
3332//
3433// The Cloud OS Login API allows you to manage users and their associated SSH
3534// public keys for logging into virtual machines on Google Cloud Platform.
3635service OsLoginService {
3736 // Deletes a POSIX account.
38- rpc DeletePosixAccount (DeletePosixAccountRequest ) returns (google .protobuf .Empty ) {
39- option (google.api.http ) = { delete : "/v1beta/{name=users/*/projects/*}" };
37+ rpc DeletePosixAccount (DeletePosixAccountRequest )
38+ returns (google .protobuf .Empty ) {
39+ option (google.api.http ) = {
40+ delete : "/v1beta/{name=users/*/projects/*}"
41+ };
4042 }
4143
4244 // Deletes an SSH public key.
43- rpc DeleteSshPublicKey (DeleteSshPublicKeyRequest ) returns (google .protobuf .Empty ) {
44- option (google.api.http ) = { delete : "/v1beta/{name=users/*/sshPublicKeys/*}" };
45+ rpc DeleteSshPublicKey (DeleteSshPublicKeyRequest )
46+ returns (google .protobuf .Empty ) {
47+ option (google.api.http ) = {
48+ delete : "/v1beta/{name=users/*/sshPublicKeys/*}"
49+ };
4550 }
4651
4752 // Retrieves the profile information used for logging in to a virtual machine
4853 // on Google Compute Engine.
4954 rpc GetLoginProfile (GetLoginProfileRequest ) returns (LoginProfile ) {
50- option (google.api.http ) = { get : "/v1beta/{name=users/*}/loginProfile" };
55+ option (google.api.http ) = {
56+ get : "/v1beta/{name=users/*}/loginProfile"
57+ };
5158 }
5259
5360 // Retrieves an SSH public key.
54- rpc GetSshPublicKey (GetSshPublicKeyRequest ) returns (google .cloud .oslogin .common .SshPublicKey ) {
55- option (google.api.http ) = { get : "/v1beta/{name=users/*/sshPublicKeys/*}" };
61+ rpc GetSshPublicKey (GetSshPublicKeyRequest )
62+ returns (google .cloud .oslogin .common .SshPublicKey ) {
63+ option (google.api.http ) = {
64+ get : "/v1beta/{name=users/*/sshPublicKeys/*}"
65+ };
5666 }
5767
5868 // Adds an SSH public key and returns the profile information. Default POSIX
5969 // account information is set when no username and UID exist as part of the
6070 // login profile.
61- rpc ImportSshPublicKey (ImportSshPublicKeyRequest ) returns (ImportSshPublicKeyResponse ) {
62- option (google.api.http ) = { post : "/v1beta/{parent=users/*}:importSshPublicKey" body: "ssh_public_key" };
71+ rpc ImportSshPublicKey (ImportSshPublicKeyRequest )
72+ returns (ImportSshPublicKeyResponse ) {
73+ option (google.api.http ) = {
74+ post : "/v1beta/{parent=users/*}:importSshPublicKey"
75+ body : "ssh_public_key"
76+ };
6377 }
6478
6579 // Updates an SSH public key and returns the profile information. This method
6680 // supports patch semantics.
67- rpc UpdateSshPublicKey (UpdateSshPublicKeyRequest ) returns (google .cloud .oslogin .common .SshPublicKey ) {
68- option (google.api.http ) = { patch : "/v1beta/{name=users/*/sshPublicKeys/*}" body: "ssh_public_key" };
81+ rpc UpdateSshPublicKey (UpdateSshPublicKeyRequest )
82+ returns (google .cloud .oslogin .common .SshPublicKey ) {
83+ option (google.api.http ) = {
84+ patch : "/v1beta/{name=users/*/sshPublicKeys/*}"
85+ body : "ssh_public_key"
86+ };
6987 }
7088}
7189
0 commit comments