Debian Codegraph @

googleapiclient/discovery_cache/documents/oslogin.v1.json

raw
1 {
2 "auth": {
3 "oauth2": {
4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
7 },
8 "https://www.googleapis.com/auth/cloud-platform.read-only": {
9 "description": "View your data across Google Cloud services and see the email address of your Google Account"
10 },
11 "https://www.googleapis.com/auth/compute": {
12 "description": "View and manage your Google Compute Engine resources"
13 },
14 "https://www.googleapis.com/auth/compute.readonly": {
15 "description": "View your Google Compute Engine resources"
16 }
17 }
18 }
19 },
20 "basePath": "",
21 "baseUrl": "https://oslogin.googleapis.com/",
22 "batchPath": "batch",
23 "canonicalName": "Cloud OS Login",
24 "description": "You can use OS Login to manage access to your VM instances using IAM roles.",
25 "discoveryVersion": "v1",
26 "documentationLink": "https://cloud.google.com/compute/docs/oslogin/",
27 "fullyEncodeReservedExpansion": true,
28 "icons": {
29 "x16": "http://www.google.com/images/icons/product/search-16.gif",
30 "x32": "http://www.google.com/images/icons/product/search-32.gif"
31 },
32 "id": "oslogin:v1",
33 "kind": "discovery#restDescription",
34 "mtlsRootUrl": "https://oslogin.mtls.googleapis.com/",
35 "name": "oslogin",
36 "ownerDomain": "google.com",
37 "ownerName": "Google",
38 "parameters": {
39 "$.xgafv": {
40 "description": "V1 error format.",
41 "enum": [
42 "1",
43 "2"
44 ],
45 "enumDescriptions": [
46 "v1 error format",
47 "v2 error format"
48 ],
49 "location": "query",
50 "type": "string"
51 },
52 "access_token": {
53 "description": "OAuth access token.",
54 "location": "query",
55 "type": "string"
56 },
57 "alt": {
58 "default": "json",
59 "description": "Data format for response.",
60 "enum": [
61 "json",
62 "media",
63 "proto"
64 ],
65 "enumDescriptions": [
66 "Responses with Content-Type of application/json",
67 "Media download with context-dependent Content-Type",
68 "Responses with Content-Type of application/x-protobuf"
69 ],
70 "location": "query",
71 "type": "string"
72 },
73 "callback": {
74 "description": "JSONP",
75 "location": "query",
76 "type": "string"
77 },
78 "fields": {
79 "description": "Selector specifying which fields to include in a partial response.",
80 "location": "query",
81 "type": "string"
82 },
83 "key": {
84 "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
85 "location": "query",
86 "type": "string"
87 },
88 "oauth_token": {
89 "description": "OAuth 2.0 token for the current user.",
90 "location": "query",
91 "type": "string"
92 },
93 "prettyPrint": {
94 "default": "true",
95 "description": "Returns response with indentations and line breaks.",
96 "location": "query",
97 "type": "boolean"
98 },
99 "quotaUser": {
100 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
101 "location": "query",
102 "type": "string"
103 },
104 "uploadType": {
105 "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
106 "location": "query",
107 "type": "string"
108 },
109 "upload_protocol": {
110 "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
111 "location": "query",
112 "type": "string"
113 }
114 },
115 "protocol": "rest",
116 "resources": {
117 "projects": {
118 "resources": {
119 "locations": {
120 "methods": {
121 "signSshPublicKey": {
122 "description": "Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.",
123 "flatPath": "v1/projects/{projectsId}/locations/{locationsId}:signSshPublicKey",
124 "httpMethod": "POST",
125 "id": "oslogin.projects.locations.signSshPublicKey",
126 "parameterOrder": [
127 "parent"
128 ],
129 "parameters": {
130 "parent": {
131 "description": "Required. The parent for the signing request. Format: projects/{project}/locations/{location}",
132 "location": "path",
133 "pattern": "^projects/[^/]+/locations/[^/]+$",
134 "required": true,
135 "type": "string"
136 }
137 },
138 "path": "v1/{+parent}:signSshPublicKey",
139 "request": {
140 "$ref": "SignSshPublicKeyRequest"
141 },
142 "response": {
143 "$ref": "SignSshPublicKeyResponse"
144 },
145 "scopes": [
146 "https://www.googleapis.com/auth/cloud-platform"
147 ]
148 }
149 }
150 }
151 }
152 },
153 "users": {
154 "methods": {
155 "getLoginProfile": {
156 "description": "Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.",
157 "flatPath": "v1/users/{usersId}/loginProfile",
158 "httpMethod": "GET",
159 "id": "oslogin.users.getLoginProfile",
160 "parameterOrder": [
161 "name"
162 ],
163 "parameters": {
164 "name": {
165 "description": "Required. The unique ID for the user in format `users/{user}`.",
166 "location": "path",
167 "pattern": "^users/[^/]+$",
168 "required": true,
169 "type": "string"
170 },
171 "projectId": {
172 "description": "Required. The project ID of the Google Cloud Platform project.",
173 "location": "query",
174 "type": "string"
175 },
176 "systemId": {
177 "description": "Optional. A system ID for filtering the results of the request.",
178 "location": "query",
179 "type": "string"
180 }
181 },
182 "path": "v1/{+name}/loginProfile",
183 "response": {
184 "$ref": "LoginProfile"
185 },
186 "scopes": [
187 "https://www.googleapis.com/auth/cloud-platform",
188 "https://www.googleapis.com/auth/cloud-platform.read-only",
189 "https://www.googleapis.com/auth/compute",
190 "https://www.googleapis.com/auth/compute.readonly"
191 ]
192 },
193 "importSshPublicKey": {
194 "description": "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.",
195 "flatPath": "v1/users/{usersId}:importSshPublicKey",
196 "httpMethod": "POST",
197 "id": "oslogin.users.importSshPublicKey",
198 "parameterOrder": [
199 "parent"
200 ],
201 "parameters": {
202 "parent": {
203 "description": "Required. The unique ID for the user in format `users/{user}`.",
204 "location": "path",
205 "pattern": "^users/[^/]+$",
206 "required": true,
207 "type": "string"
208 },
209 "projectId": {
210 "description": "The project ID of the Google Cloud Platform project.",
211 "location": "query",
212 "type": "string"
213 },
214 "regions": {
215 "description": "Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.",
216 "location": "query",
217 "repeated": true,
218 "type": "string"
219 }
220 },
221 "path": "v1/{+parent}:importSshPublicKey",
222 "request": {
223 "$ref": "SshPublicKey"
224 },
225 "response": {
226 "$ref": "ImportSshPublicKeyResponse"
227 },
228 "scopes": [
229 "https://www.googleapis.com/auth/cloud-platform",
230 "https://www.googleapis.com/auth/compute"
231 ]
232 }
233 },
234 "resources": {
235 "projects": {
236 "methods": {
237 "delete": {
238 "description": "Deletes a POSIX account.",
239 "flatPath": "v1/users/{usersId}/projects/{projectsId}",
240 "httpMethod": "DELETE",
241 "id": "oslogin.users.projects.delete",
242 "parameterOrder": [
243 "name"
244 ],
245 "parameters": {
246 "name": {
247 "description": "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}`.",
248 "location": "path",
249 "pattern": "^users/[^/]+/projects/[^/]+$",
250 "required": true,
251 "type": "string"
252 }
253 },
254 "path": "v1/{+name}",
255 "response": {
256 "$ref": "Empty"
257 },
258 "scopes": [
259 "https://www.googleapis.com/auth/cloud-platform",
260 "https://www.googleapis.com/auth/compute"
261 ]
262 },
263 "provisionPosixAccount": {
264 "description": "Adds a POSIX account and returns the profile information. Default POSIX account information is set when no username and UID exist as part of the login profile.",
265 "flatPath": "v1/users/{usersId}/projects/{projectsId}",
266 "httpMethod": "POST",
267 "id": "oslogin.users.projects.provisionPosixAccount",
268 "parameterOrder": [
269 "name"
270 ],
271 "parameters": {
272 "name": {
273 "description": "Required. The unique ID for the user in format `users/{user}/projects/{project}`.",
274 "location": "path",
275 "pattern": "^users/[^/]+/projects/[^/]+$",
276 "required": true,
277 "type": "string"
278 }
279 },
280 "path": "v1/{+name}",
281 "request": {
282 "$ref": "ProvisionPosixAccountRequest"
283 },
284 "response": {
285 "$ref": "PosixAccount"
286 },
287 "scopes": [
288 "https://www.googleapis.com/auth/cloud-platform",
289 "https://www.googleapis.com/auth/compute"
290 ]
291 }
292 }
293 },
294 "sshPublicKeys": {
295 "methods": {
296 "create": {
297 "description": "Create an SSH public key",
298 "flatPath": "v1/users/{usersId}/sshPublicKeys",
299 "httpMethod": "POST",
300 "id": "oslogin.users.sshPublicKeys.create",
301 "parameterOrder": [
302 "parent"
303 ],
304 "parameters": {
305 "parent": {
306 "description": "Required. The unique ID for the user in format `users/{user}`.",
307 "location": "path",
308 "pattern": "^users/[^/]+$",
309 "required": true,
310 "type": "string"
311 }
312 },
313 "path": "v1/{+parent}/sshPublicKeys",
314 "request": {
315 "$ref": "SshPublicKey"
316 },
317 "response": {
318 "$ref": "SshPublicKey"
319 },
320 "scopes": [
321 "https://www.googleapis.com/auth/cloud-platform",
322 "https://www.googleapis.com/auth/compute"
323 ]
324 },
325 "delete": {
326 "description": "Deletes an SSH public key.",
327 "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
328 "httpMethod": "DELETE",
329 "id": "oslogin.users.sshPublicKeys.delete",
330 "parameterOrder": [
331 "name"
332 ],
333 "parameters": {
334 "name": {
335 "description": "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}`.",
336 "location": "path",
337 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
338 "required": true,
339 "type": "string"
340 }
341 },
342 "path": "v1/{+name}",
343 "response": {
344 "$ref": "Empty"
345 },
346 "scopes": [
347 "https://www.googleapis.com/auth/cloud-platform",
348 "https://www.googleapis.com/auth/compute"
349 ]
350 },
351 "get": {
352 "description": "Retrieves an SSH public key.",
353 "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
354 "httpMethod": "GET",
355 "id": "oslogin.users.sshPublicKeys.get",
356 "parameterOrder": [
357 "name"
358 ],
359 "parameters": {
360 "name": {
361 "description": "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}`.",
362 "location": "path",
363 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
364 "required": true,
365 "type": "string"
366 }
367 },
368 "path": "v1/{+name}",
369 "response": {
370 "$ref": "SshPublicKey"
371 },
372 "scopes": [
373 "https://www.googleapis.com/auth/cloud-platform",
374 "https://www.googleapis.com/auth/compute"
375 ]
376 },
377 "patch": {
378 "description": "Updates an SSH public key and returns the profile information. This method supports patch semantics.",
379 "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
380 "httpMethod": "PATCH",
381 "id": "oslogin.users.sshPublicKeys.patch",
382 "parameterOrder": [
383 "name"
384 ],
385 "parameters": {
386 "name": {
387 "description": "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}`.",
388 "location": "path",
389 "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
390 "required": true,
391 "type": "string"
392 },
393 "updateMask": {
394 "description": "Optional. Mask to control which fields get updated. Updates all if not present.",
395 "format": "google-fieldmask",
396 "location": "query",
397 "type": "string"
398 }
399 },
400 "path": "v1/{+name}",
401 "request": {
402 "$ref": "SshPublicKey"
403 },
404 "response": {
405 "$ref": "SshPublicKey"
406 },
407 "scopes": [
408 "https://www.googleapis.com/auth/cloud-platform",
409 "https://www.googleapis.com/auth/compute"
410 ]
411 }
412 }
413 }
414 }
415 }
416 },
417 "revision": "20260610",
418 "rootUrl": "https://oslogin.googleapis.com/",
419 "schemas": {
420 "Empty": {
421 "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }",
422 "id": "Empty",
423 "properties": {},
424 "type": "object"
425 },
426 "ImportSshPublicKeyResponse": {
427 "description": "A response message for importing an SSH public key.",
428 "id": "ImportSshPublicKeyResponse",
429 "properties": {
430 "details": {
431 "description": "Detailed information about import results.",
432 "type": "string"
433 },
434 "loginProfile": {
435 "$ref": "LoginProfile",
436 "description": "The login profile information for the user."
437 }
438 },
439 "type": "object"
440 },
441 "LoginProfile": {
442 "description": "The user profile information used for logging in to a virtual machine on Google Compute Engine.",
443 "id": "LoginProfile",
444 "properties": {
445 "name": {
446 "description": "Required. A unique user ID.",
447 "type": "string"
448 },
449 "posixAccounts": {
450 "description": "The list of POSIX accounts associated with the user.",
451 "items": {
452 "$ref": "PosixAccount"
453 },
454 "type": "array"
455 },
456 "sshPublicKeys": {
457 "additionalProperties": {
458 "$ref": "SshPublicKey"
459 },
460 "description": "A map from SSH public key fingerprint to the associated key object.",
461 "type": "object"
462 }
463 },
464 "type": "object"
465 },
466 "PosixAccount": {
467 "description": "The POSIX account information associated with a Google account.",
468 "id": "PosixAccount",
469 "properties": {
470 "accountId": {
471 "description": "Output only. A POSIX account identifier.",
472 "readOnly": true,
473 "type": "string"
474 },
475 "gecos": {
476 "description": "The GECOS (user information) entry for this account.",
477 "type": "string"
478 },
479 "gid": {
480 "description": "The default group ID.",
481 "format": "int64",
482 "type": "string"
483 },
484 "homeDirectory": {
485 "description": "The path to the home directory for this account.",
486 "type": "string"
487 },
488 "name": {
489 "description": "Output only. The canonical resource name.",
490 "readOnly": true,
491 "type": "string"
492 },
493 "operatingSystemType": {
494 "description": "The operating system type where this account applies.",
495 "enum": [
496 "OPERATING_SYSTEM_TYPE_UNSPECIFIED",
497 "LINUX",
498 "WINDOWS"
499 ],
500 "enumDescriptions": [
501 "The operating system type associated with the user account information is unspecified.",
502 "Linux user account information.",
503 "Windows user account information."
504 ],
505 "type": "string"
506 },
507 "primary": {
508 "description": "Only one POSIX account can be marked as primary.",
509 "type": "boolean"
510 },
511 "shell": {
512 "description": "The path to the logic shell for this account.",
513 "type": "string"
514 },
515 "systemId": {
516 "description": "System identifier for which account the username or uid applies to. By default, the empty value is used.",
517 "type": "string"
518 },
519 "uid": {
520 "description": "The user ID.",
521 "format": "int64",
522 "type": "string"
523 },
524 "username": {
525 "description": "The username of the POSIX account.",
526 "type": "string"
527 }
528 },
529 "type": "object"
530 },
531 "ProvisionPosixAccountRequest": {
532 "description": "A request message for creating a POSIX account entry.",
533 "id": "ProvisionPosixAccountRequest",
534 "properties": {
535 "regions": {
536 "description": "Optional. The regions to wait for a POSIX account to be written to before returning a response. If unspecified, defaults to all regions. Regions are listed at https://cloud.google.com/about/locations#region.",
537 "items": {
538 "type": "string"
539 },
540 "type": "array"
541 }
542 },
543 "type": "object"
544 },
545 "SignSshPublicKeyRequest": {
546 "description": "A request message for signing an SSH public key.",
547 "id": "SignSshPublicKeyRequest",
548 "properties": {
549 "appEngineInstance": {
550 "description": "The App Engine instance to sign the SSH public key for. Expected format: apps/{app}/services/{service}/versions/{version}/instances/{instance}",
551 "type": "string"
552 },
553 "cloudRunResource": {
554 "description": "Optional. The Cloud Run resource to sign the SSH public key for. Expected formats: - `projects/{project}/locations/{location}/services/{service}` - `projects/{project}/locations/{location}/workerPools/{worker_pool}` - `projects/{project}/locations/{location}/jobs/{job}` - `projects/{project}/locations/{location}/instances/{instance}`",
555 "type": "string"
556 },
557 "computeInstance": {
558 "description": "The Compute instance to sign the SSH public key for. Expected format: projects/{project}/zones/{zone}/instances/{numeric_instance_id}",
559 "type": "string"
560 },
561 "serviceAccount": {
562 "description": "Optional. The service account for the instance. If the instance in question does not have a service account, this field should be left empty. If the wrong service account is provided, this operation will return a signed certificate that will not be accepted by the VM.",
563 "type": "string"
564 },
565 "sshPublicKey": {
566 "description": "Required. The SSH public key to sign.",
567 "type": "string"
568 }
569 },
570 "type": "object"
571 },
572 "SignSshPublicKeyResponse": {
573 "description": "The response message for signing an SSH public key.",
574 "id": "SignSshPublicKeyResponse",
575 "properties": {
576 "signedSshPublicKey": {
577 "description": "The signed SSH public key to use in the SSH handshake.",
578 "type": "string"
579 }
580 },
581 "type": "object"
582 },
583 "SshPublicKey": {
584 "description": "The SSH public key information associated with a Google account.",
585 "id": "SshPublicKey",
586 "properties": {
587 "expirationTimeUsec": {
588 "description": "An expiration time in microseconds since epoch.",
589 "format": "int64",
590 "type": "string"
591 },
592 "fingerprint": {
593 "description": "Output only. The SHA-256 fingerprint of the SSH public key.",
594 "readOnly": true,
595 "type": "string"
596 },
597 "key": {
598 "description": "Required. Public key text in SSH format, defined by [RFC4253](https://www.ietf.org/rfc/rfc4253.txt) section 6.6.",
599 "type": "string"
600 },
601 "name": {
602 "description": "Output only. The canonical resource name.",
603 "readOnly": true,
604 "type": "string"
605 }
606 },
607 "type": "object"
608 }
609 },
610 "servicePath": "",
611 "title": "Cloud OS Login API",
612 "version": "v1",
613 "version_module": true
614 }