Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

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