Skip to content

Commit 3f31977

Browse files
yoshi-automationJustinBeckwith
authored andcommitted
docs: update comments on protos (#151)
1 parent 62e3b2f commit 3f31977

File tree

3 files changed

+36
-19
lines changed

3 files changed

+36
-19
lines changed

packages/google-cloud-oslogin/protos/google/cloud/oslogin/common/common.proto

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ option java_outer_classname = "OsLoginProto";
2424
option java_package = "com.google.cloud.oslogin.common";
2525
option php_namespace = "Google\\Cloud\\OsLogin\\Common";
2626

27-
2827
// The POSIX account information associated with a Google account.
2928
message PosixAccount {
3029
// Only one POSIX account can be marked as primary.

packages/google-cloud-oslogin/protos/google/cloud/oslogin/v1beta/oslogin.proto

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,44 +28,62 @@ option java_outer_classname = "OsLoginProto";
2828
option java_package = "com.google.cloud.oslogin.v1beta";
2929
option 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.
3635
service 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

packages/google-cloud-oslogin/synth.metadata

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"updateTime": "2019-02-13T12:20:30.549192Z",
2+
"updateTime": "2019-03-01T12:17:20.662580Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.16.13",
8-
"dockerImage": "googleapis/artman@sha256:5fd9aee1d82a00cebf425c8fa431f5457539562f5867ad9c54370f0ec9a7ccaa"
7+
"version": "0.16.14",
8+
"dockerImage": "googleapis/artman@sha256:f3d61ae45abaeefb6be5f228cda22732c2f1b00fb687c79c4bd4f2c42bb1e1a7"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": "googleapis",
1414
"remote": "https://github.com/googleapis/googleapis.git",
15-
"sha": "ca61898878f0926dd9dcc68ba90764f17133efe4",
16-
"internalRef": "233680013"
15+
"sha": "41d72d444fbe445f4da89e13be02078734fb7875",
16+
"internalRef": "236230004"
1717
}
1818
},
1919
{
2020
"template": {
2121
"name": "node_library",
2222
"origin": "synthtool.gcp",
23-
"version": "2019.1.16"
23+
"version": "2019.2.26"
2424
}
2525
}
2626
],

0 commit comments

Comments
 (0)