blob: aec538c826fec8fe288819a219fa5cd3aa5907a3 [file] [log] [blame]
// Copyright 2017 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
syntax = "proto3";
package google.cloud.oslogin.common;
import "google/api/annotations.proto";
option go_package = "google.golang.org/genproto/googleapis/cloud/oslogin/common;common";
option java_outer_classname = "OsLoginProto";
option java_package = "com.google.cloud.oslogin.common";
// The POSIX account information associated with a Google account.
message PosixAccount {
// Only one POSIX account can be marked as primary.
bool primary = 1;
// The username of the POSIX account.
string username = 2;
// The user ID.
int64 uid = 3;
// The default group ID.
int64 gid = 4;
// The path to the home directory for this account.
string home_directory = 5;
// The path to the logic shell for this account.
string shell = 6;
// The GECOS (user information) entry for this account.
string gecos = 7;
// System identifier for which account the username or uid applies to.
// By default, the empty value is used.
string system_id = 8;
// Output only. A POSIX account identifier.
string account_id = 9;
}
// The SSH public key information associated with a Google account.
message SshPublicKey {
// Public key text in SSH format, defined by
// <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
// section 6.6.
string key = 1;
// An expiration time in microseconds since epoch.
int64 expiration_time_usec = 2;
// Output only. The SHA-256 fingerprint of the SSH public key.
string fingerprint = 3;
}