/
common.proto
108 lines (84 loc) · 3.34 KB
/
common.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Copyright 2022 Google LLC
//
// 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/field_behavior.proto";
import "google/api/resource.proto";
option csharp_namespace = "Google.Cloud.OsLogin.Common";
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";
option php_namespace = "Google\\Cloud\\OsLogin\\Common";
option ruby_package = "Google::Cloud::OsLogin::Common";
option (google.api.resource_definition) = {
type: "oslogin.googleapis.com/User"
pattern: "users/{user}"
};
// The operating system options for account entries.
enum OperatingSystemType {
// The operating system type associated with the user account information is
// unspecified.
OPERATING_SYSTEM_TYPE_UNSPECIFIED = 0;
// Linux user account information.
LINUX = 1;
// Windows user account information.
WINDOWS = 2;
}
// The POSIX account information associated with a Google account.
message PosixAccount {
option (google.api.resource) = {
type: "oslogin.googleapis.com/PosixAccount"
pattern: "users/{user}/projects/{project}"
};
// 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 [(google.api.field_behavior) = OUTPUT_ONLY];
// The operating system type where this account applies.
OperatingSystemType operating_system_type = 10;
// Output only. The canonical resource name.
string name = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// The SSH public key information associated with a Google account.
message SshPublicKey {
option (google.api.resource) = {
type: "oslogin.googleapis.com/SshPublicKey"
pattern: "users/{user}/sshPublicKeys/{fingerprint}"
};
// 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 [(google.api.field_behavior) = OUTPUT_ONLY];
// Output only. The canonical resource name.
string name = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
}