Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

437 Zeilen
15 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/cloud-platform": {
  6. "description": "View and manage your data across Google Cloud Platform services"
  7. },
  8. "https://www.googleapis.com/auth/compute": {
  9. "description": "View and manage your Google Compute Engine resources"
  10. }
  11. }
  12. }
  13. },
  14. "basePath": "",
  15. "baseUrl": "https://oslogin.googleapis.com/",
  16. "batchPath": "batch",
  17. "canonicalName": "Cloud OS Login",
  18. "description": "Manages OS login configuration for Google account users.",
  19. "discoveryVersion": "v1",
  20. "documentationLink": "https://cloud.google.com/compute/docs/oslogin/",
  21. "fullyEncodeReservedExpansion": true,
  22. "icons": {
  23. "x16": "http://www.google.com/images/icons/product/search-16.gif",
  24. "x32": "http://www.google.com/images/icons/product/search-32.gif"
  25. },
  26. "id": "oslogin:v1",
  27. "kind": "discovery#restDescription",
  28. "name": "oslogin",
  29. "ownerDomain": "google.com",
  30. "ownerName": "Google",
  31. "parameters": {
  32. "$.xgafv": {
  33. "description": "V1 error format.",
  34. "enum": [
  35. "1",
  36. "2"
  37. ],
  38. "enumDescriptions": [
  39. "v1 error format",
  40. "v2 error format"
  41. ],
  42. "location": "query",
  43. "type": "string"
  44. },
  45. "access_token": {
  46. "description": "OAuth access token.",
  47. "location": "query",
  48. "type": "string"
  49. },
  50. "alt": {
  51. "default": "json",
  52. "description": "Data format for response.",
  53. "enum": [
  54. "json",
  55. "media",
  56. "proto"
  57. ],
  58. "enumDescriptions": [
  59. "Responses with Content-Type of application/json",
  60. "Media download with context-dependent Content-Type",
  61. "Responses with Content-Type of application/x-protobuf"
  62. ],
  63. "location": "query",
  64. "type": "string"
  65. },
  66. "callback": {
  67. "description": "JSONP",
  68. "location": "query",
  69. "type": "string"
  70. },
  71. "fields": {
  72. "description": "Selector specifying which fields to include in a partial response.",
  73. "location": "query",
  74. "type": "string"
  75. },
  76. "key": {
  77. "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.",
  78. "location": "query",
  79. "type": "string"
  80. },
  81. "oauth_token": {
  82. "description": "OAuth 2.0 token for the current user.",
  83. "location": "query",
  84. "type": "string"
  85. },
  86. "prettyPrint": {
  87. "default": "true",
  88. "description": "Returns response with indentations and line breaks.",
  89. "location": "query",
  90. "type": "boolean"
  91. },
  92. "quotaUser": {
  93. "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.",
  94. "location": "query",
  95. "type": "string"
  96. },
  97. "uploadType": {
  98. "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
  99. "location": "query",
  100. "type": "string"
  101. },
  102. "upload_protocol": {
  103. "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
  104. "location": "query",
  105. "type": "string"
  106. }
  107. },
  108. "protocol": "rest",
  109. "resources": {
  110. "users": {
  111. "methods": {
  112. "getLoginProfile": {
  113. "description": "Retrieves the profile information used for logging in to a virtual machine\non Google Compute Engine.",
  114. "flatPath": "v1/users/{usersId}/loginProfile",
  115. "httpMethod": "GET",
  116. "id": "oslogin.users.getLoginProfile",
  117. "parameterOrder": [
  118. "name"
  119. ],
  120. "parameters": {
  121. "name": {
  122. "description": "The unique ID for the user in format `users/{user}`.",
  123. "location": "path",
  124. "pattern": "^users/[^/]+$",
  125. "required": true,
  126. "type": "string"
  127. },
  128. "projectId": {
  129. "description": "The project ID of the Google Cloud Platform project.",
  130. "location": "query",
  131. "type": "string"
  132. },
  133. "systemId": {
  134. "description": "A system ID for filtering the results of the request.",
  135. "location": "query",
  136. "type": "string"
  137. }
  138. },
  139. "path": "v1/{+name}/loginProfile",
  140. "response": {
  141. "$ref": "LoginProfile"
  142. },
  143. "scopes": [
  144. "https://www.googleapis.com/auth/cloud-platform",
  145. "https://www.googleapis.com/auth/compute"
  146. ]
  147. },
  148. "importSshPublicKey": {
  149. "description": "Adds an SSH public key and returns the profile information. Default POSIX\naccount information is set when no username and UID exist as part of the\nlogin profile.",
  150. "flatPath": "v1/users/{usersId}:importSshPublicKey",
  151. "httpMethod": "POST",
  152. "id": "oslogin.users.importSshPublicKey",
  153. "parameterOrder": [
  154. "parent"
  155. ],
  156. "parameters": {
  157. "parent": {
  158. "description": "The unique ID for the user in format `users/{user}`.",
  159. "location": "path",
  160. "pattern": "^users/[^/]+$",
  161. "required": true,
  162. "type": "string"
  163. },
  164. "projectId": {
  165. "description": "The project ID of the Google Cloud Platform project.",
  166. "location": "query",
  167. "type": "string"
  168. }
  169. },
  170. "path": "v1/{+parent}:importSshPublicKey",
  171. "request": {
  172. "$ref": "SshPublicKey"
  173. },
  174. "response": {
  175. "$ref": "ImportSshPublicKeyResponse"
  176. },
  177. "scopes": [
  178. "https://www.googleapis.com/auth/cloud-platform",
  179. "https://www.googleapis.com/auth/compute"
  180. ]
  181. }
  182. },
  183. "resources": {
  184. "projects": {
  185. "methods": {
  186. "delete": {
  187. "description": "Deletes a POSIX account.",
  188. "flatPath": "v1/users/{usersId}/projects/{projectsId}",
  189. "httpMethod": "DELETE",
  190. "id": "oslogin.users.projects.delete",
  191. "parameterOrder": [
  192. "name"
  193. ],
  194. "parameters": {
  195. "name": {
  196. "description": "A reference to the POSIX account to update. POSIX accounts are identified\nby the project ID they are associated with. A reference to the POSIX\naccount is in format `users/{user}/projects/{project}`.",
  197. "location": "path",
  198. "pattern": "^users/[^/]+/projects/[^/]+$",
  199. "required": true,
  200. "type": "string"
  201. }
  202. },
  203. "path": "v1/{+name}",
  204. "response": {
  205. "$ref": "Empty"
  206. },
  207. "scopes": [
  208. "https://www.googleapis.com/auth/cloud-platform",
  209. "https://www.googleapis.com/auth/compute"
  210. ]
  211. }
  212. }
  213. },
  214. "sshPublicKeys": {
  215. "methods": {
  216. "delete": {
  217. "description": "Deletes an SSH public key.",
  218. "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  219. "httpMethod": "DELETE",
  220. "id": "oslogin.users.sshPublicKeys.delete",
  221. "parameterOrder": [
  222. "name"
  223. ],
  224. "parameters": {
  225. "name": {
  226. "description": "The fingerprint of the public key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The fingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerprint}`.",
  227. "location": "path",
  228. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  229. "required": true,
  230. "type": "string"
  231. }
  232. },
  233. "path": "v1/{+name}",
  234. "response": {
  235. "$ref": "Empty"
  236. },
  237. "scopes": [
  238. "https://www.googleapis.com/auth/cloud-platform",
  239. "https://www.googleapis.com/auth/compute"
  240. ]
  241. },
  242. "get": {
  243. "description": "Retrieves an SSH public key.",
  244. "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  245. "httpMethod": "GET",
  246. "id": "oslogin.users.sshPublicKeys.get",
  247. "parameterOrder": [
  248. "name"
  249. ],
  250. "parameters": {
  251. "name": {
  252. "description": "The fingerprint of the public key to retrieve. Public keys are identified\nby their SHA-256 fingerprint. The fingerprint of the public key is in\nformat `users/{user}/sshPublicKeys/{fingerprint}`.",
  253. "location": "path",
  254. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  255. "required": true,
  256. "type": "string"
  257. }
  258. },
  259. "path": "v1/{+name}",
  260. "response": {
  261. "$ref": "SshPublicKey"
  262. },
  263. "scopes": [
  264. "https://www.googleapis.com/auth/cloud-platform",
  265. "https://www.googleapis.com/auth/compute"
  266. ]
  267. },
  268. "patch": {
  269. "description": "Updates an SSH public key and returns the profile information. This method\nsupports patch semantics.",
  270. "flatPath": "v1/users/{usersId}/sshPublicKeys/{sshPublicKeysId}",
  271. "httpMethod": "PATCH",
  272. "id": "oslogin.users.sshPublicKeys.patch",
  273. "parameterOrder": [
  274. "name"
  275. ],
  276. "parameters": {
  277. "name": {
  278. "description": "The fingerprint of the public key to update. Public keys are identified by\ntheir SHA-256 fingerprint. The fingerprint of the public key is in format\n`users/{user}/sshPublicKeys/{fingerprint}`.",
  279. "location": "path",
  280. "pattern": "^users/[^/]+/sshPublicKeys/[^/]+$",
  281. "required": true,
  282. "type": "string"
  283. },
  284. "updateMask": {
  285. "description": "Mask to control which fields get updated. Updates all if not present.",
  286. "format": "google-fieldmask",
  287. "location": "query",
  288. "type": "string"
  289. }
  290. },
  291. "path": "v1/{+name}",
  292. "request": {
  293. "$ref": "SshPublicKey"
  294. },
  295. "response": {
  296. "$ref": "SshPublicKey"
  297. },
  298. "scopes": [
  299. "https://www.googleapis.com/auth/cloud-platform",
  300. "https://www.googleapis.com/auth/compute"
  301. ]
  302. }
  303. }
  304. }
  305. }
  306. }
  307. },
  308. "revision": "20190107",
  309. "rootUrl": "https://oslogin.googleapis.com/",
  310. "schemas": {
  311. "Empty": {
  312. "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
  313. "id": "Empty",
  314. "properties": {},
  315. "type": "object"
  316. },
  317. "ImportSshPublicKeyResponse": {
  318. "description": "A response message for importing an SSH public key.",
  319. "id": "ImportSshPublicKeyResponse",
  320. "properties": {
  321. "loginProfile": {
  322. "$ref": "LoginProfile",
  323. "description": "The login profile information for the user."
  324. }
  325. },
  326. "type": "object"
  327. },
  328. "LoginProfile": {
  329. "description": "The user profile information used for logging in to a virtual machine on\nGoogle Compute Engine.",
  330. "id": "LoginProfile",
  331. "properties": {
  332. "name": {
  333. "description": "A unique user ID.",
  334. "type": "string"
  335. },
  336. "posixAccounts": {
  337. "description": "The list of POSIX accounts associated with the user.",
  338. "items": {
  339. "$ref": "PosixAccount"
  340. },
  341. "type": "array"
  342. },
  343. "sshPublicKeys": {
  344. "additionalProperties": {
  345. "$ref": "SshPublicKey"
  346. },
  347. "description": "A map from SSH public key fingerprint to the associated key object.",
  348. "type": "object"
  349. }
  350. },
  351. "type": "object"
  352. },
  353. "PosixAccount": {
  354. "description": "The POSIX account information associated with a Google account.",
  355. "id": "PosixAccount",
  356. "properties": {
  357. "accountId": {
  358. "description": "Output only. A POSIX account identifier.",
  359. "type": "string"
  360. },
  361. "gecos": {
  362. "description": "The GECOS (user information) entry for this account.",
  363. "type": "string"
  364. },
  365. "gid": {
  366. "description": "The default group ID.",
  367. "format": "int64",
  368. "type": "string"
  369. },
  370. "homeDirectory": {
  371. "description": "The path to the home directory for this account.",
  372. "type": "string"
  373. },
  374. "operatingSystemType": {
  375. "description": "The operating system type where this account applies.",
  376. "enum": [
  377. "OPERATING_SYSTEM_TYPE_UNSPECIFIED",
  378. "LINUX",
  379. "WINDOWS"
  380. ],
  381. "enumDescriptions": [
  382. "The operating system type associated with the user account information is\nunspecified.",
  383. "Linux user account information.",
  384. "Windows user account information."
  385. ],
  386. "type": "string"
  387. },
  388. "primary": {
  389. "description": "Only one POSIX account can be marked as primary.",
  390. "type": "boolean"
  391. },
  392. "shell": {
  393. "description": "The path to the logic shell for this account.",
  394. "type": "string"
  395. },
  396. "systemId": {
  397. "description": "System identifier for which account the username or uid applies to.\nBy default, the empty value is used.",
  398. "type": "string"
  399. },
  400. "uid": {
  401. "description": "The user ID.",
  402. "format": "int64",
  403. "type": "string"
  404. },
  405. "username": {
  406. "description": "The username of the POSIX account.",
  407. "type": "string"
  408. }
  409. },
  410. "type": "object"
  411. },
  412. "SshPublicKey": {
  413. "description": "The SSH public key information associated with a Google account.",
  414. "id": "SshPublicKey",
  415. "properties": {
  416. "expirationTimeUsec": {
  417. "description": "An expiration time in microseconds since epoch.",
  418. "format": "int64",
  419. "type": "string"
  420. },
  421. "fingerprint": {
  422. "description": "Output only. The SHA-256 fingerprint of the SSH public key.",
  423. "type": "string"
  424. },
  425. "key": {
  426. "description": "Public key text in SSH format, defined by\n\u003ca href=\"https://www.ietf.org/rfc/rfc4253.txt\" target=\"_blank\"\u003eRFC4253\u003c/a\u003e\nsection 6.6.",
  427. "type": "string"
  428. }
  429. },
  430. "type": "object"
  431. }
  432. },
  433. "servicePath": "",
  434. "title": "Cloud OS Login API",
  435. "version": "v1",
  436. "version_module": true
  437. }