• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="oslogin_v1alpha.html">Cloud OS Login API</a> . <a href="oslogin_v1alpha.users.html">users</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="oslogin_v1alpha.users.projects.html">projects()</a></code>
79</p>
80<p class="firstline">Returns the projects Resource.</p>
81
82<p class="toc_element">
83  <code><a href="oslogin_v1alpha.users.sshPublicKeys.html">sshPublicKeys()</a></code>
84</p>
85<p class="firstline">Returns the sshPublicKeys Resource.</p>
86
87<p class="toc_element">
88  <code><a href="#getLoginProfile">getLoginProfile(name, projectId=None, systemId=None, x__xgafv=None, operatingSystemType=None)</a></code></p>
89<p class="firstline">Retrieves the profile information used for logging in to a virtual machine</p>
90<p class="toc_element">
91  <code><a href="#importSshPublicKey">importSshPublicKey(parent, body, projectId=None, x__xgafv=None)</a></code></p>
92<p class="firstline">Adds an SSH public key and returns the profile information. Default POSIX</p>
93<h3>Method Details</h3>
94<div class="method">
95    <code class="details" id="getLoginProfile">getLoginProfile(name, projectId=None, systemId=None, x__xgafv=None, operatingSystemType=None)</code>
96  <pre>Retrieves the profile information used for logging in to a virtual machine
97on Google Compute Engine.
98
99Args:
100  name: string, The unique ID for the user in format `users/{user}`. (required)
101  projectId: string, The project ID of the Google Cloud Platform project.
102  systemId: string, A system ID for filtering the results of the request.
103  x__xgafv: string, V1 error format.
104    Allowed values
105      1 - v1 error format
106      2 - v2 error format
107  operatingSystemType: string, The type of operating system associated with the account.
108
109Returns:
110  An object of the form:
111
112    { # The user profile information used for logging in to a virtual machine on
113      # Google Compute Engine.
114    "posixAccounts": [ # The list of POSIX accounts associated with the user.
115      { # The POSIX account information associated with a Google account.
116        "username": "A String", # The username of the POSIX account.
117        "shell": "A String", # The path to the logic shell for this account.
118        "uid": "A String", # The user ID.
119        "primary": True or False, # Only one POSIX account can be marked as primary.
120        "operatingSystemType": "A String", # The operating system type where this account applies.
121        "gid": "A String", # The default group ID.
122        "gecos": "A String", # The GECOS (user information) entry for this account.
123        "homeDirectory": "A String", # The path to the home directory for this account.
124        "systemId": "A String", # System identifier for which account the username or uid applies to.
125            # By default, the empty value is used.
126        "accountId": "A String", # Output only. A POSIX account identifier.
127      },
128    ],
129    "sshPublicKeys": { # A map from SSH public key fingerprint to the associated key object.
130      "a_key": { # The SSH public key information associated with a Google account.
131        "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
132        "key": "A String", # Public key text in SSH format, defined by
133            # <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
134            # section 6.6.
135        "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
136      },
137    },
138    "name": "A String", # A unique user ID.
139  }</pre>
140</div>
141
142<div class="method">
143    <code class="details" id="importSshPublicKey">importSshPublicKey(parent, body, projectId=None, x__xgafv=None)</code>
144  <pre>Adds an SSH public key and returns the profile information. Default POSIX
145account information is set when no username and UID exist as part of the
146login profile.
147
148Args:
149  parent: string, The unique ID for the user in format `users/{user}`. (required)
150  body: object, The request body. (required)
151    The object takes the form of:
152
153{ # The SSH public key information associated with a Google account.
154  "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
155  "key": "A String", # Public key text in SSH format, defined by
156      # <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
157      # section 6.6.
158  "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
159}
160
161  projectId: string, The project ID of the Google Cloud Platform project.
162  x__xgafv: string, V1 error format.
163    Allowed values
164      1 - v1 error format
165      2 - v2 error format
166
167Returns:
168  An object of the form:
169
170    { # A response message from importing an SSH public key.
171    "loginProfile": { # The user profile information used for logging in to a virtual machine on # The login profile information for the user.
172        # Google Compute Engine.
173      "posixAccounts": [ # The list of POSIX accounts associated with the user.
174        { # The POSIX account information associated with a Google account.
175          "username": "A String", # The username of the POSIX account.
176          "shell": "A String", # The path to the logic shell for this account.
177          "uid": "A String", # The user ID.
178          "primary": True or False, # Only one POSIX account can be marked as primary.
179          "operatingSystemType": "A String", # The operating system type where this account applies.
180          "gid": "A String", # The default group ID.
181          "gecos": "A String", # The GECOS (user information) entry for this account.
182          "homeDirectory": "A String", # The path to the home directory for this account.
183          "systemId": "A String", # System identifier for which account the username or uid applies to.
184              # By default, the empty value is used.
185          "accountId": "A String", # Output only. A POSIX account identifier.
186        },
187      ],
188      "sshPublicKeys": { # A map from SSH public key fingerprint to the associated key object.
189        "a_key": { # The SSH public key information associated with a Google account.
190          "expirationTimeUsec": "A String", # An expiration time in microseconds since epoch.
191          "key": "A String", # Public key text in SSH format, defined by
192              # <a href="https://www.ietf.org/rfc/rfc4253.txt" target="_blank">RFC4253</a>
193              # section 6.6.
194          "fingerprint": "A String", # Output only. The SHA-256 fingerprint of the SSH public key.
195        },
196      },
197      "name": "A String", # A unique user ID.
198    },
199  }</pre>
200</div>
201
202</body></html>