Skip to content

Commit

Permalink
chore: whitespace formatting
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 504040442
  • Loading branch information
Google APIs authored and Copybara-Service committed Jan 23, 2023
1 parent d140569 commit 110d277
Showing 1 changed file with 33 additions and 26 deletions.
59 changes: 33 additions & 26 deletions google/cloud/oslogin/v1beta/oslogin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ service OsLoginService {
"https://www.googleapis.com/auth/compute.readonly";

// Create an SSH public key
rpc CreateSshPublicKey(CreateSshPublicKeyRequest) returns (google.cloud.oslogin.common.SshPublicKey) {
rpc CreateSshPublicKey(CreateSshPublicKeyRequest)
returns (google.cloud.oslogin.common.SshPublicKey) {
option (google.api.http) = {
post: "/v1beta/{parent=users/*}/sshPublicKeys"
body: "ssh_public_key"
Expand All @@ -54,15 +55,17 @@ service OsLoginService {
}

// Deletes a POSIX account.
rpc DeletePosixAccount(DeletePosixAccountRequest) returns (google.protobuf.Empty) {
rpc DeletePosixAccount(DeletePosixAccountRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1beta/{name=users/*/projects/*}"
};
option (google.api.method_signature) = "name";
}

// Deletes an SSH public key.
rpc DeleteSshPublicKey(DeleteSshPublicKeyRequest) returns (google.protobuf.Empty) {
rpc DeleteSshPublicKey(DeleteSshPublicKeyRequest)
returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v1beta/{name=users/*/sshPublicKeys/*}"
};
Expand All @@ -79,7 +82,8 @@ service OsLoginService {
}

// Retrieves an SSH public key.
rpc GetSshPublicKey(GetSshPublicKeyRequest) returns (google.cloud.oslogin.common.SshPublicKey) {
rpc GetSshPublicKey(GetSshPublicKeyRequest)
returns (google.cloud.oslogin.common.SshPublicKey) {
option (google.api.http) = {
get: "/v1beta/{name=users/*/sshPublicKeys/*}"
};
Expand All @@ -89,7 +93,8 @@ service OsLoginService {
// Adds an SSH public key and returns the profile information. Default POSIX
// account information is set when no username and UID exist as part of the
// login profile.
rpc ImportSshPublicKey(ImportSshPublicKeyRequest) returns (ImportSshPublicKeyResponse) {
rpc ImportSshPublicKey(ImportSshPublicKeyRequest)
returns (ImportSshPublicKeyResponse) {
option (google.api.http) = {
post: "/v1beta/{parent=users/*}:importSshPublicKey"
body: "ssh_public_key"
Expand All @@ -100,7 +105,8 @@ service OsLoginService {

// Updates an SSH public key and returns the profile information. This method
// supports patch semantics.
rpc UpdateSshPublicKey(UpdateSshPublicKeyRequest) returns (google.cloud.oslogin.common.SshPublicKey) {
rpc UpdateSshPublicKey(UpdateSshPublicKeyRequest)
returns (google.cloud.oslogin.common.SshPublicKey) {
option (google.api.http) = {
patch: "/v1beta/{name=users/*/sshPublicKeys/*}"
body: "ssh_public_key"
Expand Down Expand Up @@ -137,14 +143,15 @@ message CreateSshPublicKeyRequest {
];

// Required. The SSH public key and expiration time.
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(google.api.field_behavior) = REQUIRED];
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2
[(google.api.field_behavior) = REQUIRED];
}

// A request message for deleting a POSIX account entry.
message DeletePosixAccountRequest {
// Required. A reference to the POSIX account to update. POSIX accounts are identified
// by the project ID they are associated with. A reference to the POSIX
// account is in format `users/{user}/projects/{project}`.
// Required. A reference to the POSIX account to update. POSIX accounts are
// identified by the project ID they are associated with. A reference to the
// POSIX account is in format `users/{user}/projects/{project}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -155,9 +162,9 @@ message DeletePosixAccountRequest {

// A request message for deleting an SSH public key.
message DeleteSshPublicKeyRequest {
// Required. The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
// Required. The fingerprint of the public key to update. Public keys are
// identified by their SHA-256 fingerprint. The fingerprint of the public key
// is in format `users/{user}/sshPublicKeys/{fingerprint}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -171,9 +178,7 @@ message GetLoginProfileRequest {
// Required. The unique ID for the user in format `users/{user}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "oslogin.googleapis.com/User"
}
(google.api.resource_reference) = { type: "oslogin.googleapis.com/User" }
];

// The project ID of the Google Cloud Platform project.
Expand All @@ -188,9 +193,9 @@ message GetLoginProfileRequest {

// A request message for retrieving an SSH public key.
message GetSshPublicKeyRequest {
// Required. The fingerprint of the public key to retrieve. Public keys are identified
// by their SHA-256 fingerprint. The fingerprint of the public key is in
// format `users/{user}/sshPublicKeys/{fingerprint}`.
// Required. The fingerprint of the public key to retrieve. Public keys are
// identified by their SHA-256 fingerprint. The fingerprint of the public key
// is in format `users/{user}/sshPublicKeys/{fingerprint}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -203,11 +208,12 @@ message GetSshPublicKeyRequest {
message ImportSshPublicKeyRequest {
// The unique ID for the user in format `users/{user}`.
string parent = 1 [(google.api.resource_reference) = {
child_type: "oslogin.googleapis.com/SshPublicKey"
}];
child_type: "oslogin.googleapis.com/SshPublicKey"
}];

// Required. The SSH public key and expiration time.
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(google.api.field_behavior) = REQUIRED];
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2
[(google.api.field_behavior) = REQUIRED];

// The project ID of the Google Cloud Platform project.
string project_id = 3;
Expand All @@ -227,9 +233,9 @@ message ImportSshPublicKeyResponse {

// A request message for updating an SSH public key.
message UpdateSshPublicKeyRequest {
// Required. The fingerprint of the public key to update. Public keys are identified by
// their SHA-256 fingerprint. The fingerprint of the public key is in format
// `users/{user}/sshPublicKeys/{fingerprint}`.
// Required. The fingerprint of the public key to update. Public keys are
// identified by their SHA-256 fingerprint. The fingerprint of the public key
// is in format `users/{user}/sshPublicKeys/{fingerprint}`.
string name = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -238,7 +244,8 @@ message UpdateSshPublicKeyRequest {
];

// Required. The SSH public key and expiration time.
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2 [(google.api.field_behavior) = REQUIRED];
google.cloud.oslogin.common.SshPublicKey ssh_public_key = 2
[(google.api.field_behavior) = REQUIRED];

// Mask to control which fields get updated. Updates all if not present.
google.protobuf.FieldMask update_mask = 3;
Expand Down

0 comments on commit 110d277

Please sign in to comment.